Need help looking up value in table based on 'Name' & 'Date'

Chookz

Board Regular
Joined
May 9, 2011
Messages
95
Hey everyone,

Here is my example workbook:

Excel 2007
ABCDE
1DateNameLocationStart TimeWeight
211/04/2013Smith, JohnAustralia11:00 AM75.3
311/04/2013Doe, JaneAustralia11:00 AM90.7
412/04/2013Bob, BillyNew Zealand11:00 AM94.6

<tbody>
</tbody>
Sheet5

I would like a formula to enter in cell B3 of the following Sheet that will tell me the location for Billy Bob on the 12/4/13 from the table in Sheet 5.

Excel 2007
AB
1Name:Bob, Billy
2Date:12/04/2013
3Location:

<tbody>
</tbody>

Sheet 6
Im assuming it's some kind of Vlookup but I don't have the knowledge of what the exact formula would be.​
Thanks in advance

(P.S. this is the first time ive used HTMLMaker so apologies for things being a little messy)

Charles
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Actually, you'll be using an index() and match() combination CSE function (much more versatile than vlookup or hlookup)

=INDEX('Sheet5'!$C$2:$C$4,MATCH(B2&B1,'Sheet5'!$A$2:$A$4&'Sheet5'!$B$2:$B$4,0))
Entered with CTRL-SHIFT-Enter! (do NOT forget this part or you will get a #N/A error!)

Hope this helps!
 
Upvote 0
Legendary!
Thanks for the super quick reply s hal, that worked a treat.
Just out of curiosity, what does CTRL-SHIFT-Enter do and when is it used?
 
Upvote 0
Sheet 6, B3, control+shift+enter, not just enter:

=INDEX(Sheet5!$C$2:$C$4,MATCH(B1,IF(Sheet5!$A$2:$A$4=B2,Sheet5!$B$2:$B$4),0))
 
Upvote 0
Legendary!
Thanks for the super quick reply s hal, that worked a treat.
Just out of curiosity, what does CTRL-SHIFT-Enter do and when is it used?

it signifies to excel that you are entering an array formula (arrays generally meaning you are accessing and doing things across multiple cells at once) rather than a standard formula. It makes { } brackets around your formula as well :) I would definitely suggest reading up on "CSE" functions as they really add a ton of functionality to your excel abilities as a whole!
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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