Excel Formulas List and Important Points To Remember

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Excel formulas list and important points to remember =CONCATENATE(B2, ,C2) Join two strings with a space =left(a2,1)

extracts leftmost character from string =right(a2,5) extracts the right 5 characters from the string =mid(a2,3) extracts the third character from the string =len(a2)counts the number of characters in the string =3^4 is the same as =34 =INT =ROUND(A1,2) Round contents to 2 decimal places =ROUND(A1,0) WHOLE NUMBER. =ROUND(A1,-1)NEAREST 10 =ROUND(A1,-2)NEAREST 100 =sum() =average() =max() =min() =count() counts number of cells containing numbers =counta() counts cells that are not empty =countif(a2,fiction) counts cells that have the word fiction in them. =SUMIF() =IF()

=subtotal(code,range) Codes for subtotal function

Code 1 2 3 4 5 6 7 8 9 10

Function Average Count Counta Max Min Product Stdev Stdevp Sum Var

=lookup() =hlookup() =vlookup() =weekday(b2) returns number between 1 and 7 from a given date. Sunday =1, etc. so lookup the code. eg a2 has date, b2 will return 1 and there will be a code column given to me so I can lookup the code and match the day to get the day in cell c2. =day() =month() =year() To calculate the number of months between two dates =month(b2)-month(b1) if bus is late, how many minutes? =if(c2>b2,text(c2-b2,h:mm),0)

calculate number of months between two dates over a year apart =(year(b2)-year(b1)) * 12 + month(b2)-month(b1) Make sure cell is a number not date. calculate number of years between two dates =year(b2)-year(b1) When you dont know which is start date which is end date =if(b1>b2,year(b1)-year(b2),year(b2)-year(b1)) or =abs(year(b1)-year(b2) =hour() returns 0-23 =minute() returns 0-59 =second()returns 0-59 Calculate difference between two times secondtime-firsttime =text()changes format from numbers to text =text((b2-b1),hh:mm)

AND, OR, NOT Yearfrac formula.

YEARFRAC(start_date,end_date,basis)
IMPORTANT Dates should be entered by using the DATE

function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text. Start_date End_date Basis is a date that represents the start date. is a date that represents the end date.

is the type of day count basis to use. DAY COUNT BASIS US (NASD) 30/360 Actual/actual Actual/360 Actual/365 European 30/360

BASIS 0 or omitted 1 2 3 4 Remarks

Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.

Microsoft Excel for the Macintosh uses a different date system as its default. All arguments are truncated to integers. If start_date or end_date are not valid dates, YEARFRAC returns the #VALUE! error value. If basis < 0 or if basis > 4, YEARFRAC returns the #NUM! error value. Example The example may be easier to understand if you copy it to a blank worksheet. How to copy an example
A 1 2 3 7/30/2007 4 2 Formula =YEARFRAC(A2,A3,A4) Actual/360 (see above) Description (Result) Fraction of the year between the two dates (0.583333333) End date Data 1/1/2007 B Description Start date

Follow me on Twitter Contact for more exam material @securedprofile

You might also like