Sunday 21 June 2015

Getting more from google search


Getting more from google search

I use these three settings to get more search results, not targeted at what I may have looked at previously – you get a wider and more balanced set of results. A bigger list of organic search results on 1 page so as I bypass many of the paid ads I have more organic searches displayed. For me I find an increase to 20 is more than fast enough and saves me having to scroll many pages to make the changes simply click the cog on the right and select search settings. Select never show instant results, slide your slide scale to 20 and select do not use private results. Hopefully you will get more of what you expect and not what google wants you to see.

 



DATEDIF the Hiden Excel Function

DATEDIF the Hiden Excel Function
 
 
 
    
 
 
 

Your required to calculate the number of months between two dates? You’ll be needing the Hiden DATEDIF function.

Excel DATEDIF Function

Try typing =DATEDIF into Excel and it will pretend it doesn’t recognise it – see how it’s not in the list of functions to the left unless you type it all in.

Though a common feature used in Microsoft Access For some reason Microsoft don’t think the DATEDIF function is worthy of any documentation since Excel 2000. In fact they say they only include it in recent versions for backward compatibility.

The DATEDIF function calculates the difference between two dates.

DATEDIF syntax =DATEDIF(date1,date2,interval)

Date1 is the start date , Date2 is the end date, Interval is the type of interval you want to calculate e.g. days, months, years.

DATEDIF Interval Formats:

ym = Complete calendar months between two dates as though the end date is in the same year as the start date.

yd = Complete calendar days between two dates as though the end date is in the same year as the start date.

y = years. Complete calendar years between two dates.

md = complete calendar days between two dates as though the month and year of the end date is the same as the start date.

m = months. Complete calendar months between two dates.

d = days. Complete days between two dates.

Let’s examine some DATEDIF examples:

Excel DATEDIF Function

Note: you could achieve the same result for example 1 above with this formula:
=C4-B4

Ok, so the above are some pretty basic calculations.

Example 1:
The number of Years since The Queen ascended the throne: =DATEDIF("6/2/1952",TODAY(),"Y")

Value Returned= 61

Note: in the above formula TODAY() = 6th may 2013. The TODAY() function will return today’s date as per your computer clock. Also handy for report headers and the like.

Example  2:
The Queens age today (6th may 2013) in days, months and years:

=DATEDIF("21/04/1926",TODAY(),"y")&" years,"&DATEDIF("21/04/1926",TODAY(),"ym") &" month(s), "&DATEDIF("21/04/1926",TODAY(),"md")&" Days"

Value Returned=87 years,0 month(s), 15 Days

The above formula uses the concatenation method (see Text Functions).

Example 3:
Calculate how long untill my next holiday.

Supressing 0 values where there are no years or months returned:
="I Go On Holiday in "&IF(DATEDIF(TODAY(),"17/03/2014","y")=0,"",DATEDIF(TODAY(),"17/03/2013","y")&" years ")&IF(DATEDIF(TODAY(),"17/03/2014","ym")=0,"",DATEDIF(TODAY(),"17/03/2014","ym")&" months ")&DATEDIF(TODAY(),"17/03/2014","md")&" days"


Value Returned= I Go On Holiday in 10 months 11 days
the above formula will work as long as the date 17-03-14 is not exceeded

We use the IF function to first evaluate whether there are any years to count, if not return nothing (as stipulated by the empty double quotes “”), and so on for months and days.

Ideas for Using DATEDIF:
  • Your age in years, months and days. datedif1
  • Age is 51 Years, 7 Months and 5 Days
And the formula
="Age is "&DATEDIF(C8,TODAY(),"y")&" Years, "&DATEDIF(C8,TODAY(),"ym")&" Months and "&DATEDIF(C8,TODAY(),"md")&" Days"
Using the layout above and changing the labels try out the ideas below.
  • Length of service of an employee.
  • Equipment age.
  • Countdown to a date.
DATEDIF Errors Returned
  • If Date 1 is later than Date 2 Excel will return a #NUM error.
  • If Date 1 or Date 2 is not a valid date you will get a #VALUE error.
  • If the interval is not one of the above options Excel will return a #NUM error.

Excel EDATE

Excel EDATE Function Explained
 
 
 
    
 
 
To calculate due dates for projects or payments then Excel’s EDATE function will make life easier for you.
Excel’s EDATE function is ideal for:
  • calculating when a payment is due or project is to be completed
  • calculating the date a scheduled number of months in the past or into the future
Excel EDATE Function Syntax
=EDATE(start_date,months)

Returns the serial number of the date that is the indicated number of months before or after the start date.

Excel EDATE

Calculate Date from Today
3 Months from today: =EDATE(NOW(),3)

3 Months prior to today: =EDATE(NOW(),-3)

Note: if the date displays as a serial number simply change the formatting to a Date format. CTRL+1 to open formatting dialog box

The Excel Today function

The Excel Today function

 returns the current date. The function has no arguments and therefore, the syntax of the function is simply:
TODAY()

For further information: http://www.exceltraining-london.co.uk/excelFunctions/ExcelLondon/excelfunctiondictionary.html

Today Function Examples

The following spreadsheets show 2 simple examples of calls to the Today function, which were made on 6th January 2011. The first example shows the function used alone, and the second example shows the function used as a part of a formula that calculates the number of days that have passed since 31-Dec-2009.
The spreadsheet on the left shows the format of the formulas and the spreadsheet on the right shows the results.
 Formulas:
 AB
1 =TODAY()
231-Dec-2009=TODAY() - A2
 Results:
 AB
1 06-Jan-2011
231-Dec-2009371



Today Function Problem

The following problem is encountered by some people when using the Excel Today function:
Common Problem
When you attempt to subtract another date from the result the Today function, (as in cell B2 of the example above), the result looks like a date (eg. "16/11/1900"), instead of returning an integer.
Possible Reason
This problem arises because the new cell or column is formatted as a 'date'. In this case, it is only the formatting of the cell that is wrong, NOT the value returned by the function.
To correct this:
  • Highlight the cell(s) with the wrong formatting
  • Right click with the mouse
  • Select the Format Cells ... option and ensure the Number tab is selected
  • Under the Category heading, select the option General and click OK

Microsoft Excel DMAX Function

Microsoft Excel DMAX Function

Basic Description

The Excel Dmax function finds the maximum value in a field (column) in a database for selected records only. The records to be included in the calculation are defined by a set of one or more user-specified criteria.
The syntax of the function is :
DMAX( database, field, criteria )
where the arguments are shown in the table below:


database-A range of cells containing the database. The top row of the database should specify the field names.
field-The field (column) within the database, that you want the maximum of.
This can either be a field number, or can be the field name (ie. the header in the top row of the database) encased in quotes (eg. "Area", "Quarter", etc)
criteria-A range of cells that contain the criteria, to specify which records should be included in the calculation.
The range can include one or more criteria, which are presented as a field name in one cell and the condition for that field in the cell below.
eg.
QuarterArea
>1North


Wildcards
You can also use the following wildcards in text-related criteria:
?    -    matches any single character
*    -    matches any sequence of characters
if you do actually want to find the ? or * character, type the ~ symbol before this character in your search.
eg. the condition "A*e" will match all cells containing a text string beginning with "A" and ending in "e".
The criteria supplied beneath each field heading can be either:
-a numeric value (including an integer, decimal, date, time, or logical value) (eg. 10, 01/01/2011, FALSE)
or
-a text string (eg. "North", "Friday")
or
-an expression (eg. ">5", "<>0")


Note that the Excel database functions are not case sensitive. So, for example, the criteria ="North" will be satisfied by cells containing the text "North" or "north".


Excel Dmax Function Examples

ABCD
1QuarterAreaSales Rep.Sales
21NorthJeff$223,000
31NorthChris$125,000
41SouthCarol$456,000
51SouthTina$289,000
62NorthJeff$322,000
72NorthChris$340,000
82SouthCarol$198,000
92SouthTina$222,000
103NorthJeff$310,000
113NorthChris$250,000
123SouthCarol$460,000
133SouthTina$395,000
144NorthJeff$261,000
154NorthChris$389,000
164SouthCarol$305,000
174SouthTina$188,000
The following examples are based on the simple database on the right, which stores the sales figures for four sales representatives, over the four quarters of a year.


Example 1

If, from the example database, we wanted to find the highest sales figure in the North area, during quarter 2, we could use the Dmax function as shown below.
In the example, the criteria are specified in cells F1 - G2 and the Dmax formula is shown in cell F3:
FG
1QuarterArea
22North
3=DMAX( A1:D17, "Sales", F1:G2 )


The above Dmax function calculates the maximum of the values in cells D6 & D7, and therefore returns the value $340,000
Note that, in the above function, instead of typing in "Sales" for the field argument, we could have simply used the number 4 (to denote the 4th column of the database).


Example 2

In the example below, the Dmax function is used to find the highest quarterly sales figure for sales rep "Carol", in quarters 2, 3 or 4.
Again, the criteria are specified in cells F1 - G2 and the Dmax formula is shown in cell F3:
FG
1Sales Rep.Quarter
2Carol>1
3=DMAX( A1:D17, "Sales", F1:G2 )


The above Dmax function finds the maximum of the values in cells D8, D12 and D16, and so returns the value $460,000

The Excel Dproduct function

The Excel Dproduct function

 calculates the product of a field (column) in a database for selected records, that satisfy user-specified criteria.
The syntax of the function is :
DPRODUCT( database, field, criteria )
where the arguments are shown in the table below:


database- A range of cells containing the database. The top row of the database should specify the field names.
field- The field (column) within the database, that you want to calculate the product of. This can either be a field number, or can be the field name (ie. the header in the top row of the database) encased in quotes (eg. "Date", "Type", etc)
criteria- A range of cells that contain the criteria, to specify which records should be included in the calculation. The range can include one or more criteria, which are presented as a field name in one cell and the condition for that field in the cell below.
eg.
NameDate
Tom>01/01/2011
for further information see: http://www.exceltraining-london.co.uk/excelFunctions/ExcelLondon/excelfunctiondictionary.html


Wildcards
You can also use the following wildcards in text-related criteria:
?    -    matches any single character
*    -    matches any sequence of characters
if you do actually want to find the ? or * character, type the ~ symbol before this character in your search.
eg. the condition "A*e" will match all cells containing a text string beginning with "A" and ending in "e".
The criteria supplied beneath each field heading can be either:
-a numeric value (including an integer, decimal, date, time, or logical value) (eg. 10, 01/01/2011, FALSE)
or
-a text string (eg. "Text", "Monday")
or
-an expression (eg. ">12", "<>0")


Note that the Excel database functions are not case sensitive. So, for example, the criteria ="Tuesday" will be satisfied by cells containing the text "Tuesday" or "tuesday".


Excel Dproduct Function Examples

 ABCD
1NameDateTestScore
2Gary01-Jan-2011Test14
3Gary01-Jan-2011Test24
4Gary01-Jan-2011Test33
5Gary05-Jan-2011Test13
6Gary05-Jan-2011Test24
7Gary05-Jan-2011Test33
8Kev02-Jan-2011Test12
9Kev02-Jan-2011Test23
10Kev02-Jan-2011Test35
11Kev05-Jan-2011Test13
12Kev05-Jan-2011Test22
13Kev05-Jan-2011Test35
The following examples are based on the simple database on the right, which stores the ratings, across three tests, taken by two men on different dates.


Example 1

In the example below, the Dproduct function is used to calculate the product of Gary's scores on all three tests on 05-Jan-2010. The criteria are specified in cells F1 - G2 and the Dproduct formula is shown in cell F3.
 FG
1NameDate
2Gary05-Jan-2011
3=DPRODUCT( A1:D13, "Score", F1:G2 )


The above Dproduct function calculates the product of the scores in cells D5, D6 & D7, and therefore returns the value 36.

The Excel PRODUCT function

The Excel PRODUCT function

 returns the product (multiplication) of a supplied set of numerical values.
The syntax of the function is :
PRODUCT( number1, [number2], ... )
where the number arguments are a set of numbers (or arrays of numbers) that you want to find the product of. These can be supplied to the function either directly, as values returned from other functions, or as references to cells containing numeric values.
In Excel 2007 or 2010, you can enter up to 255 number arguments to the Excel Product function, but in Excel 2003, the function can only accept up to 30 arguments.

for further details see: http://www.exceltraining-london.co.uk/excelFunctions/ExcelLondon/excelfunctiondictionary.html

Which Values are Included in the Excel Product Function Calculation?

Numbers and dates are always counted as numeric values by the Excel Product function. However, text representations and logical values are handled differently, depending on whether they are values stored in the cells of your spreadsheet, or they are supplied directly to the function.
The table below shows which values are included in the Excel Product Function calculation, and which values are ignored or produce errors:
Value Within a
Range of Cells
Value Supplied
Directly to Function
NumbersIncludedIncluded
DatesIncludedIncluded
Logical ValuesIgnoredIncluded
(True=1; False=0)
Text Representations of
Numbers & Dates
IgnoredIncluded
Other TextIgnored#VALUE! Error
ErrorsErrorError



Excel Product Function Examples

The following spreadsheet shows four different ways to input five numbers into the Excel Product function. The example illustrates how the number arguments can be input as either:
- individual numbers
- number arrays
- individual cells
- cell ranges
... or a combination of all of these.
 Formulas:
 AB
13=PRODUCT( 3, 6, 2, 8, 5 )
26=PRODUCT( A1:A5 )
32=PRODUCT( 3, 6, 2, A4, A5 )
48=PRODUCT( {3,6}, A3:A5 )
55 
 Results:
 AB
131440
261440
321440
481440
55