Today Function The today function: =TODAY() It has no arguments, and returns the date that the computer is set to. It is volatile, so if you save it and reopen the file one month later the new, updated date will appear. The today function can be used in formulas involving time. Excel uses a serial number system for dates. It is designed so that January 1, 1900 is represented as 1, and January 2, 1900 is 2, and so on. The serial number for 2/23/17 is 42789. You can see the serial number by entering a date, then changing the number format to General : Note: If you want to retrieve the date and time that the computer is set to, use the =NOW() function.
Today Function To see the serial number for any given date, type the date in Excel, then change the Number Format to General. To change it back to a date, select either the Short Date or Long Date setting.
Today Function To find out the number of days between any two dates after 1/1/1900, just take the more recent date minus (-) the earlier date (the recent date is the greater serial number) using cell references. If you want to insert the current date, you can type: =Today() We can also add a cell that calculates years old by dividing days old by days in a year.
Today Function To find out how many days it is until a future date, take the future date (the larger serial number) minus the current date (the smaller serial number).
Important Basic Functions AutoSum SUM function will add together the values in a range. AVERAGE function will return the arithmetic mean of the values in a range. MIN function will return the minimum value in a range. MAX function will return the maximum value in a range. MEDIAN function will return the midpoint value, which is the value that one half of the population is above or below. The AutoSum command can be used to quickly use common functions. It is in the home tab, editing group.
Auto Calculate If you select a range with your cursor, the status bar can display the sum of the selected range, and other calculations as well. To change what the status bar automatically calculates, right click on the status bar.
SUMIF AVERAGEIF The SumIF and AverageIF functions can perform calculations based upon one condition. Range argument: the range that contains the criteria. Criteria argument: the criteria you are searching for in the Range. Sum_Range argument: the range that contains the values you want to sum.
SUMIF AVERAGEIF The SumIF and AverageIF functions can perform calculations based upon one condition. Range argument: the range that contains the criteria. Criteria argument: the criteria you are searching for in the Range. Average_Range argument: the range that contains the values you want to average.
SUMIFS AVERAGEIFS The SumIFS and AverageIFS functions can perform the calculation based upon two conditions. sum_range argument: the range that contains the values you want to sum. criteria_range1 argument: the range that contains the first set of criteria. criteria1 argument: the criteria you are searching for in the first range. criteria_range2 argument: the range that contains the second set of criteria. criteria2 argument: the criteria you are searching for in the second range.
SUMIFS AVERAGEIFS The SumIFS and AverageIFS functions can perform the calculation based upon two conditions. average_range argument: the range that contains the values you want to average. criteria_range1 argument: the range that contains the first set of criteria. criteria1 argument: the criteria you are searching for in the first range. criteria_range2 argument: the range that contains the second set of criteria. criteria2 argument: the criteria you are searching for in the second range.
Introduction to the IF Function The IF function is used for a variety of purposes, the syntax is: IF(logical_test, value_if_true, value_if_false) An IF function performs a logical test using Logical Operators typically to look for certain numerical values or text strings. As a result of the logical test, it then does something (typically writes a text string or performs a new calculation we ll try both). Logical tests make use of Logical Operators: = Equal To <> Not Equal To < Less Than > Greater Than <= Less Than Or Equal To >= Greater Than Or Equal To
IF Function The IF function arguments can all include formulas or even text. So, for example, you can create functions like this very basic example: People can drive alone in Iowa when their age is greater than or equal to 16. If the logical test passes, then Yes is displayed. Otherwise No is displayed. Formula Auto Fill can be used to simply copy the formula to adjacent cells.
Conditional Formatting Icon Sets You can also include icon sets to indicate the results of a logical test.
Conditional Formatting Icon Sets Icon Sets are a type of conditional formatting: Always use the Manage Rules command to edit the icon set logical test.
Conditional Formatting Icon Sets When editing the rules, be sure to change the Type to Number for this example (do this first, before typing in the Value).
IF Function The IF function arguments can all include formulas or even text. So, for example, you can create functions like this very basic example: So, if the person is not old enough to drive, the formula 16 (age needed to drive) the Age of the person is carried out. The difference is how many years the person needs to wait.
Concatenation Concatenation is used to combine text and a formula within one argument. In this example, we can use concatenation to add a formula to the value_if_false argument to determine how many years people need to wait to get their operators permit. A calculation is included in the value_if_false argument by using concatenation. The symbol used for concatenation is the ampersand: &
Concatenation One more example of concatenation within an IF function: A calculation is included in the value_if_true argument by using concatenation. The symbol used for concatenation is the ampersand: &
Add data bar conditional formatting:
Concatenate Function (Different than Concatenation): The Concatenate Function is used to bring together the contents of two separate cells. Most commonly it is used to create a cell that contains a first name and last name from two separate cells, like shown below. Quotation marks around an empty space this is used to add a space between the first and last names.
Business Example of IF Function, Concatenation, Concatenate, and Conditional Formatting
Business Example of IF Function, Concatenation, Concatenate, and Conditional Formatting Formula View:
Let s Add the Today Function to the worksheet: Note: Your results in column F should be different than this screenshot. The screenshot was taken on a different day. Using the Today() Function, calculate years old within one cell. TIP: Start by calculating days old with =Today()- And then add more to the formula to calculate years old.
Let s Convert the Worksheet to use the Excel Table Quick Formatting: Select the range you would like to format (including headings), then go to the Insert tab, Tables group, Table command. Then modify the appearance.
Let s Convert the Worksheet to use the Excel Table Quick Formatting: The pull down menus can be used to sort or filter the column contents.