what-the-if

6
1. Sum Alternative Rows / Columns # Data value 1 67 1 Alt. Row Sum 1: 640 2 77 0 Alt. Row Sum 2: 680 3 69 1 4 57 0 5 82 1 6 86 0 7 34 1 8 40 0 9 90 1 10 77 0 11 55 1 12 98 0 13 68 1 14 34 0 15 25 1 16 99 0 17 55 1 18 47 0 19 95 1 20 65 0 2. Count How Many Times Each Item on List A is Repeated in List B List A List B Cities # of Cust. Customer City New York 2 Gill Bates Columbus California 1 Beorge Gush Boston Columbus 3 Yerry Jang Boston Boston 3 Parry Lage New Delhi New Delhi 1 Barren Wuffet New York Mumbai 2 Amil Anbani Mumbai Chicago 3 Tatan Rata Washington Washington 1 Random Person 1 Columbus Another guy Columbus Bridget Jones Boston Pointy Haired D Mumbai Random Person 2 California Hollow Man Chicago Another Girl Chicago Cill Blinton Chicago Random Person 3 New York What the if() - 6 different things you can do Created by http://chandoo.org/wp - Point Haired Dilbert - Feel free to share / e

Upload: sivavilma

Post on 25-Nov-2015

4 views

Category:

Documents


0 download

DESCRIPTION

Excel what-the-if

TRANSCRIPT

What the if()

Sheet1What the if() - 6 different things you can do with excel if() functionsCreated by http://chandoo.org/wp - Point Haired Dilbert - Feel free to share / extend / mail / save / modify as you like1. Sum Alternative Rows / Columns#Data value1671Alt. Row Sum 1:6402770Alt. Row Sum 2:680369145705821686073418400990110770115511298013681143401525116990175511847019951206502. Count How Many Times Each Item on List A is Repeated in List BList AList BCities# of Cust.CustomerCityNew York2Gill BatesColumbusCalifornia1Beorge GushBostonColumbus3Yerry JangBostonBoston3Parry LageNew DelhiNew Delhi1Barren WuffetNew YorkMumbai2Amil AnbaniMumbaiChicago3Tatan RataWashingtonWashington1Random Person 1ColumbusAnother guyColumbusBridget JonesBostonPointy Haired DilbertMumbaiRandom Person 2CaliforniaHollow ManChicagoAnother GirlChicagoCill BlintonChicagoRandom Person 3New York3. Summarize Data with Countif and sumifSummaryRevenue Data per CustomerCityTotal Cust.Total SalesAvg. Sales per Cust.CustomerCitySalesNew York2$2,206 M$1,103 MGill BatesColumbus$918 MCalifornia1$38 M$38 MBeorge GushBoston$1,426 MColumbus3$4,047 M$1,349 MYerry JangBoston$235 MBoston3$1,936 M$645 MParry LageNew Delhi$1,950 MNew Delhi1$1,950 M$1,950 MBarren WuffetNew York$343 MMumbai2$2,223 M$1,111 MAmil AnbaniMumbai$1,893 MChicago3$5,091 M$1,697 MTatan RataWashington$1,207 MWashington1$1,207 M$1,207 MRandom Person 1Columbus$656 MAnother guyColumbus$2,474 MBridget JonesBoston$274 MPointy Haired DilbertMumbai$330 MRandom Person 2California$38 MHollow ManChicago$1,904 MAnother GirlChicago$624 MCill BlintonChicago$2,563 MRandom Person 3New York$1,863 M4. Lookup 2nd / 3rd / 4th occurrence of an item in a listLookupMaster DataCustomerSmithCustomerCUSTPhone numberPhone numberSmithSmith13209664023--1st3209664023--SmithSmith26866127782--2nd6866127782--JasonJason11226177154--3rd1327165240--AlbertAlbert15474367376--4th1858138883--NancyNancy19566337322--SmithSmith31327165240--GroveGrove13402670529--AndyAndy15314134718--JasonJason26132284294--NancyNancy22725252042--NaancieNaancie14741631656--SmithSmith41858138883--AndyAndy25917973970--LarryLarry13103482518--PagePage11315515332--LarryLarry22974875253--Onemore PageOnemore Page14313840125--LarryLarry37711332877--SmithSmith53040244046--5. Avoid nested if()s; Use choose() insteadStudentLetter GradeRemarksAyanBGoodBarryBGoodCharlesEFailedDanBGoodEmmaDPoorFletcherDPoorGaryCAcceptableHarrisCAcceptableIndyAExcellentJonesDPoorKamaliniAExcellentLarryBGoodMunroeDPoor6. Your favorite if() hackPost your favorite hack in the comments section, show off to our readers what a data junkie you arehttp://chandoo.org/wp

http://chandoo.org/wpCreated by http://chandoo.org/wp - Point Haired Dilbert - Feel free to share / extend / mail / save / modify as you like

Sheet2

Sheet3