create account

Need To Find Something Quick From a List? My Favorite Excel Trick - Index(Match()) by team-leibniz

View this thread on: hive.blogpeakd.comecency.com
· @team-leibniz ·
$39.37
Need To Find Something Quick From a List? My Favorite Excel Trick - Index(Match())
![](https://i.imgur.com/XgeH7KJ.png)

# Allow me just one moment to geek out with the community.

My hobby over the past several years, and what has now morphed into my full time job, is data analysis. At first it was just a hobby with fantasy sports. Eventaully, I became a go to guy in my school as a data aggregator and analysis dude. Now that has morphed into a full time job, with me being asked to sift through ungodly amounts of educational related information and with really quick turnaround times.

So, in a high pressure world with the expectation of pretty quick results, I need at least a few tricks up my sleeve. Allow me to share my favorite:

## INDEX(MATCH()), Nectar of the Spreadsheet Gods

Look, I know people hate spreadsheets. There was a time when I used to as well. And, I've since moved on to learning SQL and R where life is but a data filled dream.

But, every now and again when it is more convenient to just get to a conclusion quick, I always come back to my best data friend. And that is `INDEX(MATCH())`.

## Here's the Situation - Looking up Fantasy Football Stats

Say I have a database of information. Say it has a bunch of stuff. Maybe that database looks like this:

![](https://i.imgur.com/ISgiCGX.png)

Okay, so I love fantasy NFL football. I have sheets like this on every player that has played at least 1 game since 2003. This one just happens to be for Roddy White, Wide Reciever for the Atlanta Falcons. It displays his historical game stats, opponents, week played, and the percentile of his position he was in that week. So, you know, stuff only dorks like me care about.

Often, I need to pull really quick information from these sheets and need to get that information instantly. So, say I REALLY need to know how many yards receiving Roddy White had in Week 14 of the 2014 NFL season. Of course, I could just look that up manually like a stupid human:

![](https://i.imgur.com/lMNNS9W.png)

But, after all, I'm a stupid human and want the computer to just do this for me.

## Strategy #1 - VLOOKUP()

Sometimes, when I am slumming it, I will use a function in Excel called `VLOOKUP`. Here's the logic behind it.

I tell Excel the column I want it to find something. It will then Vertically look up and down that column until it finds what I want it to find. Then, once it does what I tell it to do it will look across that row in the place I tell it to find what I need it to find.

Here's what that command would look like:

`=VLOOKUP("14WeekATL",$F$2:$R$29,9,FALSE)`

![](https://i.imgur.com/RETyvkm.png)

- `"14WeekATL"` is what I want Excel to find by looking vertically up and down what is in the range `$F$2:$R$29`
- `"14WeekATL"` is in quotes because it is a "string", or in normal terms, text.
- `$F$2:$R$29` iis the blue selection you see above. The dollar signs are called an absolute reference, which means I only want the computer to look at that range only forever and never mess with it.
- `9` means I want Excel to find what is 9 entries over to the right, counting what is in the season column as number 1.
- `FALSE` just means I want an exact match. So, FIND WHAT I WANT YOU TO FIND EXCEL!

Notice the desired result:

![](https://i.imgur.com/24qDv99.png)

## Strategy #2 - INDEX(MATCH())

Ahh...like cold water on a warm Summer day. So refreshing, and you intiutively just know its amazing. 

`VLOOKUP` is always cool to use, but is kind of annoying for two reasons. First, you have to count the number of columns over you want to find a desired entry. And really, who has the time for that? 


Second, `VLOOKUP` only works if you are trying to find something to the *RIGHT* of the vertical column you identify. If you try to find something to the left? Like the opponent in Week 14 for Atlanta? You know, stuff to the *LEFT* of the vertical column? Maybe something like this?

`=VLOOKUP("14WeekATL",$F$2:$R$29,-1,FALSE)`

![](https://i.imgur.com/F1SLAh5.png)

#### *Whoops! VLOOKUP() don't play that!*

Enter `INDEX(MATCH())`. To think like `INDEX(MATCH())`, you have to think like Yoda. Talk in reverse you must...hmmm!

To fix the reverse issue with `VLOOKUP`, just tell excel the column you desire to `INDEX`, and it will then `MATCH` the entry you are looking for.

Here's what that command would look like:

`=INDEX($D$2:$D$29,(MATCH("14WeekATL",$F$2:$F$29,0)))`

![](https://i.imgur.com/4N39RFa.png)

- `INDEX` is the range where I want Excel to find my answer. It will be in the column that is between `$D$2:$D$29`
- `MATCH` is what I want Excel to find for me. Again, it will be `"14WeekATL"`.
- `$F$2:$R$29` is the red selection you see above. It is where the computer will `MATCH` `"14WeekATL"` .
- `0` means I want Excel to find an exact match to `"14WeekATL"` .

### The Result???

![](https://i.imgur.com/fPfQj5j.png)

![](https://i.imgur.com/7D5iKhV.png)

# So, when life asks you to find a needle in a haystack, you now know what to do!

`=INDEX($NEEDLES:$NEEDLES,(MATCH("MY_NEEDLE",$HAYSTACK:$HAYSTACK,0)))`

[![@teamleibinz](https://img1.steemit.com/0x0/http://i.imgur.com/olhuYuH.png)](https://steemit.com/@team-leibniz)
👍  , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorteam-leibniz
permlinkneed-to-find-something-quick-from-a-list-my-favorite-excel-trick-index-match
categoryblog
json_metadata{"tags":["blog","excel","lifehacks","steem","steemit"],"image":["https://i.imgur.com/XgeH7KJ.png","https://i.imgur.com/ISgiCGX.png","https://i.imgur.com/lMNNS9W.png","https://i.imgur.com/RETyvkm.png","https://i.imgur.com/24qDv99.png","https://i.imgur.com/F1SLAh5.png","https://i.imgur.com/4N39RFa.png","https://i.imgur.com/fPfQj5j.png","https://i.imgur.com/7D5iKhV.png","https://img1.steemit.com/0x0/http://i.imgur.com/olhuYuH.png"],"links":["https://steemit.com/@team-leibniz"],"app":"steemit/0.1","format":"markdown"}
created2017-06-23 02:14:12
last_update2017-06-23 02:14:12
depth0
children4
last_payout2017-06-30 02:14:12
cashout_time1969-12-31 23:59:59
total_payout_value34.434 HBD
curator_payout_value4.939 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,106
author_reputation14,619,505,065,353
root_title"Need To Find Something Quick From a List? My Favorite Excel Trick - Index(Match())"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id5,710,810
net_rshares3,178,371,271,314
author_curate_reward""
vote details (24)
@paasz ·
$0.12
![](https://steemitimages.com/DQmdxfhJF7e6eZyigMx6iCCRh77oZPWkY2vyrvaSHNKgEs7/image.png)
👍  , ,
properties (23)
authorpaasz
permlinkre-team-leibniz-need-to-find-something-quick-from-a-list-my-favorite-excel-trick-index-match-20170623t023152982z
categoryblog
json_metadata{"tags":["blog"],"image":["https://steemitimages.com/DQmdxfhJF7e6eZyigMx6iCCRh77oZPWkY2vyrvaSHNKgEs7/image.png"],"app":"steemit/0.1"}
created2017-06-23 02:32:00
last_update2017-06-23 02:32:00
depth1
children1
last_payout2017-06-30 02:32:00
cashout_time1969-12-31 23:59:59
total_payout_value0.116 HBD
curator_payout_value0.003 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length88
author_reputation4,120,277,256,569
root_title"Need To Find Something Quick From a List? My Favorite Excel Trick - Index(Match())"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id5,712,458
net_rshares9,807,556,498
author_curate_reward""
vote details (3)
@team-leibniz · (edited)
=INDEX($THANKS:$THANKS,(MATCH("MY_PERSONAL_GREETING",$GREETINGS:$GREETINGS,0)))
properties (22)
authorteam-leibniz
permlinkre-paasz-re-team-leibniz-need-to-find-something-quick-from-a-list-my-favorite-excel-trick-index-match-20170623t023358933z
categoryblog
json_metadata{"tags":["blog"],"app":"steemit/0.1"}
created2017-06-23 02:34:00
last_update2017-06-23 02:34:39
depth2
children0
last_payout2017-06-30 02:34:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length79
author_reputation14,619,505,065,353
root_title"Need To Find Something Quick From a List? My Favorite Excel Trick - Index(Match())"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id5,712,634
net_rshares0
@paulag ·
Nice article.  I love excel.  it rocks.  its one of the topics I also post on.  Have resteemed
properties (22)
authorpaulag
permlinkre-team-leibniz-need-to-find-something-quick-from-a-list-my-favorite-excel-trick-index-match-20170623t222513809z
categoryblog
json_metadata{"tags":["blog"],"app":"steemit/0.1"}
created2017-06-23 22:25:15
last_update2017-06-23 22:25:15
depth1
children0
last_payout2017-06-30 22:25:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length94
author_reputation274,264,287,951,003
root_title"Need To Find Something Quick From a List? My Favorite Excel Trick - Index(Match())"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id5,831,929
net_rshares0
@randowhale ·
$0.05
This post received a 3.6% upvote from @randowhale thanks to @team-leibniz!  For more information, [click here](https://steemit.com/steemit/@randowhale/introducing-randowhale-will-you-get-the-100-vote-give-it-a-shot)!
👍  
properties (23)
authorrandowhale
permlinkre-need-to-find-something-quick-from-a-list-my-favorite-excel-trick-index-match-20170623t024101
categoryblog
json_metadata"{"app": "randowhale/0.1", "format": "markdown"}"
created2017-06-23 02:41:03
last_update2017-06-23 02:41:03
depth1
children0
last_payout2017-06-30 02:41:03
cashout_time1969-12-31 23:59:59
total_payout_value0.047 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length216
author_reputation47,657,457,485,459
root_title"Need To Find Something Quick From a List? My Favorite Excel Trick - Index(Match())"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id5,713,280
net_rshares3,955,592,284
author_curate_reward""
vote details (1)