Tips For Microsoft Excel
Tips For Microsoft Excel
Tips For Microsoft Excel
DCountA Function :
The DCountA function returns the number of cells in a column or database that contains
nonblank values and meets a given criteria.
range is the range of cells that you want to apply the criteria against.
field is the column to count the values. You can either specify the numerical position of
the column in the list or the column label in double quotation marks.
For example:
NestedIf Function:
It is possible to nest multiple IF functions within one Excel formula. You can nest up to 7
IF functions to create a complex IF THEN ELSE statement.
IF condition1 THEN
value_if_true1
ELSEIF condition2 THEN
value_if_true2
ELSE
value_if_false2
END IF
This syntax example demonstrates how to nest two IF functions. You can nest up to 7 IF
functions.
For example:
Date Function:
• If the year is between 0 and 1899, the year value is added to 1900 to determine the year.
• If the year is between 1900 and 9999, the Date function uses the year value as the year.
• If the year is greater than 9999, the Date function will return the #NUM! error.
month is a number representing the month value. If the month value is greater than 12,
the Date function adds that number of months to the first month of the year specified in
the year parameter.
day is a number representing the day value. If the day value is greater than the number of
days in the month specified, the Date function add that number of days to the first day in
the month specified in the month parameter.
For example:
DateDIF Function:
The DateDif function returns the difference between two date values, based on the
interval specified.
start_date and end_date are the two dates to calculate the difference between.
interval is the interval of time to use to calculate the difference between date1 and date2.
Below is a list of valid interval values.
Interval Explanation
Y The number of complete years.
M The number of complete months.
D The number of days.
MD The difference between the days (months and years are ignored).
YM The difference between the months (days and years are ignored).
YD The difference between the days (years and dates are ignored).
For example:
VLookUp Function :
The VLookup function searches for value in the left-most column of table_array and
returns the value in the same row based on the index_number.
value is the value to search for in the first column of the table_array.
index_number is the column number in table_array from which the matching value must
be returned. The first column is 1.
not_exact_match determines if you are looking for an exact match based on value. Enter
FALSE to find an exact match. Enter TRUE to find an approximate match, which means
that if an exact match if not found, then the VLookup function will look for the next
largest value that is less than value.
Note:
If you enter FALSE for the not_exact_match parameter and no exact match is found, then
the VLookup function will return #N/A.
For example:
Round Function:
Round(number, digits)
For example:
RoundDown Function :
RoundDown(number, digits)
For example:
RoundUp Function :
The RoundUp function returns a number rounded down to a specified number of digits.
(Always away from 0.)
RoundUp(number, digits)
For example:
Trunc Function :
Trunc(number, digits)
digits is optional. It is the number of decimal places to display in the resulting truncated
number. If this parameter is omitted, the Trunc function will assume 0.
For example:
Int Function:
Int( expression )
Note: If the expression is negative, the Int function will return the first negative number
that is less than or equal to the expression.
For example:
Sum Function:
The Sum function adds all numbers in a range of cells and returns the result.
or
Sum ( cell1:cell2 )
For example:
SumIf Function:
The SumIf function adds all numbers in a range of cells, based on a given criteria.
range is the range of cells that you want to apply the criteria against.
For example:
Text Function:
The Text function returns a value converted to text with a specified format.
For example:
Concatenate Function:
For example:
Left Function:
The Left function allows you to extract a substring from a string, starting from the left-
most character.
number_of_characters indicates the number of characters that you wish to extract starting
from the left-most character.
For example:
Mid Function:
The Mid function extracts a substring from a string (starting at any position).
start_position indicates the position in the string that you will begin extracting from. The
first position in the string is 1.
For example:
Right Function:
The Right function extracts a substring from a string starting from the right-most
character.
number_of_characters indicates the number of characters that you wish to extract starting
from the right-most character.
For example:
Substitute Function:
The Substitute function replaces a set of characters with another.
nth_appearance is optional. It is the nth appearance of old_text that you wish to replace. I
f this parameter is omitted, then every occurrence of old_text will be replaced with
new_text.
For example:
Proper Function:
The Proper function sets the first character in each word to uppercase and the rest to
lowercase.
Proper( text )
text is the string argument whose first character in each word will be converted to
uppercase and all remaining characters converted to lowercase.
For example:
Lower Function:
The Lower function converts all letters in the specified string to lowercase. If there are
characters in the string that are not letters, they are unaffected by this function.
Lower( text )
For example:
Clean Function:
Clean( text )
text is the value that has all nonprintable characters removed from.
For example: