ms excel formulas.xls

199

Click here to load reader

Upload: wasi-bhutto

Post on 17-Aug-2015

280 views

Category:

Documents


7 download

TRANSCRIPT

Today :OMs PS 2008EXCEL FORMULAE EXCEL FORMULAEHELP For Analysis Tool Pack HELP For Analysis Tool PackOMsThursday, August !, "#$%%%&sank'tha(&tkToday: Thursday, August !, "#$Ag' Calculation Ag' CalculationA)* A)*A+, A+,Auto*u( shortcut k'y Auto*u( shortcut k'yA-ERA.E A-ERA.E)/+",EC )/+",EC)rack'ts in For(ula )rack'ts in For(ulaCE/L/+. CE/L/+.CELL CELLCHAR CHARCHOO*E CHOO*ECLEA+ CLEA+CO,E CO,ECOM)/+ COM)/+CO+CATE+ATE CO+CATE+ATECO+-ERT CO+-ERTCORREL CORRELCOU+T COU+TCOU+TA COU+TA%%%&sank'tha(&tkHo(' Ho('COU+TA COU+TACOU+T)LA+0 COU+T)LA+0COU+T/F COU+T/F,ATE ,ATE,ATE,/F ,ATE,/F,ATE-ALUE ,ATE-ALUE,A-ERA.E ,A-ERA.E,A1 ,A1,A1*!2# ,A1*!2#,) ,),COU+T ,COU+T,COU+TA ,COU+TA,EC")/+ ,EC")/+,EC"HEX ,EC"HEX,ELTA ,ELTA,.ET ,.ET,MAX ,MAX,M/+ ,M/+,OLLAR ,OLLAR,*UM ,*UME,ATE E,ATEEOMO+TH EOMO+THERROR&T1PE ERROR&T1PEERROR&T1PE ERROR&T1PEE-E+ E-E+EXACT EXACTFACT FACTFil'na(' For(ula Fil'na(' For(ulaF/+, F/+,F/XE, F/XE,FLOOR FLOORFORECA*T FORECA*TFRE3UE+C1 FRE3UE+C1.C, .C,.E*TEP .E*TEPHEX",EC HEX",ECHLOO0UP HLOO0UPHOUR HOUR/F /F/+,EX /+,EX/+,/RECT /+,/RECT/+FO /+FO/nstant Charts /nstant Charts/+T /+T/+T /+T/*)LA+0 /*)LA+0/*ERR /*ERR/*ERROR /*ERROR/*E-E+ /*E-E+/*LO./CAL /*LO./CAL/*+A /*+A/*+O+TEXT /*+O+TEXT/*+UM)ER /*+UM)ER/*O,, /*O,,/*REF /*REF/*TEXT /*TEXTLAR.E LAR.ELCM LCMLEFT LEFTLE+ LE+LOO0UP45'ctor6 LOO0UP45'ctor6LO7ER LO7ERMATCH MATCHMAX MAXLOO0UP4Array6 LOO0UP4Array6ME,/A+ ME,/A+M/, M/,M/+ M/+M/+UTE M/+UTEMMULT MMULTMO, MO,MO,E MO,EMO+TH MO+THMROU+, MROU+,+ ++A +A+ET7OR0,A1* +ET7OR0,A1*+OT +OT+O7 +O7O,, O,,OR OROrd'ring *tock Ord'ring *tockP'rc'ntag's P'rc'ntag'sPERMUT PERMUTP/ P/PO7ER PO7ERPO7ER PO7ERPRO,UCT PRO,UCTPROPER PROPER3UART/LE 3UART/LE3UOT/E+T 3UOT/E+TRA+, RA+,RA+,)ET7EE+ RA+,)ET7EE+RA+0 RA+0REPLACE REPLACEREPT REPTR/.HT R/.HTROMA+ ROMA+ROU+, ROU+,ROU+,,O7+ ROU+,,O7+ROU+,UP ROU+,UP*ECO+, *ECO+,*ho% All For(ula *ho% All For(ula*/.+ */.+*L+ *L+*MALL *MALL*MALL *MALL*8lit For'na(' *urna(' *8lit For'na(' *urna('*T,E- *T,E-*T,E-P *T,E-P*U)*T/TUTE *U)*T/TUTE*UM *UM*UM as Running Total *UM as Running Total*UM using na('s *UM using na('s*UM %ith OFF*ET *UM %ith OFF*ET*UM/F *UM/F*UMPRO,UCT *UMPRO,UCT*1, *1,T TTEXT TEXTT/ME T/MET/ME Calculation T/ME CalculationT/ME-ALUE T/ME-ALUETO,A1 TO,A1TRA+*PO*E TRA+*PO*ETRE+, TRE+,TR/M TR/MTRU+C TRU+CUPPER UPPER-ALUE -ALUE-AR -AR-ARP -ARP-LOO0UP -LOO0UP7EE0,A1 7EE0,A17OR0,A1 7OR0,A11EAR 1EAR1EARFRAC 1EARFRACOMsThursday, August !, "#$%%%&sank'tha(&tkExcel Function Dictionary 1998 - 2000 Peter NoneleyYEAFA!Pa"e #1 o$ 2#0Start Date En% Date Fraction1-&an-98 1-A'r-98 0(2#)YEAFA!*!+,D+-1-&an-98 .1-Dec-98 1)YEAFA!*!#,D#-1-&an-98 1-A'r-98 2#/)YEAFA!*!0,D0-7hat ,o's /t ,o912is $unction calculates t2e %i$$erence 3et4een t4o %ates an% ex'resses t2e resultas a %eci5al $raction(*ynta: )YEAFA!*StartDate,En%Data,6asis- 6asis 7 De$ines t2e calen%ar syste5 to 3e use% in t2e $unction(0 7 or o5itte% 8SA style .0 %ays 'er 5ont2 %i9i%e% 3y .00(1 7 29 or .0 or .1 %ays 'er 5ont2 %i9i%e% 3y .0#(2 7 29 or .0 or .1 %ays 'er 5ont2 %i9i%e% 3y .00(. 7 29 or .0 0r .1 %ays 'er 5ont2 %i9i%e% 3y .0#(+ 7 Euro'ean 29 or .0 or .1 %ays %i9i%e% 3y .00(For(atting12e result 4ill 3e s2o4n as a %eci5al $raction, 3ut can 3e $or5atte% as a 'ercent(E:a(8l'12e $ollo4in" ta3le 4as use% 3y a co5'any 42ic2 2ire% 'eo'le on s2ort ter5 contracts$or a 'art o$ t2e year(12e Pro ata Salary 42ic2 re'resents t2e annual salary is entere%(12e Start an% En% %ates o$ t2e contract are entere%(12e )YEAFA!*- $unction is use% to calculate Actual Salary $or t2e 'ortion o$ t2e year(Start En% Pro ata Salary Actual Salary1-&an-98 .1-Dec-98 :12,000:12,000 )YEAFA!*6.2,!.2;1,+-O?DAY*StartDate,Days,Aoli%ays-For(atting12e result 4ill nor5ally 3e s2o4n as a nu53er 42ic2 can 3e $or5atte% to anor5al %ate 3y usin" For5at,!ells,Nu53er,Date(E:a(8l'12e $ollo4in" exa5'le s2o4s 2o4 t2e $unction can 3e use% to calculate %eli9ery %ates3ase% u'on an initial Or%er Date an% esti5ate% Deli9ery Days(Or%er Date Deli9ery Days Deli9ery DateMon 02-Fe3-98 2 >e% 0+-Fe3-981ue 1#-Dec-98 28 1ue 20-&an-99 )>O?DAY*D2#,E2#,D287D.2-Aoli%ays6an@ Aoli%ay Fri 01-May-98B5as Fri 2#-Dec-98Ne4 Year >e% 01-&an-9CNe4 Year 12u 01-&an-98Ne4 Year Fri 01-&an-99)ack )ackA B C D E F G H1234567891011121314151617181920212223242526272829303132Excel Function Dictionary 1998 - 2000 Peter Noneley>EE?DAYPa"e #+ o$ 2#0Date >ee@%ay12u 01-&an-98 #)>EE?DAY*!+-12u 01-&an-98 #)>EE?DAY*!#-12u 01-&an-98 #)>EE?DAY*!0,1-12u 01-&an-98 +)>EE?DAY*!C,2-12u 01-&an-98 .)>EE?DAY*!8,.-7hat ,o's /t ,o912is $unction s2o4s t2e %ay o$ t2e 4ee@ $ro5 a %ate(*ynta: )>EE?DAY*Date,1y'e- 1y'e 7 12is is use% to in%icate t2e 4ee@ %ay nu53erin" syste5( 1 7 4ill set Sun%ay as 1 t2rou"2 to Satur%ay as C 2 7 4ill set Mon%ay as 1 t2rou"2 to Sun%ay as C( . 7 4ill set Mon%ay as 0 t2rou"2 to Sun%ay as 0( D$ no nu53er is s'eci$ie%, Excel 4ill use 1(For(atting12e result 4ill 3e s2o4n as a nor5al nu53er(E:a(8l'12e $ollo4in" ta3le 4as use% 3y a 2otel 42ic2 rente% a $unction roo5(12e 2otel c2ar"e% %i$$erent rates %e'en%in" u'on 42ic2 %ay o$ t2e 4ee@ t2e 3oo@in" 4as $or(12e 6oo@in" Date is entere%(12e Actual Day is calculate%(12e 6oo@in" !ost is 'ic@e% $ro5 a list o$ rates usin" t2e )EOO?8P*- $unction(6oo@in" Date Actual Day 6oo@in" !ostC-&an-98 >e%nes%ay:.0(00 )EOO?8P*>EE?DAY*!.+-,!.97D+#-6oo@in" atesDay O$ >ee@ !ost1 :#0 2 :2# . :2# + :.0 # :+0 0 :#0 C :100 1o s2o4 t2e result as t2e na5e o$ t2e %ay, use For(at, C'lls, Custo( an% sett2e Ty8' to ddd or dddd()ack )ackA B C D E F G H123456789101112131415161718192021222324252627282930313233343536373839404142434445Excel Function Dictionary 1998 - 2000 Peter NoneleyFEOO?8PPa"e ## o$ 2#0The column numbers are not needed.they are part of the illustration.col 1 col 2 col 3 col 4 col 5 col 6&an 10 20 .0 +0 #0Fe3 80 90 100 110 120Mar 9C 09 +# #1 CC1y'e a 5ont2 to loo@ $or 7Fe3>2ic2 colu5n nee%s to 3e 'ic@e% out 7+12e result is 7100 )FEOO?8P*G11,!07A8,G12,FAESE-7hat ,o's /t ,o 912is $unction scans %o4n t2e ro4 2ea%in"s at t2e si%e o$ a ta3le to $in% a s'eci$ie% ite5(>2en t2e ite5 is $oun%, it t2en scans across to 'ic@ a cell entry(*ynta:)FEOO?8P*Dte51oFin%,an"e1oEoo@Dn,!olu5n1oPic@Fro5,Sorte%Or8nsorte%-12e Dte51oFin% is a sin"le ite5 s'eci$ie% 3y t2e user(12e an"e1oEoo@Dn is t2e ran"e o$ %ata 4it2 t2e ro4 2ea%in"s at t2e le$t 2an% si%e(12e !olu5n1oPic@Fro5 is 2o4 $ar across t2e ta3le t2e $unction s2oul% loo@ to 'ic@ $ro5(12e Sorte%H8nsorte% is 42et2er t2e colu5n 2ea%in"s are sorte%( 18E $or yes, FAESE $or no(For(attingNo s'ecial $or5attin" is nee%e%(E:a(8l' 12is ta3le is use% to $in% a 9alue 3ase% on a s'eci$ie% na5e an% 5ont2(12e )FEOO?8P*- is use% to scan %o4n to $in% t2e na5e(12e 'ro3le5 arises 42en 4e nee% to scan across to $in% t2e 5ont2 colu5n(1o sol9e t2e 'ro3le5 t2e )MA1!A*- $unction is use%(12e )MA1!A*- loo@s t2rou"2 t2e list o$ na5es to $in% t2e 5ont2 4e reIuire( Dt t2en calculatest2e 'osition o$ t2e 5ont2 in t2e list( 8n$ortunately, 3ecause t2e list o$ 5ont2s is not as 4i%eas t2e loo@u' ran"e, t2e )MA1!A*- nu53er is 1 less t2an 4e reIuire, so an% extra 1 isa%%e% to co5'ensate(12e )FEOO?8P*- no4 uses t2is )MA1!A*- nu53er to loo@ across t2e colu5ns an%'ic@s out t2e correct cell entry(12e )FEOO?8P*- uses FAESE at t2e en% o$ t2e $unction to in%icate to Excel t2at t2ero4 2ea%in"s are not sorte%(&an Fe3 Mar6o3 10 80 9CEric 20 90 09Alan .0 100 +#)ack)ackA B C D E F G H I J12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152Excel Function Dictionary 1998 - 2000 Peter NoneleyFEOO?8PPa"e #0 o$ 2#0!arol +0 110 #1Da9i% #0 120 CC1y'e a na5e to loo@ $or 7eric1y'e a 5ont2 to loo@ $or 75ar12e result is 709 )FEOO?8P*F#0,!#07F#+,MA1!A*F#C,D+97F+9,0-;1,FAESE-E:a(8l' "12is exa5'le s2o4s 2o4 t2e )FEOO?8P*- is use% to 'ic@ t2e cost o$ a s'are 'art $or%i$$erent 5a@es o$ cars(12e )FEOO?8P*- scans %o4n ro4 2ea%in"s in colu5n F $or t2e s'are 'art entere% in colu5n !(>2en t2e 5a@e is $oun%, t2e )FEOO?8P*- t2en scans across to $in% t2e 'rice, usin" t2eresult o$ t2e )MA1!A*- $unction to $in% t2e 'osition o$ t2e 5a@e o$ car(12e $unctions use t2e a3solute ran"es in%icate% 3y t2e %ollar sy53ol ( 12is ensures t2at42en t2e $or5ula is co'ie% to 5ore cells, t2e ran"es $or )FEOO?8P*- an% )MA1!A*- %onot c2an"e(Ma@er S'are !ost Eoo@u' 1a3leFaux2all D"nition :#0Faux2all For% F>F> Gear6ox :000Gear6ox #00 +#0 000For% En"ine :1,200En"ine 1000 1200 800F> Steerin" :2C#Steerin" 2#0 .#0 2C#For% D"nition :C0D"nition #0 C0 +#For% !YAea% :290!YAea% .00 290 .10Faux2all Gear6ox :#00 For% En"ine :1,200 )FEOO?8P*!81,FC#7DC9,MA1!A*681,GC+7DC+,0-;1,FAESE-E:a(8l' !Dn t2e $ollo4in" exa5'le a 3uil%ers 5erc2ant is o$$erin" %iscount on lar"e or%ers(12e 8nit !ost 1a3le 2ol%s t2e cost o$ 1 unit o$ 6ric@, >oo% an% Glass(12e Discount 1a3le 2ol%s t2e 9arious %iscounts $or %i$$erent Iuantities o$ eac2 'ro%uct(12e Or%ers 1a3le is use% to enter t2e or%ers an% calculate t2e 1otal(All t2e calculations ta@e 'lace in t2e Or%ers 1a3le(12e na5e o$ t2e Dte5 is ty'e% in colu5n ! o$ t2e Or%ers 1a3le(12e 8nit !ost o$ t2e ite5 is t2en loo@e% u' in t2e 8nit !ost 1a3le( 12e FAESE o'tion 2as 3een use% at t2e en% o$ t2e $unction to in%icate t2at t2e 'ro%uct na5es %o4n t2e si%e o$ t2e 8nit !ost 1a3le are not sorte%( 8sin" t2e FAESE o'tion $orces t2e $unction to searc2 $or an exact 5atc2( D$ a 5atc2 is not $oun%, t2e $unction 4ill 'ro%uce an error( )FEOO?8P*!120,!11+7D110,2,FAESE-12e %iscount is t2en loo@e% u' in t2e Discount 1a3leD$ t2e Juantity Or%ere% 5atc2es a 9alue at t2e si%e o$ t2e Discount 1a3le t2e )FEOO?8P 4illloo@ across to $in% t2e correct %iscount( 12e 18E o'tion 2as 3een use% at t2e en% o$ t2e $unction to in%icate t2at t2e 9alues %o4n t2e si%e o$ t2e Discount 1a3le are sorte%( 8sin" 18E 4ill allo4 t2e $unction to 5a@e an a''roxi5ate 5atc2( D$t2e Juantity Or%ere% %oesA B C D E F G H I J5354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106Excel Function Dictionary 1998 - 2000 Peter NoneleyFEOO?8PPa"e #C o$ 2#0 not 5atc2 a 9alue at t2e si%e o$ t2e Discount 1a3le, t2e next lo4est 9alue is use%( 1ryin" to 5atc2 an or%er o$ 12# 4ill %ro' %o4n to 100, an% t2e %iscount $ro5 t2e 100 ro4 is use%( )FEOO?8P*D120,F11+7D110,MA1!A*!120,G11.7D11.,0-;1,18E-Discount 1a3le8nit !ost 1a3le )rick 7ood .lass)rick :2 0/ 0/ 0/7ood :1## 0/ ./ 12/.lass :.!## 8/ #/ 1#/Or%ers 1a3leDte5 8nits 8nit !ost Discount 1otal6ric@ 100 :20/ :188 >oo% 200 :1./ :19+ Glass 1#0 :.12/ :.90 6ric@ 22# :20/ :+2. >oo% #0 :10/ :#0 Glass #00 :.1#/ :1,2C# For5ula $or 78nit !ost)FEOO?8P*!120,!11+7D110,2,FAESE-Discount)FEOO?8P*D120,F11+7D110,MA1!A*!120,G11.7D11.,0-;1,18E-1otal)*D1202ite >ine 8 :1.010 :1.(002#/ :10(2# !2a5'a"ne # :2000 :..(..80/ :00(00 6eer #0 :2+12 :2(0020/ :2(+0 Ea"er 100 :.012 :2(#02#/ :.(1. )D.9HE.9)F.9;F.9