4.misc Handy Formulas
4.misc Handy Formulas
Key takeaways:
Ú Handy formulas
- Date(), Month(), Year(); Text()
- Edate(), Eomonth()
- Proper(), Lower(), Upper() -
- Trim(), Len()
- T(), N()
- Clean()
Ú Error values
Date Format - Why important ?
End
When you type something like 2/2 in a cell, Excel knows you’re typing a date and formats it based on the date setting in
The date in excel can be given in many ways. Some of the ways and the syntax used for giving dates in various formats is
The date that appears in the excel depends upon the setting given in your system control panel. If you wish to have the d
changes should be made in the control panel
We can separate the date into day, month and year in the
following manner
Date =Day() =Month() =Year()
22-Jul-84 22 7 1984
1-Jan-01 1 1 2001
The following list represent the various ways in which a date can be entered in microsoft excel. Excel takes into account
SS for text
Example Date 8/25/1996
Format Description
"dddd" Full weekday like Sunday, Monday etc
"ddd" Half weekday name Sun, Mon, etc.
"dd" Date only in 2 digits lke 25, 08, etc.
"mmmm" Full month name like August, February, etc.
"mmm" Half month name like Jan, Feb, Aug etc.
"mm" Month number in 2 Digits like 08, 12 etc
"yyyy" Full year like 2014, 1996 etc.
"yy" Half year like 14, 96 etc.
The answer can be checked in the column D after entering the values in column C
End
mats it based on the date setting in Control Panel.
or giving dates in various formats is mentioned below.
ntrol panel. If you wish to have the date in another format
=Date() =Text()
22-Jul-84 Sunday
osoft excel. Excel takes into account the criteria we specify and formulas that we enter.
/1996
Sorting is a tool available in excel which helps to arrange the data in the required format.
For.eg. Sorting of data in ascending,descending, alphabetical,largest to smallest and smallest to largest.
uired format.
nd smallest to largest.
Important Date formulas
Edate
Get the same date in future or past months
Formula EDATE (start_date, months)
start_date - A date that represents the start date in a valid Excel serial number format.
months - The number of months before or after start_date.
Use EDATE to get the same date in future or past months. For months, use a positive value for future dates and
negative value for dates in the past.
=EDATE() =EOMONTH()
These date formulas are important for calculating the due dates,end dates,previous dates etc.
End
art date in a valid Excel serial number format.
or after start_date.
months. For months, use a positive value for future dates and a
=EOMONTH() Practice
End
It converts the text into a proper format
Most commonly used for text formatting
0 0 1 FALSE
#DIV/0! 0 0 0 TRUE
5,000 0 1 0 FALSE
End
Identify "Number stored as text" to "Number"
`=T(value) To find refered cell is a Text or not
`=N(value) To find refered cell is a Number or not
Note:
Sometimes when data is taken from software, some numbers also appear in text and calculations cannot be ma
The above exercise is useful during data validation where we verify if inputs are in number format or not befor
proceeding with analysis and applying formulas
End
and calculations cannot be made
in number format or not before
Types of Errors in Excel
#NULL! -
#DIV/0! -
#VALUE! -
#REF! -
#NAME? -
#NUM! -
#N/A -
End
Types of Errors in Excel
Arises when you specify an intersection of two ranges that don't intersect #REF!
Your formula is attempting to divide by zero #DIV/0!
One of the variables in your formula is of the wrong type Err:502
The formula contains an invalid cell reference #REF!
Excel doesn't recognise text in a formula #NAME?
Excel has encountered an invalid number Err:523
Indicates that a value is not available to the formula #N/A
###
Illustration ###
UC Browser
10 120 -100 50 60
###
###
###### Error