Looking up a value to the left in a table

cpg84

Active Member
Joined
Jul 16, 2007
Messages
266
Platform
  1. Windows
Hi,

I want to find a name in a table and return what the value of the cell next to it is. Here's a basic layout of the table:

Champion Townsville
Runner Up Singapore
Lost SF Cairns
Lost SF Melbourne
Lost QF Brisbane
Lost QF Sydney
Lost QF Adelaide
Lost QF New Zealand
9th Wollongong
10th Perth
11th South
12th Gold Coast
13th West Sydney

For each team I want to see where they finished. E.g. For Townsville, it will say Champion and so on down the list. The cell that I want their "finishing position" to appear in, is on a different worksheet to the table.

Any help would be appreciated. Im totally confused between MATCH and LOOKUP, maybe there is a better formula.

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi Cammy84

Use:
=INDEX(A1:A13,MATCH(E2,B1:B13,0))

Hope this helps
PGC
Book1
ABCDEFG
1ChampionTownsvillePlaceFinishingposition
2RunnerUpSingaporePerth10th
3LostSFCairns
4LostSFMelbourne
5LostQFBrisbane
6LostQFSydney
7LostQFAdelaide
8LostQFNewZealand
99thWollongong
1010thPerth
1111thSouth
1212thGoldCoast
1313thWestSydney
14
15
Sheet2
 
Upvote 0
I know what you mean when you express confusion about the LOOKUP and MATCH functions. But, as far as I understand, short of using insanely advanced code and tricks that only true EXCEL gurus have mastered (which I am NOT), the combination of LOOKUP and MATCH are the only way to look things up to the left.

I haven't experimented with this scenario myself yet but you might want to check out the following website and see what you can find to help solve your challenge.

http://www.ozgrid.com/Excel/left-lookup.htm

Hope you can solve it!!
 
Upvote 0
I tried that site and it doesn't help.

The problem I can see is that you can't index or match with data on another worksheet. Apart from that, it would work.

Any suggestions???

Thanks for the advice anyway guys
 
Upvote 0
I tried that site and it doesn't help.

The problem I can see is that you can't index or match with data on another worksheet. Apart from that, it would work.

Any suggestions???

Thanks for the advice anyway guys
There are absolutely no problems using INDEX and MATCH across worksheets. What did you try and how did it not work?
 
Upvote 0
I just did a little experimenting and found that if you add the worksheet number or worksheet name in front of the INDEX/MATCH formula you can have it appear on other worksheets but still within the same workbook.
I apologize for the crudity of my illustration, but the example I cited you on ozgrid.com, showed you how to set up the the Left Lookup on the same sheet (sheet1, and it appeared as something like what is just below).

The "A B C D" represent the columns and the "1 2 3 4 5 6" represent the rows. There is a "Name" column, an "Age" column, an ID column, and a "Country" column. The "names" are set up first name and last initial, the "countries" are by two letter abbreviation.

A B C D
1 Name Age ID# Country
2 Dave H 23 R215 AU
3 Bill T 57 R245 CA
4 Kate C 34 K345 USA
5 Jenn W 37 K346 CA
6 Cameron F 26 L592 JA
7
8 =index($a$1:$a$6,match("R215",$c$1:$c$6,0),1)


BUT, if you go to say sheet number 2 (or whatever, just stay within the same workbook) you need to modify your formula slightly to tell EXCEL to look at another worksheet. Keeping all of your data on sheet 1, type the following formula into whatever cell you need on a different sheet;

=index(sheet1!$a$1:$a$6,match("R215",sheet1!$c$1:$c$6,0),1)

Note: if your sheets are actually Named, use those names but remember to include the exclamation mark.
 
Upvote 0
I used =INDEX(Results!Q181:Q193,MATCH("Adelaide",Results!R181:S193,0),1)

Obviously, Results is the name of the other worksheet I am getting the data from. Column R and S are merged together though, this column has the team names in it.

It comes up with #NA. Is there an add in I need? I didnt think there was.
 
Upvote 0
I used =INDEX(Results!Q181:Q193,MATCH("Adelaide",Results!R181:S193,0),1)

Obviously, Results is the name of the other worksheet I am getting the data from. Column R and S are merged together though, this column has the team names in it.

It comes up with #NA. Is there an add in I need? I didnt think there was.

Better not to merge cells the formulas must refer to, so unmerge R:S. And invoke:

=INDEX(Results!$Q$181:$Q$193,MATCH("Adelaide",Results!$R$181:$R$193,0))

for I expect the match range is in R. Note that MATCH needs a vector and can't work with a matrix.
 
Upvote 0
Got it. I have kept them merged but changed S193 to R193 and it works. I was starting to think that was the reason it wasnt working.

Thank you everyone.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top