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: mssarwar9

Post on 12-Dec-2015

212 views

Category:

Documents


0 download

DESCRIPTION

what-the-if Excel template

TRANSCRIPT

Page 1: what-the-if

1. Sum Alternative Rows / Columns

# Data value1 67 1 Alt. Row Sum 1: 6402 77 0 Alt. Row Sum 2: 6803 69 14 57 05 82 16 86 07 34 18 40 09 90 1

10 77 011 55 112 98 013 68 114 34 015 25 116 99 017 55 118 47 019 95 120 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 CityNew York 2 Gill Bates ColumbusCalifornia 1 Beorge Gush BostonColumbus 3 Yerry Jang BostonBoston 3 Parry Lage New DelhiNew Delhi 1 Barren Wuffet New YorkMumbai 2 Amil Anbani MumbaiChicago 3 Tatan Rata WashingtonWashington 1 Random Person Columbus

Another guy ColumbusBridget Jones BostonPointy Haired DiMumbaiRandom Person CaliforniaHollow Man ChicagoAnother Girl ChicagoCill Blinton ChicagoRandom Person New York

What 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 like

Page 2: what-the-if

3. Summarize Data with Countif and sumif

Summary

City Total Cust. Total SalesNew York 2 $2,206 M $1,103 MCalifornia 1 $38 M $38 MColumbus 3 $4,047 M $1,349 MBoston 3 $1,936 M $645 MNew Delhi 1 $1,950 M $1,950 MMumbai 2 $2,223 M $1,111 MChicago 3 $5,091 M $1,697 MWashington 1 $1,207 M $1,207 M

4. Lookup 2nd / 3rd / 4th occurrence of an item in a list

Lookup Master DataCustomer Smith Customer CUSTPhone number Smith Smith11st 320-966-4023 Smith Smith22nd 686-612-7782 Jason Jason13rd 132-716-5240 Albert Albert14th 185-813-8883 Nancy Nancy1

Smith Smith3Grove Grove1Andy Andy1Jason Jason2Nancy Nancy2Naancie Naancie1Smith Smith4Andy Andy2Larry Larry1Page Page1Larry Larry2Onemore Page Onemore Page1Larry Larry3Smith Smith5

5. Avoid nested if()s; Use choose() instead

Avg. Sales per Cust.

Page 3: what-the-if

Student Letter Grade RemarksAyan B GoodBarry B GoodCharles E FailedDan B GoodEmma D PoorFletcher D PoorGary C AcceptableHarris C AcceptableIndy A ExcellentJones D PoorKamalini A ExcellentLarry B GoodMunroe D Poor

6. Your favorite if() hack…

Post your favorite hack in the comments section, show off to our readers what a data junkie you are…

http://chandoo.org/wp

Page 4: what-the-if

2. Count How Many Times Each Item on List A is Repeated in List B

- 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 like

Page 5: what-the-if

Revenue Data per Customer

Customer City SalesGill Bates Columbus $918 MBeorge Gush Boston $1,426 MYerry Jang Boston $235 MParry Lage New Delhi $1,950 MBarren Wuffet New York $343 MAmil Anbani Mumbai $1,893 MTatan Rata Washington $1,207 MRandom Person 1 Columbus $656 MAnother guy Columbus $2,474 MBridget Jones Boston $274 MPointy Haired DilbMumbai $330 MRandom Person 2 California $38 MHollow Man Chicago $1,904 MAnother Girl Chicago $624 MCill Blinton Chicago $2,563 MRandom Person 3 New York $1,863 M

Master DataPhone number320-966-4023686-612-7782122-617-7154547-436-7376956-633-7322132-716-5240340-267-0529531-413-4718613-228-4294272-525-2042474-163-1656185-813-8883591-797-3970310-348-2518131-551-5332297-487-5253431-384-0125771-133-2877304-024-4046

Page 6: what-the-if

Post your favorite hack in the comments section, show off to our readers what a data junkie you are…