Excel Tricks Learned_20140101

Embed Size (px)

Citation preview

  • 8/18/2019 Excel Tricks Learned_20140101

    1/181

    Vic MackieDanny Sofer

    Curtis Lemanski

    Jon Kavanaugh

  • 8/18/2019 Excel Tricks Learned_20140101

    2/181

    Content PageTopic

    1 #REF! Go 222 #REF! Go 233 Formula to Count like being Autofltered Go 24

    4 #REF! Go 2#REF! Go 2#REF! Go 2"

    " #REF! Go 2#REF! Go 2$

    $ #REF! Go 3%1% #REF! Go 3111 #REF! Go 3212 #REF! Go 3313 #REF! Go 34

    14 #REF! Go 31 #REF! Go 31 #REF! Go 3"1" #REF! Go 31 #REF! Go 3$1$ #REF! Go 4%2% #REF! Go 4121 #REF! Go 42

    http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/

  • 8/18/2019 Excel Tricks Learned_20140101

    3/181

    &e'

    #REF! Go 43#REF! Go 44#REF! Go 4

    #REF! Go 4#REF! Go 4"#REF! Go 4#REF! Go 4$#REF! Go %#REF! Go 1#REF! Go 2#REF! Go 3#REF! Go 4#REF! Go

    #REF! Go#REF! Go#REF! Go#REF! Go#REF! Go#REF! Go#REF! Go#REF! Go

    &

    &

    &

    E

    http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/

  • 8/18/2019 Excel Tricks Learned_20140101

    4/181

    E(planation Added

    #REF! Go#REF! Go#REF! Go

    #REF! Go#REF! Go#REF! Go#REF! Go#REF! Go#REF! Go#REF! Go#REF! Go#REF! Go#REF! Go

    E

    http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/http://var/www/apps/conversion/tmp/scratch_4/

  • 8/18/2019 Excel Tricks Learned_20140101

    5/181

    )*perlink to Anot+er ,+eet -* .atc+ing A Te(t/et0, ,a* 'ant to put a link in C4 to fnd '+ate er0, in -4 under anot+er 'o

    Curtis Lemanski Link Using "#" was suggested by T

    6 # 7 Re !T+e # ,ign i, to re er to re er to t+e fle t+e ormula i, on5

    t i, t+en to be 8oined 'it+ t+e ,+eet name 'e are going to link it to 9 Re :To link it to a cell re erence; 'e need an e(claimation mark a ter t+e 'ork,+

    6A

  • 8/18/2019 Excel Tricks Learned_20140101

    6/181

    rk,+eet named Re 5

    ny Valko

    et name 7 t+e cell 'e are looking or5

    umber 7 column number5erring to Column A5arra* ; Re !A1>A1 5 t look, or an e(act matc+ b* indicating % 7 return, t+e r

  • 8/18/2019 Excel Tricks Learned_20140101

    7/181

    o' number5

  • 8/18/2019 Excel Tricks Learned_20140101

    8/181

    Return @niDue alue, in a /i,tFrom a li,t o duplicate name,; it 'ill onl* pick it once5

    Fruit, riginal T'eak !!"e !!"e

    !!"e !!"e #range#range #range $ear$ear $ear Mango#range Mango %Mango % %

    %

    T'eak i, cu,tomi,ed to m* liking5 don0t ,ee t+e need to ,tart 1 cell empt* be on cell C ; t+e C @&T F ormula ,tart, b* onl* picking t+e range E >E 5 T+e cri

    T+e .ATC) ormula fnd, % in m* re,ult, 7 return ro' 1 becau,e t+at0, t+e 1,

    n Cell C"; t+e ormula o C @&T F e(panded to E >E 5 &o' it pick, up T'eakappeared in ro', 1 7 25T+e .ATC) ormula fnd, % again 7 return, ro' 3 t+i, time becau,e t+e 3rd on

    t goe, on until t+e re,ult, or t+e C @&T F return, 1 or all 7 it cannot fnd a

    Source&

  • 8/18/2019 Excel Tricks Learned_20140101

    9/181

    e appl*ing t+e ormula5teria i, t+e /i,t 7 ,o it look, t+e '+ole li,t or T'eak 7 it all return, % 5t % t+at appeared5

    7 Apple 5 T+e re,ult, 'ill t+en return G1H1H%H%H%H%H%I becau,e Apple

    in t+e re,ult i, % 55 T+i, 'ill t+en return #&JA5

  • 8/18/2019 Excel Tricks Learned_20140101

    10/181

    Formula to Count like being Autofltered Solution by

    =election

  • 8/18/2019 Excel Tricks Learned_20140101

    11/181

    osephP

    E(planation or F3

    ntere,t 9 L 3> L 126E3: 1 or % 1 or %Music % % 4 4 4 2S!orts % % 3 4 4 4S!orts 4 4 2 4 4 4S!orts % % 2 4 4 4Movies % % 4 4 4 5Music % % 3 4 4 2Movies 4 4 4 4 4 5S!orts % % 2 4 4 4Movies % % 5 4 4 5S!orts % % 4 4 4 4

    1,t.ATC)Formula

    1,t=&@.-ER

    Formula

    2nd.ATC)Formula

  • 8/18/2019 Excel Tricks Learned_20140101

    12/181

    1 or % End Re,ult4 4 %4 4 %4 4 44 4 %4 4 %4 4 %4 4 44 4 %4 4 %4 4 %

    Total or F3 2

    2nd=&@.-ER

    Formula

  • 8/18/2019 Excel Tricks Learned_20140101

    13/181

    Return .ultiple alue, or ,ame criteriaFrom a li,t o duplicate name,; it 'ill onl* pick it once5

    Fruit, Price Fruit, Price 1 Price 2 Price 3!!"e 7%)1% !!"e 7%)1% 7%)0% 7%)81

    !!"e 7%)0% #range 74)%% 7%)6% 9V L E:#range 74)%% $ear 7%)81 9V L E: 9V L E:$ear 7%)81 Mango 75)%% 9V L E: 9V L E:#range 7%)6% 9;' 9;' 9;' 9;'Mango 75)%%

    !!"e 7%)81

    E 6 - > - 12T+i, return, TR@E 7 FA/=E or t+e range o - >-125 GTR@EHTR@EHFA/=EHFA/=EHFAR M9 - > - 12:

    t 'ill ,tate t+e ro' number - >-12 i, at5 G H"H H$H1%H11H12I-* adding a . & ormula in ront o t+e R M ormula; it take, ; t+e . & o N125And b* ,ubtracting t+e 1,t R M ormula 'it+ t+e 2nd one toget+er 'it+ . &; it b1 i, t+en added at t+e end to make it G1H2H3H4H H H"IToget+er 'it+ t+e TR@E 7 FA/=E ormula; t+e arra* or t+e =.A// ormula i, G1H2Price 1 'ill c+oo,e to look at ro' 1 o - >-12 becau,e o t+e ormula C /@.& 9A

    Source&

  • 8/18/2019 Excel Tricks Learned_20140101

    14/181

    Price 49V L E:

    9V L E:9V L E:9V L E:

    9;'

    /=EHFA/=EHTR@EI

    ecome, G%H1H2H3H4H H I

    H H H H H"I :

    -v"ooku!-in-e*ce"'

    http://www.get-digital-help.com/2009/10/25/how-to-return-multiple-values-using-vlookup-in-excel/http://www.get-digital-help.com/2009/10/25/how-to-return-multiple-values-using-vlookup-in-excel/

  • 8/18/2019 Excel Tricks Learned_20140101

    15/181

    =ort @niDue alue, in ,eparate li,t

    =orted @niDue /i,t Excelisfunnico"e "an=en =en

    "an nico"e+ache" $hoebe

    "an +ache"$hoebe

  • 8/18/2019 Excel Tricks Learned_20140101

    16/181

    m'(atch>v?@AL B@ fMD "ist?$L 24 =48330%33043

    http://www.youtube.com/watch?v=IZLAzIYfMDU&list=PLA21AB17448044814http://www.youtube.com/watch?v=IZLAzIYfMDU&list=PLA21AB17448044814

  • 8/18/2019 Excel Tricks Learned_20140101

    17/181

    Find /a,t Filled Ro'JColumn

    45 45 9D@V'%: ?M F 1& 2%

  • 8/18/2019 Excel Tricks Learned_20140101

    18/181

    2%ts or numbers)

    hen ce"" is not em!ty / LSEs (hen they are em!ty+ EO/ LSEO/ LSEON+ EO/ LSEO/ LSEO/ LSEO/ LSEO/ LSEO/ LSEO/ LSE

    ( number of the range state )8O40O46O2%

    s as %Q so if you mu"ti!"y them togetherQ youR"" get

    er of the "ot)

    2%

    t to n the "ast ro( (here the te*t is) @t (onRt (ork for numbersrts (ith IBBBI) Nhere (i"" not be such a (or Q so (hat the L##K $match is to return the "ast va"ue foun in the "ooku!,vector 1& 2% Q

    45)

    rmu"a (i"" then return the ro( number of IcI) @f there are te*ts ore As to be safe

    1& 2%s for both numbers te*t

    ge are b"anks (i"" give N+ Es / LSEs+ EO/ LSEO/ LSEON+ EO/ LSEO/ LSEO/ LSEO/ LSEO/ LSEO/ LSEO/ LSE

    SEs are %Q 4 ivi e by these (i"" give a bunch of 4s 4'4?4 9D@V'% 4'%?error'%:O4O9D@V'%:O9D@V'%:O4O9D@V'%:O9D@V'%:O9D@V'%:O9D@V'%:O9D@V'%:O9D@V'%:O9D@V'%:e L##K $ cannot n an e*act matchQ it returns the "ast number foun

    u"t,vector (i"" give the ro( number of the "ast number foun )

  • 8/18/2019 Excel Tricks Learned_20140101

    19/181

    Mord Count

    Nhis is to count (or s in E*ce" $retty coo" stuT

    Uar to imagine

  • 8/18/2019 Excel Tricks Learned_20140101

    20/181

    Total number o 'ord,45

    No n out ho( many (or s there areQ sim!"y n out ho( many s!s!aces) 4 to it you have the resu"t of 5 (or s)

    N+@M 5&G42 No !"ay safeQ N+@M the range 5&U2% to get ri of unnecessary s!acthe en Qor more than 4 s!ace in bet(een )

    this (i"" n the "ength of characters bet(een 5&U2%)%Q%Q%Q%Q%Q%Q%O%Q%Q%Q%Q%Q%Q%O54Q%Q%Q%Q48Q%Q%O%Q%Q%Q%Q%

    S =SN@N NE N+@M 5&G42 QI IQII No n the number of s!aces e*isting in the rangeQ you can substituunnecessary s!aces)

    i then n the "ength of the characters bet(een 5&U2% againQ but%Q%Q%Q%Q%Q%Q%O%Q%Q%Q%Q%Q%Q%O21Q%Q%Q%Q41Q%Q%O%Q%Q%Q%Q%

    as @ mentione Q (e nee to a 4 to the e.uation after getting the4Q4Q4Q4Q4Q4Q4O4Q4Q4Q4Q4Q4Q4O8Q4Q4Q4Q5Q4Q4O4Q4Q4Q4Q4Q4Q4O4Q4Q4Q4Q4Q

    s you can see aboveQ thereRs a s"ight !rob"em) Ce""s that are em!tN+@M 5&G42

  • 8/18/2019 Excel Tricks Learned_20140101

    21/181

    ces there are a 4 to it) /or eg) I@ "ove E*ce"I has 2

    s that e*ist "ike a s!ace before the startQ s!ace at

    Q%O%Q%Q%Q%Q%Q%Q%O%Q%Q%Q%Q%Q%Q%O41Q%Q%Q%Q%Q%Q%O%Q%Q%Q%Q%Q%Q%O%

    te s!aces (ith b"anks) gainQ i use N+@M to get ri of

    his time (ithout s!aces)Q%O%Q%Q%Q%Q%Q%Q%O%Q%Q%Q%Q%Q%Q%O45Q%Q%Q%Q%Q%Q%O%Q%Q%Q%Q%Q%Q%O%

    no(ing ho( many s!aces (e have)4Q4Q4Q4Q4Q4Q4O4Q4Q4Q4Q4Q4Q4O5Q4Q4Q4Q4Q4Q4O4Q4Q4Q4Q4Q4Q4O4Q4Q4Q4Q4Q4Q4

    no( a"" have a va"ue of 4 because of the 4 @ a e )

    t b"ankLSEQ/ LSEQ/ LSEQ/ LSEON+ EQ/ LSEQ/ LSEQ/ LSEQN+ EQ/ LSEQ/ LSEO/ LSEQ/

    M 5&G42

  • 8/18/2019 Excel Tricks Learned_20140101

    22/181

    SEQ/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEO/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ L

  • 8/18/2019 Excel Tricks Learned_20140101

    23/181

    SEO/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEO/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ L

  • 8/18/2019 Excel Tricks Learned_20140101

    24/181

    EQ/ LSEQ/ LSEON+ EQ/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEO/ LSEQ/ LSEQ/ LS

  • 8/18/2019 Excel Tricks Learned_20140101

    25/181

    Q/ LSEQ/ LSEQ/ LSEQ/ LSEO/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSEQ/ LSE

  • 8/18/2019 Excel Tricks Learned_20140101

    26/181

    FreDuenc* 9Count @niDue alue,:

  • 8/18/2019 Excel Tricks Learned_20140101

    27/181

    ==

    C

    =C

    &ame Count@niDueMit+-lank,7Mildcard9;'

    =

    4

    ==

    4

    C=C

    &ame ote CriteriaSiou* es es 3Sue ;oChin esS(a e esMartha esLuong ;oSue ;oSiou* es

    t+er 'a*, o obtaining no o uniDue item, 'it+ condition

    Code Items Code Unique Items

    444 F 444 2 9;'444 F444

  • 8/18/2019 Excel Tricks Learned_20140101

    28/181

    222 F222 A222 A555 F555555 A

  • 8/18/2019 Excel Tricks Learned_20140101

    29/181

    htt!&''((()youtube)com'(atch>v?u r@0hoX0= feature?!"c!

    http://www.youtube.com/watch?v=uUrI8hoj8BA&feature=plcphttp://www.youtube.com/watch?v=uUrI8hoj8BA&feature=plcp

  • 8/18/2019 Excel Tricks Learned_20140101

    30/181

    6

  • 8/18/2019 Excel Tricks Learned_20140101

    31/181

  • 8/18/2019 Excel Tricks Learned_20140101

    32/181

    Count @niDue alue, Mit+ Autoflter

    ccount ;ames 9;' e nee to create seta S =N#N L (ith functib ?S =N#N L 5Q 1& 41c it (i"" count ho( manye e!en ing on (hetherg S =N#N L 5Q 1a S =N#N L 5Q Pe )))a"" the (ay to S =N

    to im!"ement such a finsi e the #//SENQ but

    ?#//SEN referenceQr

    referencethis is the anchor !oin

    ro(s

    to test it outQ try in!ut ?#//SEN 1Q%Q%it is e.uiva"ent to !utti ?#//SEN 1QQthis means anchor in

    ? 1

    since (e (ant it to becomes in no() the +#?+# 1

    to !ut in a rangeQ it (i"?+# 1& 41

    you shou" see&

    1OPO8O0O6O4%O44O42O4since (e (ant to start?+# 1& 41 -+#%O4O2O5O3O1OPO8O0O6O4

    ?S =N#N L 5Q#//SEso if you se"ect the S

    4O4O4O4O4O4O4O%O%O%Othis is (hen nothing is

  • 8/18/2019 Excel Tricks Learned_20140101

    33/181

    it then combines (ith

  • 8/18/2019 Excel Tricks Learned_20140101

    34/181

    of 4s %s to make sure "tere b"ank ro(s are not ca"cu"ate ) S =N#N L (orks great (itn number 5 (orks "ike this&

    non-b"ank ce""s e*ist in 1& 41) (hat i (ant is a series of numbers that (i"" give me 4 couthe !articu"ar ce"" is "tere or b"ank) that means i actua""y (ant

    N L 5Q 41 Q but insi e a sing"e ce"")

    rmu"aQ i nee the range to be a ynamic oneO using the #//SEN formu"a) there are 1 argu(eRre Xust going to use 2 of them)

    (sQco"sQYheightZQY(i thZ

    ) so i !"ace it in 1

    ing&

    ng

    1Q moving % ro(s % co"umns a(ay from 1) so this is e*act"y "ike !utting&

    "ooking at 1Q then PQ then 8Q so on))) the Iro(sI is (here (eR"" !ut numbers of % to 4%formu"a gives you the ro( numberQ regar "ess of (hat co"umn itRs inQ

    " become an array) to see the resu"ts se"ect the formu"a !ress /6

    O43O41from % to 4%Q you sim!"y have to minus (hatever ro( number you start in)1

    1Q+# 1& 41 -+# 1 Q=N#N L #//SEN formu"a above !ress /6Q you shou" be seeing&

    "tere ) Nhe "ast 3 Beroes are because the ata are b"anks)

    you (ant it a(ay from the anchor !oint)

    n 1)

  • 8/18/2019 Excel Tricks Learned_20140101

    35/181

    he /+E\ E;C formu"a @/ the above sho(s as 4 non- "tere or non-b"anks

  • 8/18/2019 Excel Tricks Learned_20140101

    36/181

    h "ters) a sim!"e

    t or % countQ

    ents you can in!ut

    ) the +# formu"a

  • 8/18/2019 Excel Tricks Learned_20140101

    37/181

  • 8/18/2019 Excel Tricks Learned_20140101

    38/181

    [email protected]

  • 8/18/2019 Excel Tricks Learned_20140101

    39/181

    S =N#N L 5Q#//SENso if you se"ect the S

    4O4O4O4O4O4O4O4O4O4O4

    (hat S M$+#D CN

    this is (hen nothing is

    so you notice that (ha

  • 8/18/2019 Excel Tricks Learned_20140101

    40/181

    QE0&E46 "ike the above (ou" sim!"y give you a resu"t of D0 E0 D6 E6 ])) n so on

    %%)

    te another set of 4s %s to make sure "tere ro(s are not ca"cu"ate ) S =N#N L (orks gn number 5 (orks "ike this&

    non-b"ank ce""s e*ist in =0&=46) (hat i (ant is a series of numbers that (i"" give me 4 couthe !articu"ar ce"" is "tere ) that means i actua""y (ant

    N L 5Q=46 Q but insi e a sing"e ce"")

    rmu"aQ i nee the range to be a ynamic oneO using the #//SEN formu"a) there are 1 argu(eRre Xust going to use 2 of them)

    (sQco"sQYheightZQY(i thZ

    ) so i !"ace it in =0

    ing&

    ng

    0Q moving % ro(s % co"umns a(ay from =0) so this is e*act"y "ike !utting&

    "ooking at =0Q then =6Q then =4%Q so on))) the Iro(sI is (here (eR"" !ut numbers of % to 4formu"a gives you the ro( numberQ regar "ess of (hat co"umn itRs inQ

    " become an array) to see the resu"ts se"ect the formu"a !ress /6

    1O4PO48O40O46from % to 44Q you sim!"y have to minus (hatever ro( number you start in)=0O44

    you (ant it a(ay from the anchor !oint)

    n 0)

  • 8/18/2019 Excel Tricks Learned_20140101

    41/181

    0Q+# =0&=46 -+# =0 Q=N#N L #//SEN formu"a above !ress /6Q you shou" be seeing&4

    es is to mu"ti!"y a these numbersQ so this is ho( it oes it&

    "tere ) after "teringQ you shou" see a cou!"e of %s a!!earing)

    tever is "tere (ont be ca"cu"ate because anything mu"ti!"ies by % is %)

  • 8/18/2019 Excel Tricks Learned_20140101

    42/181

    reat (ith "ters) a sim!"e

    t or % countQ

    ents you can in!ut

    4) the +# formu"a

  • 8/18/2019 Excel Tricks Learned_20140101

    43/181

  • 8/18/2019 Excel Tricks Learned_20140101

    44/181

    Count @niDue

  • 8/18/2019 Excel Tricks Learned_20140101

    45/181

  • 8/18/2019 Excel Tricks Learned_20140101

    46/181

    by Ron Coderre

    02 "ogica" tests nee to one before counting the uni.ue? NEFN 3& 25QImmm^,yyyyI ?G3

    this (i"" convert 3& 25 into Immm^,yyyyI format "ike ththe resu"ts (ou" be&

    / LSEON+ EON+ EON+ EON+ EON+ EON+ EON+ EON+ EO

    the 2n "ogica" test is& ? =3&=25?/3

    Xust to check if =3&=25 is Su!!"ier I I foun in /3) itR"" reN+ EON+ EON+ EON+ EON+ EON+ EON+ EO/ LSEO/ LSEO

    the ne*t ste! is to combine the range of co"umn = t

    an (e on"y (ant to take in the 4st va"ue that a!!ear ast(iceO once in ro( 42 the other in ro( 43) (e on"y (ato n the ro( number the rst time the uni.ue va"ue a?M NCU 3& 25 =3&=25Q 3& 25 =3&=25Q%ates are actua""y seria" numbers if you i nWt kno( tha

    to Genera" youR"" see (hat @ mean ) So if you combinenumber of 54-Ju"-42 combining (ith I I) So the M NC

    returns 4 4st va"ue ) it then searches for 1 =1 in threturns such an array&

    notice that the 44th va"ue (hich is referring to 43 sincM NCU returns the 4st instance of the ro( it n s) Nhe c

    (e then nee to convert the above into N+ Es / LSEs)(henever it re!eats) /or this caseQ on"y the re va"ue ababove to an incrementa" number of 4 to 2%) (hen it reaitR"" turn / LSE) ? +# =3&=25 -+# =3 4

    4O2O5O3O1OPO8O0O6O4%O44O42O45O43O41O4PO48O40O46O2%

    so combining the 2 together to make it a "ogica" test (o?M NCU 3& 25 =3&=25Q 3& 25 =3&=25Q% ? +# =3&N+ EON+ EON+ EON+ EON+ EON+ EON+ EON+ EON+ EON

    no( that (e have the 5 "ogica" testsQ sim!"y mu"ti!"y the? NEFN 3& 25QImmm^,yyyyI ?G3 =3&=25?/3 M N/ LSEON+ EON+ EON+ EON+ EON+ EON+ EO/ LSEO/ LSE

    #n"y (hen 5 "ogica" tests turns N+ E (i"" it be N+ E becby % is %)

    4O2O5O3O1OPO8O0O6O4%O6 O42O45O43O41O4PO48O40O46O2%

  • 8/18/2019 Excel Tricks Learned_20140101

    47/181

    @f @ (ere to then use 4 to ivi e it by a bunch of N+ Es is 4 (hi"e 4'/ LSE or % is a D@V error

    9D@V'%:O4O4O4O4O4O4O9D@V'%:O9D@V'%:O9D@V'%:O9D@V'%:O

    the C# ;N formu"a (i"" count ho( many of them are nuformu"a insi e a C# ;N formu"aQ it (ou" have to be anformu"a insi e an @;DEF formu"a) =y !utting in a I%I forthe array of va"ues instea of a sing"e va"ue an @;DEF fo

    Nhe na" !art is sim!"y to a the C# ;N formu"a&

    ? 4' NEFN 3& 25QImmm^,yyyyI ?G3 =3&=25?/3 M

    ? @;DEF 4' NEFN 3& 25QImmm^,yyyyI ?G3 =3&=25

    ? C# ;N @;DEF 4' NEFN 3& 25QImmm^,yyyyI ?G3

  • 8/18/2019 Excel Tricks Learned_20140101

    48/181

    a"ues)

    e va"ue in G3 for an a!!"e-to-a!!"e com!arison

    + EON+ EON+ EON+ EON+ EON+ EON+ EON+ EON+ EO/ LSEO/ LSE

    turn&/ LSEO/ LSEO/ LSEO/ LSEON+ EO/ LSEO/ LSEO/ LSEO/ LSEO/ LSEO/ LSE

    make the va"ues uni.ue to the Date Su!!"ier

    the uni.ue va"ue) /or eg in 48- ug-42Q Su!!"ier I=I a!!earet to take in ro( 42 in or er not to oub"e-count!eare Q (e can use&

    ) =ut thatRs a (ho"e "ong story) /ormat ce""s of co"umn 3 =3Q you actua""y get I34424 IO I34424I being the seria"

    formu"a n s I34424 I insi e the range of 3& 25 =3&=25e same range returns 2 2n va"ue ) it continues

    e (e start from 3 is 6 instea of 44) Nhat is becauseombination 48- ug-42 I=I is a"rea y foun in the 6th va"ue

    ) N+ E is (henever the va"ue is the 4st instanceQ / LSE isove shou" be / LSE) No o thatQ sim!"y com!are thehes the 44th va"ueQ it (i"" use the 6 in re above vs 44

    " be&=25 -+# =3 4+ EO/ LSEON+ EON+ EON+ EON+ EON+ EON+ EON+ EON+ EON+ E

    m to get the na" outcome of N+ Es / LSEs)&U 3& 25 =3&=25Q 3& 25 =3&=25Q% ? +# =3&=25 -+# =3 4/ LSEO/ LSEO/ LSEO/ LSEON+ EO/ LSEO/ LSEO/ LSEO/ LSEO/ LSEO/ LSE

    use N+ E is e.uiva"ent to 4 / LSE to %) nything mu"ti!"ie

  • 8/18/2019 Excel Tricks Learned_20140101

    49/181

    / LSEsQ it (i"" give me 4s D@V errors because 4'N+ E or 4

    D@V'%:O9D@V'%:O4O9D@V'%:O9D@V'%:O9D@V'%:O9D@V'%:O9D@V'%:O9D@V'%:

    bersQ ignoring errors) =ut if you sim!"y !ut the aboverray formu"a) No !revent thatQ !ut the (ho"e chunk of

    the ro( argument of the @;DEF formu"aQ it (i"" give you mu"a usua""y returns)

    NCU 3& 25 =3&=25Q 3& 25 =3&=25Q% ? +# =3&=25 -+# =3 4

    /3 M NCU 3& 25 =3&=25Q 3& 25 =3&=25Q% ? +# =3&=25 -+# =3 4 Q%

    3&=25?/3 M NCU 3& 25 =3&=25Q 3& 25 =3&=25Q% ? +# =3&=25 -+# =3 4 Q%

  • 8/18/2019 Excel Tricks Learned_20140101

    50/181

    Flip t+e 1,t 7 la,t &ame 7 in proper ca,ing

    J#;ES'J CK Jack Jones Nhe S =SN@N NE +E$N metho irough i ea) n @ a"so foun the? 3 I I 3

    (hat the formu"a oes is to use the mi "e)

    J#;ES'J CK J#;ES'J CK

    there are 5 !arts in the above te* goo number to use (ou" be

    so to o the substitutionQ IJ#;ES'Jre!eat a certain te*t the number

    IJ#;ES

    the te*t (ith 4%% s!aces in bet(eyou (ant the 4st !artQ then !ut inyou re!eate s!acesQ mu"ti!"ie bte*ts)I J CK J#;ES

    No remove the unnecessary s!ace

    bet(een (or s) Last"yQ user $+#

  • 8/18/2019 Excel Tricks Learned_20140101

    51/181

    s e*treme"y usefu" in oing a Ne*t-No-Co"umn sty"e using Xust a formu"a to co!y across) Nhii!!ing of the ;ame interesting)

    Q combine it (ith a s!ace (ith ce"" 3 again) @t creates the be"o( eTect (hat (e have

    Q se!arate by the backs"ash) No make it easy for us to e*tractQ (e can substitute the s"asoub"e the "ength of the te*t in 3) 4%% is Xust a bigger safer number to use)

    CK J#;ES'J CKI (i"" be the te*t (here it (i"" substitute the 2 I'I (ith 4%% s!aces using thf times you esire) Nhat (i"" give you this resu"t&

    J CK J#;ES

    en (i"" be in our 4st argument of the M@D formu"a) Nhe 2n argument e!en s on (hich !I4I) /or the 2n !artQ !ut in the number of times you re!eate the s!aces) /or the 5r !ay 2) this (i"" ensure you have se"ecte a bunch of s!acesQ a"ong (ith the te*t you (antQ (i

    I

    sQ sim!"y use N+@M) N+@M (i"" remove s!aces before after the rst "ast (or sQ an ens

    E+ to make sure the rst "etter is in Ca!ita" "etter the rest in sma"")

    N I IQ4%%

    Q+E$N I IQ4%%Q4%%Q4%%

    3 I I 3QI'IQ+E$N I IQ4%% Q4%%Q4%%

  • 8/18/2019 Excel Tricks Learned_20140101

    52/181

    eg oesnWt o that but gives a

    to o is e*tract everything in

    es by a hun re s!aces in bet(een)

    e +E$N formu"a ) +E$N is to

    J CKI

    rt of the te*t o you (ant) @f rtQ !ut in the number of timesthout inc"u ing the un(ante

    re on"y a sing"e s!ace is in

  • 8/18/2019 Excel Tricks Learned_20140101

    53/181

    Find i E(act .atc+ e(i,t in ,tring o te(t,

    Find .1M4%QM4QM42% 4M4%QM42% % in a scenario (here IM4I is the 4s

    =ut (e canRt o that because if itso if (e (ant to n an e*act mat?IQI 1 IQI

    that (i"" give us&QM4%QM4QM42%Q

    so (e can no( search for IQM4QI

    "ast"yQ !ut in @S; M=E+ to return

  • 8/18/2019 Excel Tricks Learned_20140101

    54/181

    t te*t to a!!earQ it (ou" be IM4QetcQ etcI) So a safer bet (ou" be to n IM4QI instea ofa!!ears in the "ast te*tQ it (ou" not contain a comma behin ) Eg) IetcQ etcQ M4I

    chQ a in commas in front behin the te*t

    no matter (hich !osition itRs inQ it (i"" have commas both in front behin )

    hether or not the SE +CU formu"a contains a number) @f it oesQ it means IQM4QI is foun

    in the te*tQ youR"" notice that anything containing IM4I (ou" be consi ere ) nything "ike

    1 IQI

  • 8/18/2019 Excel Tricks Learned_20140101

    55/181

    Xust IM4I)M4%Q M42% or EM4%)

  • 8/18/2019 Excel Tricks Learned_20140101

    56/181

    Po,ition o t+e la,t occurance o certain c+aracter

    Find la,t 5"a"a"a)(oooo)com 45 this is es!ecia""y usefu" (hen you nee to e*tahh)oooh)e)yy 44

    ?LE; 1rstQ you can n out ho( many of such a ch

    you (i"" get 4P characters

    ?LE; S =SN@N NE 1QI)IQIIthen substitute the character the one (e areyou (i"" get 43 characters) Nhat means if the

    take the iTerence of both youR"" get ho(

    the resu"ts is 2)

    character that onRt norma""y occur) LetRs usthis (i"" be the resu"t&"a"a"a)(oooo com

    (ith a s!ecia" character I I no(Q itRs much ea

  • 8/18/2019 Excel Tricks Learned_20140101

    57/181

    ract everything before or after the "ast occurance of a certain character)

    racter are there) No o thatQ n the "ength of the te*t

    sho(ing here is I)I (ith b"anks n out the "engthte*t is (ithout the I)IQ you have 43 characters

    any of such characters I)I are there

    I I) n in the "ast argumentQ itRs the resu"t (e obtaine above to n the "ast instance o

    sier to n the !osition

    @N NE 1QI)IQIIactua""y a""o(s you to on"y substitute that !articu"ar instance) e can substitute the "ast i

    ; S =SN@N NE 1QI)IQII

  • 8/18/2019 Excel Tricks Learned_20140101

    58/181

    f I)Instance of I)I (ith some s!ecia"

  • 8/18/2019 Excel Tricks Learned_20140101

    59/181

    C @&T F to count nonNblank, or blank,

    Count nonNblank te(t entrie,2 a sing C# ;N@/ =1&=8QI

  • 8/18/2019 Excel Tricks Learned_20140101

    60/181

    ot consi er II returne by a formu"a to be b"ankcase) Do note that this on"y (orks on te*t)

    (ith I?I oes the sameQ or Xust II

  • 8/18/2019 Excel Tricks Learned_20140101

    61/181

  • 8/18/2019 Excel Tricks Learned_20140101

    62/181

    = C D /4 % % 24 4 % %4 2 % %5 % % 44 % 4 44 4 4 %% 2 % 4% 2 4 %

    o the correct ro( for C# ;N@/Q you can use @;DEF (ith I%I in the co"umn,num to return an

    G1Q7 71&7 742Q%

    e you the ro( !osition G1 8 is foun in 1& 42

    of returning a sing"e va"ue from that ro( !ositionQ (e can use I%I in the en to return theto se"ect the above above !ress /6 to ca"cu"ateQ youR"" get&

    IQI/I=44&E44 contains) ou can a"so omit Bero an the efau"t va"ue is %71&7E742QM NCU 7G1Q7 71&7 742Q% Q

    71&7E742QM NCU 7G1Q7 71&7 742Q% Q%

  • 8/18/2019 Excel Tricks Learned_20140101

    63/181

    array of resu"ts

    resu"ts from =44&E44

  • 8/18/2019 Excel Tricks Learned_20140101

    64/181

    Find la,t alueJte(t

    043 043 Va"ue 52% Nhe L##K380 of the va"u

    9;' 9;' Ne*t c ty!e 6E 400%

    9D@V'%: =oth P3a

    043

  • 8/18/2019 Excel Tricks Learned_20140101

    65/181

    $ VL##K $ (ith a!!ro*imate match (i"" rst "ook for an e*act match) @n a scenario (hes searche Q it (i"" return the "ast va"ueto get 6 4% Beros

  • 8/18/2019 Excel Tricks Learned_20140101

    66/181

    e "ooku! va"ue is "arger than a""

  • 8/18/2019 Excel Tricks Learned_20140101

    67/181

    Round @p Time to ne(t min,

    by daddylonglegs4%&%2 M 4%&%1 M

    0&5P M 0&3% M3&26 $M 3&5% $M

  • 8/18/2019 Excel Tricks Learned_20140101

    68/181

    Rank tie t+e ,ame and t+e ne(t 1

    =tudent, Ranking;ame Scores +anking "ternativeLo"a 24` 41 41

    Manny 40` 4P 4P/rances 41` 48 48Cin y 4%` 46 46

    Namie 68` 4 4=en 52` 43 43

    Smith 0P` 1 1i""y 00` 3 3

    James 1%` 4% 4%$enny 44` 40 40Lance 53` 45 45

    am 6%` 5 5Emerson 35` 42 42

    +ose P6` 8 8Kathy P6` 8 8 Jerry 68` 4 4

    a""y 16` 0 0Donna 80` P PCo""een 44` 40 40

    ;e""y 31` 44 44 Nom 62` 2 2

    Sam 11` 6 6

  • 8/18/2019 Excel Tricks Learned_20140101

    69/181

    No !revent using an array formu"a in co"umn CQ you can use the S M$+#D CN metho in c

    ? =P

  • 8/18/2019 Excel Tricks Learned_20140101

    70/181

    o"umn /

    g)

    EON+ EON+ EON+ EO/ LSEON+ EON+ EON+ E

    criteria)

    Q it actua""y a!!ears t(iceQ the other one in =24

    onceQ itR"" be 4'4 return 4) but if it a!!ears

    e o not oub"e count

  • 8/18/2019 Excel Tricks Learned_20140101

    71/181

    [email protected]

  • 8/18/2019 Excel Tricks Learned_20140101

    72/181

    se I I for either co"umn to have IJi""IQ cur"y brackets for a co"umn to have I/"oorI or ICo

  • 8/18/2019 Excel Tricks Learned_20140101

    73/181

    nterI

  • 8/18/2019 Excel Tricks Learned_20140101

    74/181

    Put t+e ,t;nd;rd;t+ be+ind t+e da*

    4-;ov-42 4st ?D 32-;ov-42 2n Nhe ay formu"a retur5-;ov-42 5r3-;ov-42 3th Nhe L##K $ formu"a s1-;ov-42 1th e cou" make a "ookP-;ov-42 Pth =ut there are some nu8-;ov-42 8th So these are the on"y0-;ov-42 0th 4Q2Q5Q3Q24Q22Q25Q23Q6-;ov-42 6th an the res!ective te*

    4%-;ov-42 4%th IstIQIn IQIr IQIthIQIst44-;ov-42 44th42-;ov-42 42th so (hen the ay is sa45-;ov-42 45th (i"" then return the te43-;ov-42 43th41-;ov-42 41th Combine (ith the a4P-;ov-42 4Pth48-;ov-42 48th40-;ov-42 40th46-;ov-42 46th2%-;ov-42 2%th

  • 8/18/2019 Excel Tricks Learned_20140101

    75/181

    s the ay of the ate

    earches for an e*act match of the "ooku!,va"ue in the "ooku!,vector rst) @f it c!,vector of 4 to 54 the resu"ts vector (ith the te*t of IstI for 4stQ In I for 2n

    mbers in bet(een (e can actua""y ski!O from 3th to 2%th are a"" en ing (ith Ithumbers (e nee &4

    ts it returns&IQIn IQIr IQIthIQIstI

    0Q it is unab"e to n an e*act match in the "ooku!,vector) @t then goes back tt IthI)

    !ersan keyQ it combines the ay of the ate the te*t

  • 8/18/2019 Excel Tricks Learned_20140101

    76/181

    anRt n oneQ it returns the "ast va"ue c"osest to itQ Ir I for 5r so on) Nhe same for 23th to 5%th)

    the "ast va"ue c"osest to it !icks I3I) Nhe resu"t,vector

  • 8/18/2019 Excel Tricks Learned_20140101

    77/181

    =um 1,t 12 nonNblank cell,

    P15 4 25 33 11 PP350 % 4% 11 1P 13 55 21213 80

    ?@S; M=E+ C3& 3 No n out if C3& 3 contains numbersQ (e can use @S; M=E+) Nhat (i"

    N+ EQ/ LSEQN+ EQ/ LSEQN+ EQN+ EQN+ EQN+ EQN+ EQ/ LSEQN+ EQN

    hen they are in ee numbersQ then return the co"umn number they5Q3Q1QPQ8Q0Q6Q4%Q44Q42Q45Q43Q41Q4PQ48Q40Q46Q2%Q24

    but (hat (e (ant is to start from 4) So (e e uct the co"umn it starts%Q4Q2Q5Q3Q1QPQ8Q0Q6Q4%Q44Q42Q45Q43Q41Q4PQ48Q40

    (e then a 4 to it to make it start from 4&4Q2Q5Q3Q1QPQ8Q0Q6Q4%Q44Q42Q45Q43Q41Q4PQ48Q40Q46

    so on"y (hen the ce""s are numbers using @S; M=E+Q the co"umn num4Q/ LSEQ5Q/ LSEQ1QPQ8Q0Q6Q/ LSEQ44Q42Q45Q/ LSEQ41Q4PQ/ LSEQ40Q/ L

    e nee to kno( the 42th sma""est co"umn number to eci e (here o=ut in a scenario (here there cou" be a !ossibi"ity of "ess than 42 nucount of numbersQ e!en ing (hich is sma""er) So in our case hereQ (number is 4PQ (here the "ast 33 resi es)

    @f (e !ut a"" of that insi e the @;DEF formu"aQ (e (ou" get the va"ue

    =ut hereRs a coo" trick) @f you !ut a ce"" reference in front of it (ith a c?C3&+3

    +3 (as obtaine by using the @;DEF formu"a

    Last"yQ Xust !ut a S M to sum u! C3&+3) !ress CN+L SU@/N E;NE+

  • 8/18/2019 Excel Tricks Learned_20140101

    78/181

    88 00 23 0P P8 80 3338 2P 1 66 20

    " give us a bunch of N+ Es / LSEsEQN+ EQ/ LSEQN+ EQN+ EQ/ LSEQ/ LSEQ/ LSE

    re in) C#L M; C3& 3 (ou" have given us&

    from using C#L M; C3 to return&

    ers (i"" sho( u! as&E

    r S M shou" sto!) UenceQ (e can use the SM LL formu"a (here the above formu"a givesbers avai"ab"eQ (e can use C# ;N to count ho( many numbers there are) e then take thave 45 numbers in C3& 3) e (ou" take 42 since 42 is sma""er than 45) NhereforeQ the

    3Q (hich is in ce"" +3)

    "on then s"ot in the @;DEF formu"aQ it (i"" give you a ce"" range) @tRs e.uiva"ent to !utting

    o con rm as this is an array formu"a

    2QC# ;N C3& 3

    C3 4 QM@; 42QC# ;N C3& 3

    ; C3 4 QM@; 42QC# ;N C3& 3

    #L M; C3 4 QM@; 42QC# ;N C3& 3

  • 8/18/2019 Excel Tricks Learned_20140101

    79/181

    4%11 6511 20 65

    us the array of va"uese M@; of both va"uesO 42 or the

    42th sma""est va"ue of the co"umn

    &

  • 8/18/2019 Excel Tricks Learned_20140101

    80/181

    =um uniDue N e 7 nonN&A

    -100 -26% e nee to o 5 things hereO i en-100-100 ?@S; M=E+ 3& 48

    #N/A this (i"" "et us kno( (hich are nu#N/A N+ EON+ EON+ EO/ LSEO/ LSEO/#N/A

    120 ? 3& 48

  • 8/18/2019 Excel Tricks Learned_20140101

    81/181

    tify (hich are numbers non-errors Q (hich are negative va"ues a them u! X

    bers) Nhose (ith numbers (i"" be N+ E those (ith errors (i"" _ag out as / LLSEON+ EON+ EON+ EON+ EON+ EON+ EON+ EON+ E

    u" turn N+ EQ other(ise / LSE) ;ote that this "ogica" test must be after the @S' O/ LSEO/ LSEO/ LSEO/ LSEON+ EON+ EO/ LSEO/ LSE

    (ayQ it e"iminates the ;' s in the rst "ogica" test rst before !rocee ing to (he

    times each ro( a!!ears)

    a!!eare 5 times) So i 1& 6) Va"ue in 4% a!!eare 3 timesQ so on) So ia!!earsQ summing them u! (i"" ensure (e onWt oub"e count) So if you se"ect5555555O-55)5555555555555O/ LSEO/ LSEO/ LSEO/ LSEO/ LSEO/ LSEO/ LSEO-6

    timesQ so it took -4%%'5 returns I-55)5555])I) Nhe 3th va"ue is / LSE becau1I)

    eQ it (i"" return (hat (e nee )

  • 8/18/2019 Excel Tricks Learned_20140101

    82/181

    ust once if it re!eats)

    SE

    ; M=E+) #ther(iseQ ;' s (i"" a!!ear)

    ther 3& 48 is "esser than %) (hen both are N+ EQ

    (e (ere to take the va"ues in 3& 48 ivi e iteverything insi e the S M !ress /6&O-61O/ LSEO/ LSEe itRs ;' ) Nhe other va"ue is I-46%IQ (hich a!!eare

  • 8/18/2019 Excel Tricks Learned_20140101

    83/181

    Con ert ****mmdd++mm to proper ormat

    Date by daddylonglegs2%42%P%4%%15 4-Jun-42 %%&15 4% 4%

  • 8/18/2019 Excel Tricks Learned_20140101

    84/181

    =acks"ash (i"" treat the ne*t sing"e te*t as if in oub"e .uotes

  • 8/18/2019 Excel Tricks Learned_20140101

    85/181

    &onNarra* Ma* o .in 'it+ Condition

    ;ame Cost ;ame rray Mine Ma celo ! ancoa 06 a PP Err&1%3 PPv 2P 4 5 3a 85g 55 My Methoa PP ? 1& 6?IaI

    @ use a "ogica" test to n outN+ EO/ LSEON+ EO/ LSEON+

    E*ce" treats N+ Es as 4 / LS06O%O85O%OPP

    to make it a non-array formu"a

    n this (i"" return you a serie

    ?C# ;N@/ 1& 6QI

  • 8/18/2019 Excel Tricks Learned_20140101

    86/181

    N) Va"koRs metho ?4E 4%% 1& 6

  • 8/18/2019 Excel Tricks Learned_20140101

    87/181

    Added>

  • 8/18/2019 Excel Tricks Learned_20140101

    88/181

    roes) Like Marce"o =rancoRs metho Q this is a"so using a huge number mu"ti!"ie by the;#N e.ua"s to IaI

    of =1&=6

    as the same eTect as Marce"oRs

    3

    =3&=45Q% QC# ;N@/ 3& 45QE3@/ (ou" be sim!"y to change the M F to M@; in the S M$+#D CN formu"a ear"ier)

    u"ts for the / LSEs (ou" give you a bunch of Beroes an the M@; (ou" e nite"y retu not IabcI)

    " test mu"ti!"ie by the va"ues in =3&=45 "ike this&

    ey (onRt become an array is to use @;DEF (ith % as the ro(,num&%

    cI a!!eare Q @ can use C# ;N@/&

    "a to n the nth "argest number)

    6

    1& 6

  • 8/18/2019 Excel Tricks Learned_20140101

    89/181

    - /astest to S"o(est 4-1

    for those (hose ;ames in 1& 6 are IaI

    t is e.uiva"ent to !utting a %&

    !eare because those va"ues i nt to return) So @ can use C# ;N@/ to count

    Nhen @ a 4 to say @ (ant the 5r sma""est

    es in =1&=6

    a"s to IaI)

    est number E*ce" can ho" ) So&

  • 8/18/2019 Excel Tricks Learned_20140101

    90/181

    same 2n "ogica" test Marce"o i O

    n

    as'433a2f5%-54ef-3%0e-0Pc5-f4335 6ac4f

    y

    http://answers.microsoft.com/en-us/office/wiki/office_2013_release-excel/minif-maxif-and-modeif-with-standard-formulas/144a2f30-31ef-408e-86c3-f1443d9ac1fdhttp://answers.microsoft.com/en-us/office/wiki/office_2013_release-excel/minif-maxif-and-modeif-with-standard-formulas/144a2f30-31ef-408e-86c3-f1443d9ac1fd

  • 8/18/2019 Excel Tricks Learned_20140101

    91/181

    &onNarra* Ma* o .a( 'it+ Conditiontige a ata

    *yB 1% abc 83%*yB 28%*yB 20% M$% with &'abc 83% 83%*yB 4%%%abc 38%abc 42%*yB 34%*yB 21%abc 48%

  • 8/18/2019 Excel Tricks Learned_20140101

    92/181

    E(planation added> Lul 2%13 Nhe formu"a is basica""y to avoi keying in an array formu"a "ike @ i

    ?S M$+#D CN M F 3& 45?E3 =3&=45

    ? 3& 45?E3 Nhat (i"" return N+ Es / LSEs&

    / LSEO/ LSEO/ LSEON+ EO/ LSEON+ EON+ EO/ LSEO/ LSEON+ Eto return the numbers (hen the above "ogica" test is N+ EQ try& ? 3& 45?E3 =3&=45

    Nhe resu"ts (i"" sho( =3&=45 numbers if 3& 45 is IabcI % if they%O%O%O83%O%O38%O42%O%O%O48%

    can a in the S M$+#D CN that sett"es it)

    ?L +GE @;DEF 3& 45?E3 =3&=45Q% QC# ;N@/ 3& 45QE3 ou might think that the M@; @/ (ou" be sim!"y to change the M@t cannot (ork because the resu"ts for the / LSEs (ou" give you aBero if any va"ues in 3& 45 is not IabcI)

    ou can sti"" o the same "ogica" test mu"ti!"ie by the va"ues in =3&

    ? 3& 45?E3 =3&=45to store these va"ues so that they (onRt become an array is to use @?@;DEF 3& 45?E3 =3&=45Q%

    %O%O%O83%O%O38%O42%O%O%O48% No n out ho( many times IabcI a!!eare Q @ can use C# ;N@/& ?C# ;N@/ 3& 45QE3

    No en itQ use the L +GE formu"a to n the nth "argest number)

    Nhis formu"a to substitute the M F @/ is much sim!"er) ou can r

    =y !utting a M F formu"aQ you can then n out (hich is the ma*i? $A%&&A4'A13()4*+"4'"13 *=ut the above is an array of va"ues you (ou" nee to !ress CN+L

    @ have 3 va"ues in 3& 45 that are IabcI) UenceQ the sma""est numbarray obtaine from INDEX((A4:A13=E4) 4: 13" )

  • 8/18/2019 Excel Tricks Learned_20140101

    93/181

    in /8

    re not

    F to M@; in the S M$+#D CN formu"a ear"ier)unch of Beroes an the M@; (ou" e nite"y return

    45 "ike this&

    DEF (ith % as the ro(,num&

    t n out if 3& 45 is IabcI by oing&

    um)

    SU@/N E;NE+ to con rm it) No !revent thatQ you

    er for IabcI is actua""y the 3th "argest number in my

  • 8/18/2019 Excel Tricks Learned_20140101

    94/181

    Arrange in 1 column; b* ro' t+en b* column

    $o% &'ted nd &'ted

    *ite Co%%i+e e+,- Lou hite Co!!ice Nhe !atter.umme/ D/e'm 0e/o 'me =ecky Lou @f you notic

    2'+e $*e /o 5em &o6e '/, Summer DreamCommuni+'to/ A/e' 2i7t- 8ne Aero Game ? +# S

    /ace Nhe $rob"em +# S for+o(e $ark ro(Q itRs goiCommunicator (ou" be

    rea /ifty #ne 2) fo""o(in

    ?M#D +# Nhe M#D f

    ?M#D 5Q2

    5 can be i?M#D 3Q2

    3 can be (e are goi

    %) e thea 4 for

    n thenQco"umn,nu

  • 8/18/2019 Excel Tricks Learned_20140101

    95/181

    here is that (e must rst !ick u! the 4st ro(Q 4st co"umn) Nhen fo""o(e by 4st ro(Q 2ne Q the ro(s is to increase by 4 after every 2 ro(s the co"umn is to s(itch bet(een 4 2

    71&D1 4 '2 u"a (i"" count ho( ro(s are there in the range state ) @ state D71&D1Q so there is on"y 4 r

    ing to increase by 4 (hen the formu"a is co!ie o(n) @ then a e 4 because @ (ant the 4 '2 return me 4)1) @;DEF (i"" on"y take the integer hence take on"y 4Q ignoring %)1)

    g that (ou" be 3 4 '2Q returning 2)1) ;otice that @Rm no( getting an increment of 4 after

    S D71&D1 -4Q2 4rmu"a returns the remain er that cannot be ivisib"e by the ivisor state ) n eg&

    vi e by 2 a remaining of 4 cannot be ivisib"e to return a (ho"e number) UenceQ it retu

    o""y ivi e by 2 hence return % as the remain er)g to use +# S again "ock the ro( to get 4 for the rst ce"") e then minus 4 to obtain %a 4 behin to obtain 4) Nhe reason for e ucting a ing is for the ne*t ro() @t beco

    it to become 2)

    e can a in the @;DEF formu"a choose 1&=6 as the arrayQ (hi"e the other 2 formu"a co)

    1&=76Q +# S D71&D1 4 '2QM#D +# S D71&D1 -4Q2 4

  • 8/18/2019 Excel Tricks Learned_20140101

    96/181

    co"umn) n then 2Q 4) 2Q 2) 5Q 4) 5Q 2))

    ( in tota") =ut because @ "ocke therst ce"" to be 2'2 to get 4) Nhe 2n ro(

    the 5r ro( (ou" be 5 4 '2 returns2 ro(s)

    ns 4 as the remain er) if @ (ere to !ut&

    ) so it becomes M#D 4-4Q2 returnmes M#D 2-4Q2 returns 4) e then

    binations give us the ro(,num

  • 8/18/2019 Excel Tricks Learned_20140101

    97/181

    /i,t nonNblank feld, 'it+out arra*

    Peter % Solution by Ma col Paul JohnTracy %

    %John Darcy s you can see

    % C3&C45Abigail JamesDarcy Nhose of us (h

    es!ecia""y if yoJames

    /irst oTQ (e ca

    So "etWs o a fo?+# 3

    @t (i"" return m?+# 7 73&73O1OPO8O0O6O4%s you can seeQ

    ?+# 7 73&7

    Since ro( 8Q 6

    out if the ce""s?7 73&7 745

    gainQ if you c"i/ LSE means it

    N+ EON+ EON;o(Q N+ E in Eto get the % f? 7 73&7 7453O1OPO%O0O%O4%

    So this is (hatcourse 3 Q sova"ue of it is %

    Cell31P806

  • 8/18/2019 Excel Tricks Learned_20140101

    98/181

    444245

    @f (e (ere to rava"ue on my "isC# ;N=L ;K t?C# ;N=L ;

    Nhat (i"" giveto a increme?C# ;N=L ;

    No n the nthbe our C# ;N=?SM LL 7 73

    Nhis formu"a abreferring to +o

    s you can seeQ=ut (e actua""y?@;DEF arrayQe norma""y ""

    (e (ere to !ut? 7 73&7 745

    e can then !?@;DEF 7 73

    n a!!"ying t?SM LL @;DEe sti"" have s

    So co"umn C shro( 44Q it is "oo@;DEF formu"a

    Nhis is Xust to s

    ;o(Q to han "eformu"as that r?C# ;N@/ 7

    Nhis (i"" return

    non-b"ank ce""sQ?+# S 7 73&

    ?@;DEF 7 74&

  • 8/18/2019 Excel Tricks Learned_20140101

    99/181

    Nhis is a "ogica"b"ank in the N+

    0 (i"" be grea

    ?@/ +# S 7

    Nhe formu"a aft?@/ +# S 7

    Nhat en s it:

  • 8/18/2019 Excel Tricks Learned_20140101

    100/181

    here in 3& 45Q there are some b"ank ce""s in bet(een) n (e (ant to use form

    kno(s array formu"as can !robab"y easi"y o a formu"a to make a "ist (ithout thWre ea"ing (ith a huge "e) So hereWs a metho by this forum guruQ Marco"Q (hic

    see that (hat (e nee is to return ro(s 3Q 1Q PQ 0Q 4%Q 44 45) Nhese are the no

    mu"a that returns the ro( numberO the +# formu"a) So if my formu"a is&

    the ro( number of 3Q (hich is 3 ) =ut if you "ist a range of ce""s from 3& 45Q745

    O44O42O45it creates a "ist of numbers from +o( 3 to +o( 45)745

    42 are b"anksQ (e have to make sure these ro( numbers are sho(n as % inste

    re b"anks&HII

    ck insi e the formu"a bar !ress /6 to ca"cu"ateQ you (i"" see that it creates a "istis a b"ank&

    EO/ LSEON+ EO/ LSEON+ EON+ EO/ LSEON+ E *ce" is actua""y e.uiva"ent to the va"ue 4 / LSE is % ) So if (e (ere to mu"ti

    r the b"ank ce""s) R M ormula .ultiplication4 4 3 34 4 1 14 4 P P% % 8 %4 4 0 0% % 6 %

  • 8/18/2019 Excel Tricks Learned_20140101

    101/181

    4 4 44 44% % 42 %4 4 45 45

    nk the numbers after the mu"ti!"icationQ % (ou" be the sma""est) 2n 5r sshou" be the 3th sma""est ro( numberQ an the secon va"ue on my "ist shou"count ho( many % s @ have)7 73&7 745

    e a resu"t of 5 ) My "ist (i"" be incrementa" by 4 as it goes o(n i)e) 3th sma""eta" va"ue of 4 as it goes o(n i)e) 3th sma""estQ 1th sma""estQ etc ) NhusQ @ can u7 72&7 744 +# S 7 73&7 3

    ma""est numberQ (e can use the SM LL formu"a) Nhe array (ou" be our "ogica"L ;K +# S formu"a&&7 745

  • 8/18/2019 Excel Tricks Learned_20140101

    102/181

    test that (i"" return N+ E or / LSE) Since +# S 7 73&7 3 (i"" return 4 it isE statement the "ong formu"a (e create Q in the / LSE statement) Nhis formu"

    ter than 8) sing @/&

    3&7 3 HC# ;N@/ 7 73&7 745QIHIII QIIQ

    er the comma is of course the "ong formu"a (e create )3&7 3 HC# ;N@/ 7 73&7 745QIHIII QIIQ@;DEF 73& 745QSM LL @;DEF 7 73&7

  • 8/18/2019 Excel Tricks Learned_20140101

    103/181

    "as to make it sho( a "ist (ithout b"anks in bet(een "ike

    b"anks) =ut array formu"as (i"" s"o( o(n ca"cu"ationsQh (hich oes not use arrays)

    n-b"ank ro(s)

    "ick insi e the formu"a bar !ress /6 to ca"cu"ate&

    ) No o thatQ (e can o a sim!"e "ogica" test to n

    of N+ Es / LSEs) N+ E means the ce"" is not a b"ankQ

    "y this "ogica" test (ith the +# formu"aQ (e (ou" be ab"e

    N+ E is e.uiva"ent to the va"ue 4 ) Nhe +# of 3 is of as b"anks i)e) 8 ) Nhe "ogica" test turn / LSE Q hence the

  • 8/18/2019 Excel Tricks Learned_20140101

    104/181

    a""est numbers are sti"" the other 2 Beroes) So the rste the 1thQ so on) No get the number 3 Q @ can use

    tQ 1th sma""estQ etc ) NhusQ @ can use the +# formu"a againe the +# S formu"a to a incrementa" va"ue of 4

    est the +# number combine together) Nhe k (ou"

    e the formu"a barQ 3 shou" a!!ear) n thatWs actua""yb"ank) +o( 6 42 is a"so e*c"u e (hen co!ie o(n)

    se are array va"uesQ most"y to combine (ith array formu"as)ray formu"a) Nhe arguments of the @;DEF formu"a go "ike this&

    return us a sing"e va"ue from the array chosen) =ut if "" this formu"a>

    more&73&7 3

    M: error shou" be remove ) @t (i"" be a!!earing because ine te*t rst) Since (e have the ro( numberQ a"" (e nee is theisting formu"a&

    ith te*tQ but the "ast fe( (ith the 9; M: error

    in Q but this formu"a (i"" fai" if co"umn contains

    ay that if the nth va"ue is greater than the number of

    again) So&

    3&7 745 +# 4

  • 8/18/2019 Excel Tricks Learned_20140101

    105/181

    greater than 8Q it (i"" return / LSE) #ur @/ statement (i"" !ut aa (i"" on"y return N+ E (hen it is at +# S 7 73&7 44 (here

    45

  • 8/18/2019 Excel Tricks Learned_20140101

    106/181

  • 8/18/2019 Excel Tricks Learned_20140101

    107/181

  • 8/18/2019 Excel Tricks Learned_20140101

    108/181

    # S 7 73&7 3

  • 8/18/2019 Excel Tricks Learned_20140101

    109/181

    =um up 'it+ Eit+er r in 2 Column,

    dog or cat in Column A; red or blue in Column -; ,um up Column Cog re 1 daddylonglegs

    co( b"ue 8 44 44cat b"ue 48horse b"ue 41snake re 1

    og green 21

  • 8/18/2019 Excel Tricks Learned_20140101

    110/181

    formu"as-an -functions'005366-nee -to-ca"cu"ate-the-average-for-a-co"umn-base -on-va"u

    http://www.excelforum.com/excel-formulas-and-functions/883499-need-to-calculate-the-average-for-a-column-based-on-values-in-two-other-columns.htmlhttp://www.excelforum.com/excel-formulas-and-functions/883499-need-to-calculate-the-average-for-a-column-based-on-values-in-two-other-columns.html

  • 8/18/2019 Excel Tricks Learned_20140101

    111/181

    s-in-t(o-other-co"umns)htm"

    http://www.excelforum.com/excel-formulas-and-functions/883499-need-to-calculate-the-average-for-a-column-based-on-values-in-two-other-columns.htmlhttp://www.excelforum.com/excel-formulas-and-functions/883499-need-to-calculate-the-average-for-a-column-based-on-values-in-two-other-columns.html

  • 8/18/2019 Excel Tricks Learned_20140101

    112/181

    Complicated &umber E(traction

    hen there are 1 igits& Nhe "ast 5 igits before the ash or en of the stringQ if no ash

    ABCD !" $J%&0120-200 Err&1%3ABCD1'&0 Err&1%3 ?/@;D I-IQABCD1'1&0-100 Err&1%3 /or thoseABCD !" 1'1&0 Err&1%3 it (ith a aABCD !" 1'0&0 Err&1%3 I =CDE/G

    an in 8&I =CD45P

    LE/N forthere are 2

    te*t)I =CDE/GI =CD45P

    by statingIP%42%IQI

    sing LE/N

    to numberP%42%Q42

    sing @S;ID45P%I

    Nhis (ou"N+ EQN+

    the oub"e4Q4Q4

    Nhe M NCUthe 4st one

    in the arra5Q2Q2 ch

  • 8/18/2019 Excel Tricks Learned_20140101

    113/181

    ) hen there are 3 or "ess igits& Nhe "ast 2 igits before the ash or en of the stringQ if n

    P I-I -4ith e*isting ashesQ the above formu"a (ou" return the "ength before the ash) /or thosesh behin so that there (ou" be no error) So itRs actua""y "ooking a ash for this in P&@JKP%42%-2%%-I

    -I

    u"a is then a e to obtain a"" the te*t before the ash) /@;D (ou" return the !osition ofashes because (e a e P I-IQ it returns everything before the 4st ash) n for the c

    @JKP%42%II

    n array constant of 1Q3Q5 Q you can actua""y e*tract 5 iTerent "engths of 1Q 3 5 using t%42%IQI42%I

    Q +@GUN or M@D automatica""y makes it a te*t even if you have a ce"" of !ure numbers) sin

    ) ;otice the absence of oub"e .uotes if you !ress /6 to ca"cu"ateQ42%

    M=E+ (i"" etermine if those resu"ts are in ee numbers) P has no !rob"emQ but e*tracti

    be resu"ting in a / LSE because itRs not a number) /or 8Q the resu"ts (ou" be&EQN+ Enegation then makes it&

    formu"a "ooks for 4 in the array above) Uence it returns 4 for P as it n s the 4st instancis % or / LSE)

    !ortion of the @;DEF formu"aQ something simi"ar is use ) =ut this timeQ instea of e*tractiracters instea ) So (e e*tract 5 chars before the ash if 1 characters before it are a"" nu

    /@;D I-IQ P I-I -4

    /N PQ/@;D I-IQ P I-I -4 Q 1Q3Q5

    E/N PQ/@;D I-IQ P I-I -4 Q 1Q3Q5

    E+ --+@GUN LE/N PQ/@;D I-IQ P I-I -4 Q 1Q3Q5

    Q--@S; M=E+ --+@GUN LE/N PQ/@;D I-IQ P I-I -4 Q 1Q3Q5Q%

    GUN LE/N PQ/@;D I-IQ P I-I -4 Q 5Q2Q2 QM NCU 4Q--@S; M=E+ --+@GUN LE/N PQ/@;D I-IQ

  • 8/18/2019 Excel Tricks Learned_20140101

    114/181

    o ash

    (ithoutQ the formu"a combines

    the 4st ashQ so in the case (herease of 8Q it returns the origina"

    e +@GUN formu"a) So the resu"ts are&

    the oub"e negation converts it back

    g 1 chars from the right of 8 (ou" be&

    of 4) for 8Q it (ou" return 2Q because

    g 1Q3Q5 charsQ (e e*tractbers) #ther(iseQ (e the "ast 2 chars)

    P I-I -4 Q 1Q3Q5 Q%

  • 8/18/2019 Excel Tricks Learned_20140101

    115/181

    =@. F u,ing multiple Criteria

    =um up i Column A eDual, - / A or -RA= / or PER@bo"ivia 4% 44!eru 2%s!ore 5%brasi" 42bo"ivia 4brasi" 5

  • 8/18/2019 Excel Tricks Learned_20140101

    116/181

    E(planation added> Lun 2%13

    by !utting the cur"y brackets (ith mu"ti!"e criteria thereQ you are actua""y oing!ress E;NE+ (ith thatQ it (i"" give you the S M@/ resu"t of the 4st criteriaO =o"ivito ca"cu"ateQ you (i"" see that 5 in ivi ua" S M@/ resu"ts a!!ear

    44Q41Q2%

    to a those resu"tsQ (e sim!"y nee to !"ace a S M @n front

    ?S M@/ 7 71&7 74%Q I=#L@V@ IQI=+ S@LIQI$E+ IQ7=71&7=74%

    ? S M S M@/ 7 71&7 74%Q I=#L@V@ IQI=+ S@LIQI$E+ I Q7=71&7=74%

  • 8/18/2019 Excel Tricks Learned_20140101

    117/181

    mu"ti!"e S M@/ for the iTerent criteria) @f you sim!"ya) @f you se"ect that !ortion of the formu"a !ress /6

  • 8/18/2019 Excel Tricks Learned_20140101

    118/181

    /ookup @n,orted /i,t 7 Return &e(t )ig+e,t alue

    Category Va"ue +esu"t Category Va"ue +esu"t= 6 4%% 2% 2%%

    20 42% = 45 41%21 2%%

    = 5 1%= 41 41%

    40 48%

  • 8/18/2019 Excel Tricks Learned_20140101

    119/181

    Category of Va"ue 2% is bet(een the "ist of Va"ue 40 21) Nhe formu"a (i"" !ick the biggCategory = of Va"ue 45 is bet(een the "ist of Va"ue 6 41) Nhe formu"a (i"" !ick the bigge

    E(planation added> Lun 2%13 ?7 71&7 74%?E1

    Nhis is the rst of our 2 "ogica" tests) e nee to n out if 1& 4% is e.ua"s to the categoto ca"cu"ate this !ortionQ youR"" get&

    / LSEON+ EON+ EO/ LSEO/ LSEON+ E#n"y the 2n Q 5r Pth one are Category

    ?7=71&7=74%H?/1#ur ne*t "ogica" test is to check if =1&=4% is greater or e.ua"s to the va"ue in /1) So the re

    / LSEON+ EON+ EO/ LSEO/ LSEO/ LSE

    "ogica" tests) So in our caseQ on"y the va"ues in =P =8 (i"" sho( u!) Nhe rest (i"" turn // LSEO20O21O/ LSEO/ LSEO/ LSE

    Nhis !art is our "ooku!,array !ortion for the M NCU formu"a)

    e can then use the same formu"a n the minimum of the above numbers using M@;)

    minimum number) that makes u! the "ooku!,va"ue for the M NCU formu"a) So (e are "ooki/ LSEO20O21O/ LSEO/ LSEO/ LSE

    =y using a M NCU formu"aQ (e can n the !osition of 21) since itRs the 5r va"ueQ it retur

    Combining (ith @;DEFQ (e are saying (e (ant the 5r va"ue from the M NCU formu"a (it

    ? @/7 71&7 74%?E1 Q@/7=71&7=74%H?/1 Q7=71&7=74%@f (e combine both the "ogica" tests (ith the @/Q it (i"" return the va"ues in =1&=4% on"y (he

    ? M@; @/ 7 71&7 74%?E1Q@/ 7=71&7=74%H?/1Q7=71&7=74%

    ? M NCU M@; @/ 7 71&7 74%?E1Q@/ 7=71&7=74%H?/1Q7=71&7=74% Q@/ 7 71&7 74%?E1Q@

    ? @;DEF 7C71&7C74%QM NCU M@; @/ 7 71&7 74%?E1Q@/ 7=71&7=74%H?/1Q7=71&7=74% Q

  • 8/18/2019 Excel Tricks Learned_20140101

    120/181

    r number bet(een the 2)number bet(een the 2)

    y (e (ant in E1) so if you !ress /6

    u"ts are&

    SE because it fai"s the "ogica" test's)

    et(een 20 21Q 21 (ou" be the

    ng for I21I insi e the array of

    s 5)

    hin C1&C4%)

    n it meets both the criteria of the

    / 7=71&7=74%H?/1Q7=71&7=74% Q%

    @/ 7 71&7 74%?E1Q@/ 7=71&7=74%H?/1Q7=71&7=74% Q%

  • 8/18/2019 Excel Tricks Learned_20140101

    121/181

    Ket Time 42&%% $M P&%% M 40&%%&%% ?=3- 3

    /irstQ you must un erstake a "ater time minusma""er ecima") =ut iare negative or too "ar

    Nhe M#D formu"a (or?M#D 45Q1

    @t returns you the rem?;umber - Divisor @

    so itRs&

    ?45-1 @;N 45'1@;N is taking Xust the i

    ?M#D =3- 3Q4@f you take a "ater tim

    sing M#D (ith a !osi?;umber - Divisor @

    ?%)21-4 @;N %)21'4+oun ing %)21 o(n t?%)21-4 %

    =ut if you take an ear"?-%)21-4 @;N -%)21'4

    Nhis timeQ roun ing o?-%)21-4 -4

    that returns a resu"t o

  • 8/18/2019 Excel Tricks Learned_20140101

    122/181

    un 2%13

    tan Nimes are recognise as ecima"s in E*ce") 42 !m for egQ is %)1 if you foran ear"ier timeQ E*ce" has no !rob"ems oing that) ou can try !"ain"y using =

    f you co!y that o(n use =1- 1Q E*ce" oes not acce!t that in Nime format) @t sge is!"ay as 999999)I) Nhat is because this timeQ you are taking a sma""er

    s "ike thisO (e have a number a ivisor) @tRs much straightfor(ar if they are

    in er after 45 number is ivi e by 1 ivisor ) Nhe remaining number that c N ;umber'Divisor

    teger of the number (e in!ut) 45 ivi e by 1 is 2)P) So it takes the interger

    minus an ear"ier timeQ it (i"" retain the iTerence of the !ositive ecima" numbtive ecima" number (i"" return the same va"ue) ou can try ca"cu"ating by usin N ;umber'Divisor

    the nearest integer is %) Uence&

    er time minus a "ater timeQ it (i"" be a negative ecima" number) Nhe eg in C1 i

    (n a negative %)21 is -4) Nherefore&

    %)81) Convert that to time that gives us 40 hours)

  • 8/18/2019 Excel Tricks Learned_20140101

    123/181

    at the ce""s as Genera"Q because itRs ha"f a ay) So if you- 3) Nhat is e.uiva"ent to a bigger ecima" minus a

    ho(s a bunch of 9s te""s you IDates an times that cima" P am minus a bigger ecima" 42 !m )

    integers) Say (e have this be"o(

    nnot be ivi e by 1 is 5) @t is essentia""y using&

    ) so itRs 45-1 2

    er) So this is actua""y %)1 minus %)21g (hat @ sho(e ear"ier&

    s oing so by taking %)21 minus %)1Q returning -%)21

  • 8/18/2019 Excel Tricks Learned_20140101

    124/181

    &onNbreaking ,pace

    Char 4P% non-breaking s!ace

    SometimesQ your ce""s has s!aces that you cannot seem to use N+@M to remove) Nhis migh

  • 8/18/2019 Excel Tricks Learned_20140101

    125/181

    t be the non-breaking s!aces) /or eg&

    king s!ace) Co!y a sing"e character of it !ress ESCnothing)

  • 8/18/2019 Excel Tricks Learned_20140101

    126/181

    C+ange ,ingle digit, to Lun 2%13-4-4 -4-4 ?C# ;N@/ 3QI ->- I-2-4 -2-4

    bet(eenQ fo""o(e by another as

    that)

    4st)

  • 8/18/2019 Excel Tricks Learned_20140101

    127/181

    hQ in bet(een any characters the asterisk )

    !ortion contains 4 or 2 igits) sing the asterisk is for (i" car sO n ing any ng"e character) So by using I ->- IQ (e are n ing anything that has a ashQ a si

    3QI ->- I QI-%IQI-I Q4the mi "e !ortion contains on"y 4 igitQ (e (ant to substitute the I-I (ith I-%I)re no such instances are foun 2 igits in the mi "e Q (e sim!"y substitute the"y (ant to substitute the rst ash not touch the rest)

    concentrating Xust on the "ast !ortion) @t is "ooking for a ash en ing (ith a s

    Q@/ C# ;N@/ 3QI ->- I QI-%IQI-I Q4QI-IQ@/C# ;N@/ 3QI ->I QI-%IQI-I Q2ute te*t (ith 2 igits in bet(een Q (e again substitute the I-I (ith a I-%I if thhe "ast !ortion has 2 igits) #ur instance,num is no( 2 because (e on"y (ant

  • 8/18/2019 Excel Tricks Learned_20140101

    128/181

    mber of characters) sing a .uestion mark ng"e character the .uestion mark in

    Nhat makes a"" sing"e igits contain a I-I (ith a I-I i)e) no changes ) Nhe

    ing"e character after any characters before

    "ast !ortion is a sing"e igit) Simi"ar"yQo change the 2n ash not touch the

  • 8/18/2019 Excel Tricks Learned_20140101

    129/181

    &umber o a Particular

  • 8/18/2019 Excel Tricks Learned_20140101

    130/181

    E(planation added> Lul 2%13

    Solution( !a y )oudini

    htt!&''((()youtube)com'(atch>v?!6 #" LPF8

    htt!&''((()mre*ce")com'forum'e*ce"-.uestions'132%56-(hat-formu"a- oing)htm"

    http://www.youtube.com/watch?v=p9YOlYL6X7Ahttp://www.mrexcel.com/forum/excel-questions/542039-what-formula-doing.htmlhttp://www.mrexcel.com/forum/excel-questions/542039-what-formula-doing.htmlhttp://www.youtube.com/watch?v=p9YOlYL6X7A

  • 8/18/2019 Excel Tricks Learned_20140101

    131/181

    &umber o Morkda*, 9.onN=at:

    !a y )oudini Excel *+,+ E*!"anation in&4-Jan-45 28-Jan-45 25 9; ME> I%%%%%%4I - starts from MonO

  • 8/18/2019 Excel Tricks Learned_20140101

    132/181

    % means to inc"u e (hi"e 4 is to e*c"u e) @n this caseQ on"y e*c"u e Sun))mre*ce")com'forum'e*ce"-.uestions'132%56-(hat-formu"a- oing)htm"

    http://www.mrexcel.com/forum/excel-questions/542039-what-formula-doing.htmlhttp://www.mrexcel.com/forum/excel-questions/542039-what-formula-doing.html

  • 8/18/2019 Excel Tricks Learned_20140101

    133/181

    /i,t item, t+at meet criteria 9Aggregate:

  • 8/18/2019 Excel Tricks Learned_20140101

    134/181

    My Method -/on0$ ay. Teethless Ma1a -$gg egate only in *+,1-/eb-45 Miche""e5-Mar-45 Jack

    5%- !r-45 Mike5%- !r-45 Doran

    41-May-45 nthony

  • 8/18/2019 Excel Tricks Learned_20140101

    135/181

    .

  • 8/18/2019 Excel Tricks Learned_20140101

    136/181

    Con ert raction, to decimal,

    daddylonglegs41'2 8)1 E*ce" recognises integer fraction format "ike

  • 8/18/2019 Excel Tricks Learned_20140101

    137/181

    4'2 (i"" be 4)1

  • 8/18/2019 Excel Tricks Learned_20140101

    138/181

    Rounddo'n time to t+e +our 'it+ 4 digit,

    Mine Teethless 1a1a E(planation added>42&2% M %%%% %%%%

    4&1% M %4%% %4%%

  • 8/18/2019 Excel Tricks Learned_20140101

    139/181

    Lul 2%13

  • 8/18/2019 Excel Tricks Learned_20140101

    140/181

    Rank &ame according to alue, in de,cending order

    E! S @L DK Me* Excelisfun5 1 44 1 6

    @L Me* S DK E!

  • 8/18/2019 Excel Tricks Learned_20140101

    141/181

    m'(atch>v?=BLP0b@M8 % "ist?$LC5D1DEE%012CD=62

    http://www.youtube.com/watch?v=BzL68bIM7U0&list=PLC3D5DEE0852CDB92http://www.youtube.com/watch?v=BzL68bIM7U0&list=PLC3D5DEE0852CDB92

  • 8/18/2019 Excel Tricks Learned_20140101

    142/181

    Ket @niDue /i,t rom .ultiple Column,

  • 8/18/2019 Excel Tricks Learned_20140101

    143/181

    P.$roXect C

    Su!!ortSu!!ort$roXect =$roXect =

    ni.ue-va"ues-from-mu"ti!"e-co"umns-using-array-formu"as'

    http://www.get-digital-help.com/2009/03/16/unique-values-from-multiple-columns-using-array-formulas/http://www.get-digital-help.com/2009/03/16/unique-values-from-multiple-columns-using-array-formulas/

  • 8/18/2019 Excel Tricks Learned_20140101

    144/181

    =um up 'it+ condition,; ,top '+en Amt e(ceed, %%

    =um up Amt, t+at i, T "3" 7 be ore 31

  • 8/18/2019 Excel Tricks Learned_20140101

    145/181

    d, %%)aseeb $ E(planation added> Lul 2%13

    9V L E:

    i till 109.31 e au e r/ i n/t meet t e riteria. Itre ult a u '

    109.31 109.31 254.31 494.31 590.31 66 . 1 66 . 17

    A t e num er are in an a en ing /r er, e an u e t

    590.31.

    ( >>S)?&@6,,,R &@6'@12*-R &@6*B1*

    >/r t e eig t, R &@6'@12* ill return'6 8 9 10 11 127

    0 1 2 3 4 5 67a tlC, u t a B1 t/ maEe it'1 2 3 4 5 6 7

    ? e /n ept i t e ame =/r t e /t er 2 part '

    at t e =/rmula /e ere i reate manC S;$I>S reum up @6 i= A6 i F?66 3 58F )6 i le t an 31 DeC 1 r/ um up @6 '@ i= A6'A i F?66 3 58F )6' )

    en it =ail t/ =in an eGa t mat , it ill return t e la t

    ? i i / t/ maEe multiple in remental r/ =/r t e i=

    e nee it t/ return 1 t/ =/r it t/ e /me @6'@6, @6'@

    >>S)?& A6,,,R &A6' A12*-R & A6*B1*>>S)?& ) 6,,,R & ) 6')12*-R & ) 6*B1*

  • 8/18/2019 Excel Tricks Learned_20140101

    146/181

    /ntinue until r/ 12 t u gi e

    e :;< =/rmula t/ ear a alue /= 600.

    ult t at a an in remental r/ . S/ it =ir t 2012. Re ult /ul e 109.31. It t en in rea ei le t an 31 De 2012. Re ult =/r t i

    alue maller t an 600. An t at /ul e

    =erent re ult . >>S)? ill tart at @6.

    , an / /n. H/u an t en -R &@6*'

  • 8/18/2019 Excel Tricks Learned_20140101

    147/181

    C+eck i Range o

  • 8/18/2019 Excel Tricks Learned_20140101

    148/181

    Ket li,t o +ig+e,t total cumulati e alue,

    id alue < Total by 5on 6ode e explained1 4%% 3 2%% The !, .2 421 9;' 40% reference' 6% 1 41% generate 06 2%% 2 421 The !, .) 41% P 42% A_Item F& 42% 1' 6% 2

    3

    4

    5

    6

    3

    !la "

    Basically< th

    This art cal$ND =>I.?$

    This art ret@A," >$ND

  • 8/18/2019 Excel Tricks Learned_20140101

    149/181

    too7 by 5on 6ode e -with so1e editing to change cell efe ences.NC unction al ays tac s on an a33itional calculate3 4alue or items that are greater than the ma5va"ue or that are "ess than the minimum reference va"ue) SoQ (hi"e /+E\ E;C referencva"ues) Conse.uent"yQ @ nee e to e*ten the other references by 4 ce"" 1& 42 )NC section resol4es to this7 81 1 2 1 1 1 0 0:;;;* 4alues arrange3 this ay7

    eq_Calc

    1

    1

    2

    1

    1

    1

    0

  • 8/18/2019 Excel Tricks Learned_20140101

    150/181

    s 1& 44 8 ce""s Q it (i""

    $tem

  • 8/18/2019 Excel Tricks Learned_20140101

    151/181

    / @P back'ard,solution by abousetta

    Amount /i,ted Compan* Compan* Amount @Wm sure yo2%Q%%% es = 45%%% =ut (hat if45Q%%% es =40Q%%% ;o C Nhe usua"

    other (ay iCU##SE)?CU##SE

    sim!"e s(i"" !ick u!

    n if @ (e

    @ can a"soso "etWs a?S M CU

    So if (e goforcing (h$retty bri""i

  • 8/18/2019 Excel Tricks Learned_20140101

    152/181

    uWve been to" the "ooku!,va"ue in the VL##K $ formu"a must a"(ays be on the "eft thethe Com!any is on the right si e of $ro ts>

    orkaroun is to insert a co"umn before co!y the Com!any co"umn over) Nhen you cans to "earn the seeming"y more com!"e* @;DEF M NCU) UereWs a 5r o!tion by Xust "earniereWs (hat you nee to in!ut for the formu"a&in e*,numQ va"ue4Q Yva"ue2ZQ ]

    enario (ou" be to return 1 or P) Nhe in e*,num eci es (hich va"ue (ou" be !icke1O because thatWs the va"ue4 @ in!ut)

    e to !ut in 2 as the in e*,numQ it (i"" !ick u! P)

    ick u! both of the numbers by a ing the cur"y brackets here) =ut !icking u! 2 numbers ia S M to it) @t (i"" therefore !ick u! 1 ;D P to sum them u!)#SE 4Q2 Q 1Q P

    back to our VL##K $ case !ut in the co"umn for us to "ook u! as va"ue4Q an the resu"ttever co"umn that is on the rightQ to the "eft)nt eh> @ (ou" sti"" stick to @;DEF M NCUQ but @ thought this (as !retty interesting)

    4 Q 1Q P

    2 Q 1Q P

  • 8/18/2019 Excel Tricks Learned_20140101

    153/181

    ata you re.uire on the right)

    o the usua" VL##K $) Nheg a sim!"e formu"a ca""e

    !) So if my in e*,num is 4Q it

    a ce"" onWt make sense to E*ce"Q

    o"umn as va"ue2Q (e are actua""y

  • 8/18/2019 Excel Tricks Learned_20140101

    154/181

    n,erting =omet+ing n T+e .iddle Te(t

    n,erting A =emicolon A ter t+e comma 7 2 letter,BFII$ , C$T < @AA,CAD$A< @ABFII$ , C$T < @AC, G @A% < @A

    BFII$ , C$T < @AC.@@ N< @AB,ANDFN< ?IJAC%IFN< ?IB,ANDFN< ?IL$C%IB.,"< ?IB,FF% @AND< T=I , L PF,T< @A

    B,FF%I $, < T=!@ATFN$A< T=

  • 8/18/2019 Excel Tricks Learned_20140101

    155/181

    solution by /!V6=#SS@E+ C@N Q L O +C D@ Q L=#SS@E+ C@N Q L OC+E L KEQ L=#SS@E+ C@N Q L OC LLE;Q L=+ ;D#;Q MSOJ CKS#;Q MS=+ ;D#;Q MSOV@CKS= +GQ MS=+##KEL ;DQ NFOSU+EVE$#+NQ L=+##KSU@+EQ NFO/L N#;@ Q NF

  • 8/18/2019 Excel Tricks Learned_20140101

    156/181

    Find Po,ition o 1,t @pper Ca,e

    Solution found by( lit aine b c 2

    8&) && &(

    8 A B C

    I.BIT$T.Tso i A1 con8 1bMc 1b

    this ma es8 1bMc0 1

    so i you in8) ) ) ) )

    an3 the ?$N

  • 8/18/2019 Excel Tricks Learned_20140101

    157/181

    * &9 (0 (1 (2 (' (6 () (& (( (* (9 *0 *1 *2 *' *6 *) *& *( ** *9 90:

    D ! " $ J % @ ? N F P , I T . L G = M

    >A1,FG>&)790

  • 8/18/2019 Excel Tricks Learned_20140101

    158/181

    c 1bMc 1bMc 1bMc 1bMc 1bMc 1bMc 1bMc 1bMc 1bMc 1bMc 1b0c :

    c0 1bMc0 1bMc0 1bMc0 1bMc0 1bMc0 1bMc0 1bMc0 1bMc0 1bMc0 1bMc0 1bMc

    e 4alues rom &) to 907

    snt in3 any< goes to B < then C < so on until the last entry; it substitutes M ith a 0 becom

  • 8/18/2019 Excel Tricks Learned_20140101

    159/181

    0 1bMc0 1b0c0 :

    es 1b0c ; but !$ND has a roblem< because the rest o the results 3o not ha4e 0 ill return #L

  • 8/18/2019 Excel Tricks Learned_20140101

    160/181

    A@. error; so to counter that< the &0 is a33e3;

  • 8/18/2019 Excel Tricks Learned_20140101

    161/181

    Find number 7 e(tract t+e re,t rom t+ere

    abc 4) *yB ?/@;D %Q4Q2Q5Q3Q1QPQso!!!!!2c Nhe 4% numbers that

    9V L E:Q1Q9V L E:Qit tries to n I%IQ cou"

    =ut if (e (ere to com44Q1Q45Q43Q41Q4PQ48Q

    Since (e !ut the 4% n

    #nce (e kno( the stasafe bet (ou" be to !

  • 8/18/2019 Excel Tricks Learned_20140101

    162/181

    8Q0Q6 Q 3*ist are % to 6) if (e (ere to n % to 6 in 3Q it (i"" have a bunch of errors because 4 is thV L E:Q9V L E:Q9V L E:Q9V L E:Q9V L E:Q9V L E:Q9V L E:nRt n it thus returns V L E) @t then n s I4I in the 1th !osition) Nhe rest a"so cou" nW

    ine I%42531P806I to 3Q every sing"e number can be foun )40Q46Q2%

    mbers behin Q the origina" number e*isting in 3 (ou" in the sma""est number foun abo

    ting !osition to e*tract the te*tQ (e can use M@D the number of characters to e*tract areut the LE; formu"a to count the number of characters in 3

    8Q0Q6 Q 3I%42531P806I

    Q1QPQ8Q0Q6 Q 3 I%42531P806I

    Q4Q2Q5Q3Q1QPQ8Q0Q6 Q 3 I%42531P806IQLE; 3

  • 8/18/2019 Excel Tricks Learned_20140101

    163/181

    e on"y number that can be foun there)

    t be foun returne V L E)

    e the 1th character

    everything from the number on(ar s)

  • 8/18/2019 Excel Tricks Learned_20140101

    164/181

    /ookup alue J Table Arra* in 2 diQerent Column,JRange

    /ookup alue can be in column K or )5 Table arra* can be in A >- or< >E 5aaa 4a 3 eeebbb 2b eee 1e BBBccc 5c Tf Pf ccc

  • 8/18/2019 Excel Tricks Learned_20140101

    165/181

    E(planation added> =ep 2%13

    by 8onkey9te Nhis (as the origina" "ink share (ith me by $ike) Donke9;' va"ues) @ ma e some changes here to refer to iTerent r9;'9;'

    Since the "ooku!,va"ue for the VL##K $ formu"a can eitthe 2 ce""s together) @t is Xust a sim!"e VL##K $ to searreturn the corres!on ing ro( in =P&=0) IeeeI oes not e

    nother VL##K $ formu"a is oneQ but no( to search inun er ce"" E8)

    @nstea of using a "ong @/ @S; formu"aQ (e can use thformu"a to !ick the "ast non-error resu"t) sim!"e CU##?CU##SE 4QEPQE8QE0e have 5 va"ues aboveO EPQ E8 E0) ith the in e*,n?CU##SE 2QEPQE8QE0

    @t (i"" then !ick the 2n va"ueO I1eI) =ut if you !ut in arr?CU##SE 4Q2Q5 QEPQE8QE0

    Nhis actua""y sho(s a"" 5 va"ues) ou canRt see it by !res/2 on the ce"" (ith this formu"a !ress /6 to ca"cu"ate)? I3 IQI1eIQIPfI

    n that is ho( (e are going to store the 2 VL##K $ for Nhis comes in han y (hen the 2 VL##K $ formu"as canin ce"" @8Q (here IBBBI cannot be foun in P& 0 or D8&D

    IIQ9;' QI1eIIIQ9;' Q9;'IIQI5cIQ9;'

    =y using a "ooku!,va"ue of 211 AsQ it (i"" ensure (e are "formu"a ignores errorsQ so from the 5 resu"ts aboveQ it (i"as te*t thatRs (hy b"ank (as returne for ce"" @8 (hen

    htt!&''((()e*ce"forum)com'e*ce"-genera"'P664P0-neste

    ?VL##K $ GP UP Q7 7P&7=70Q2Q%

    ?VL##K $ GP UPQ 7D7P&7E70 Q2Q%

    ? CU##SE 4Q2Q5 QIIQVL##K $ GP UPQ7 7P&7=70Q2Q% Q

    ? L##K $ +E$N IAIQ211 QCU##SE 4Q2Q5 QIIQVL##K $

    http://www.excelforum.com/excel-general/699168-nested-vlook-and-match-functions.htmlhttp://www.excelforum.com/excel-general/699168-nested-vlook-and-match-functions.html

  • 8/18/2019 Excel Tricks Learned_20140101

    166/181

    y#te (as "ooking at iTerent sheets to !ick u! the anges un er the same sheet instea )

    er be in Co"umn G or Co"umn UQ (e can combineh in P&=0 if IeeeI is in P& 0Q an if it isQ*ist in P&=0Q so it returns an 9;' here)

    DP&E0) IeeeI is foun this time (ou" return I1eI

    CU##SE formu"a to !resent the 2 resu"ts L##K $SE formu"a (orks "ike this&

    m as I4IQ it (i"" return the 4st va"ueO I3 I) @f you !ut it as&

    ay constants the cur"y brackets to sho( va"ues 4 to 5&

    ing E;NE+ because 4 ce"" canRt sho( the 5 resu"ts) $ress ou shou" see&

    mu"as) e are a"so a ing a b"ank here as the 4st va"ue) ot n the "ooku!,va"ue both returns 9;' ) @t ha!!ens

    ) Nhese are the fo""o(ing resu"ts for @P&@0 res!ective"y&

    ooking for the "ast !ossib"e te*t that e*ist) Nhe L##K $" return the "ast te*t avai"ab"e b"anks a"so consi erehere are 2 9;' s )

    -v"ook-an -match-functions)htm"

    VL##K $ GP UPQ7D7P&7E70Q2Q%

    P UPQ7 7P&7=70Q2Q% QVL##K $ GP UPQ7D7P&7E70Q2Q%

    http://www.excelforum.com/excel-general/699168-nested-vlook-and-match-functions.htmlhttp://www.excelforum.com/excel-general/699168-nested-vlook-and-match-functions.html

  • 8/18/2019 Excel Tricks Learned_20140101

    167/181

    ariable Co,t or

  • 8/18/2019 Excel Tricks Learned_20140101

    168/181

    /ink or t+e e(planation o logic ,+ared b*> Ton* alkohtt!&''mcgim!sey)com'e*ce"'variab"erate)htm"

    http://mcgimpsey.com/excel/variablerate.htmlhttp://mcgimpsey.com/excel/variablerate.html

  • 8/18/2019 Excel Tricks Learned_20140101

    169/181

    &o o

  • 8/18/2019 Excel Tricks Learned_20140101

    170/181

    0-Se!-%1 2%40-May-%P 26

    4-#ct-%0 282P- ug-%6 4521-Mar-42 4044-Se!-42 62%-Se!-%6 40

  • 8/18/2019 Excel Tricks Learned_20140101

    171/181

    =orting &umber,JTe(t Mit+out -lank,

    Ne*t ;umbers Source&#range 22

    !!"e 444!!"e

    Mango Gra!es444 Mango

    Gra!es #range22 9V L E:

    Ne*t or ;umbers #n"y#range !!"e

    !!"e Gra!esMango

    Mango #rangeGra!es 9V L E:

  • 8/18/2019 Excel Tricks Learned_20140101

    172/181

    he"!)com'2%%6)))mu"a-in-e*ce"'

    http://www.get-digital-help.com/2009/06/06/sorting-numbers-and-text-cells-also-removing-blanks-using-array-formula-in-excel/http://www.get-digital-help.com/2009/06/06/sorting-numbers-and-text-cells-also-removing-blanks-using-array-formula-in-excel/

  • 8/18/2019 Excel Tricks Learned_20140101

    173/181

    =um @p &umber, =eparated b* &o 2%13 NonyRs /ormu"a ?I-I GP4 character after the I-I is (here the numbers to a u! are) see rst ashQ a 55)

    rst a s a I-I to GP so that a"" are e.ua")

    ?C#L M; 4&4

    C#L M; 4 returns 4) thatRs the co"umn number of 4) C#L M; =4 returns 2) if y4Q2Q5

    C#L M; 4&4 (i"" therefore return 4 to 4PQ503 if you are using *"s* e*tension u! to C

    this !art is to break u! a"" the characters into !arts of 4 each) so since (e combineI-22-55-53-51-5PIan in hereQ itRs sayingQ from that te*t aboveQ start from the 4st character using C#Lunti" 4PQ503 characters) the resu"ts are something "ike&

    I-IQI2IQI2IQI-IQI5IQI5IQI-IQI5IQI3IQI-IQI5IQI1IQI-IQI5IQIPIQIIQIIQIIQ))))))))))

    this is to check if the e*traction is a I-I) so on"y if it is a I-IQ the formu"a (i"" o a M@DN+ EQ/ LSEQ/ LSEQN+ EQ/ LSEQ/ LSEQN+ EQ/ LSEQ/ LSEQN+ EQ/ LSEQ/ LSEQN+ EQ/

    ?/@;D I-IQGP I-IQC#L M; 4&4 -C#L M; 4&4

    I22-55-53-51-5P-Ithe start,num of /@;D is a"so use using C#L M; 4&4 ) 4 is sim!"y to start n ing I-Ithe formu"aQ it minus 4 character for the 4st e*traction using C#L M; 4&4 ) so 5-4 is

    a"(ays 2 characters for this case) it (i"" rough"y "ook "ike&2Q4Q%Q2Q4Q%Q2Q4Q%Q2Q4Q%Q2Q4Q%Q9V L E:Q9V L E:Q))))))V L E error is ue to I-I not being foun any more after 41 characters)

    the rst e*traction (ou" be from the te*t in GPQ start from the 4st character using Cthe 3th e*traction (ou" again be from te*t in GPQ starting from 3th character sincein summary&

    I22IQI2IQIIQI55IQI5IQIIQI53IQI3IQIIQI51IQI1IQIIQI5PIQIPIQIIQ9V L E:Q9V L E:Q9V L E:

  • 8/18/2019 Excel Tricks Learned_20140101

    174/181

    2 things hereO these numbers are actua""y te*ts (ith the oub"e .uotes) hence (e ca

    a ing the oub"e negatives (i"" make a"" the te*ts insi e the brackets numbersQ if the*!"ain this

    using the "ogica" test (e i in the inita" stageQ (e can e*tract those numbers #;L @

    ? -- % M@D GPQC#L M; 4&4 Q/@;D I-IQGP I-IQC#L M; 4&4 -C#L M; 4&4

    ? S M @/M@D I-I GPQC#L M; 4&4 Q4 ?I-IQ-- % M@D GPQC#L M; 4&4 Q/@;D I-IQGP I-

  • 8/18/2019 Excel Tricks Learned_20140101

    175/181

    E*ce" 2%4% kati i solution by %95 2%

    9; ME> ?EV L NE S =SN@N NE R13R:7 1QI-IQI I9; ME>9; ME>

    see secon ashQ a 53Q so on) but the rst number is misse out because there is no

    u use C#L M; 4&C4 Q it returns a"" the co"umn numbers in that range "ike this&

    o"umn F/D

    I-I (ith GPQ (e are "ooking at this te*t be"o(&

    M; Q an 4 character "ong) but since C#L M; (as use Q it continues to e*tract form the 2

    formu"a e*traction in the ne*t !art) it (i"" become N+ Es / LSEs&LSEQ/ LSEQ)))))))))))))))

    in the 4st character) that (i"" return 5) if i (ere to start n ing in the 3th characterQ the n2) P (ou" be e ucting 3Q because (eRre oing the (hen (e start n ing in the 3th chara

    #L M; again ) an the number of characters 2 since /@;D returns that) that gives us 22#L M; (i"" give 3 a "ength of 2 characters againQ obtaine by /@;D) that gives us 55 t

  • 8/18/2019 Excel Tricks Learned_20140101

    176/181

    nRt a them u!) a"soQ notice that (e onRt (ant some of those numbersQ name"y the 2n Q

    ey are in ee are numbers) the % is to a a % in front of those numbers) not sure (hy i

    the sing"e character (e e*tracte are the I-I)QC#L M; 4&4 -C#L M; 4&4

  • 8/18/2019 Excel Tricks Learned_20140101

    177/181

    ash in front of 22) henceQ the formu"a

    n characterQ 5r character so on

    *t I-I is in character P) at the en of cterQ C#L M; (ou" become 3) so itRs

    the 4st number (e (ant to a )he 2n number (e (ant to a )

  • 8/18/2019 Excel Tricks Learned_20140101

    178/181

    5r Q 1thQ PthQ etc numbers)

    that necessary) maybe Nony can

  • 8/18/2019 Excel Tricks Learned_20140101

    179/181

    /ookup 7 Return Picture

    My vatar My vatar

    E*ce"2%45

    Su!er E*ce"E(planation added> &o 2%134) Do u! an @;DEF M NCU formu"a to return the !ictures in /3&/P base on ?@;DEF 7/73&7/78QM NCU 7 73Q7E73&7E7PQ%

    2) Make sure every ce"" reference is *e because (e are going to !"ace it in th

    5) C"ick on ;e( !ut in a name for it) @Rm going to name it $icF in I+efers t

    3) @n E*ce" 2%%8Q go to @nsert tab -H #bXect -H =itma! @mage) C"ose the $aint@n other versionsQ co!y any !icture from /3&/P !aste it in =3

    1) C"ick on the !icture in =3 in the formu"a bar on to!Q ty!e in e.ua"s the ;?$icF

    C"ick E;NE+

    metho that (i"" (ork for a"" versions is to use the Camera Noo" for Ste! 3)

  • 8/18/2019 Excel Tricks Learned_20140101

    180/181

    Source&Rs va"ue) E*ce" 2%4%

    e ;ame +ange) $ress CN+L /5 E*ce" 2%%8

    IQ !ut in the @;DEF M NCU formu"a

    in o()

    ame +ange you gave)

    ou nee to enab"e that in your \uick ccess Noo"bar) the !ic in =1 is from Camera Noo"

    htt!&''((()youtube)com'(atch>v

    htt!&''((()youtube)com'(atch>v

    http://www.youtube.com/watch?v=CEM0pp5SjMUhttp://www.youtube.com/watch?v=W_GBoDkb2pIhttp://www.youtube.com/watch?v=W_GBoDkb2pIhttp://www.youtube.com/watch?v=CEM0pp5SjMU

  • 8/18/2019 Excel Tricks Learned_20140101

    181/181