How To look up a value from a table with sub-column

Redmondcys

New Member
Joined
Feb 8, 2017
Messages
3
I understand the basic that vlookup can look for the value on the first column and return the cell next to it.

Like if on the other sheet, I manually input in separte cells as "room 1", "A", "A1", and I want it to return "value1" for me.

Please help...
A
A
B
B
A1
A2
B1
B2
room 1
value1
value4
value7
value10
room 2
value2
value5
value8
value11
room 3
value3
value6
value9
value12

<tbody>
</tbody>
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
One way...

Sheet1
A
B
C
D
E
1
A​
A​
B​
B​
2
A1​
A2​
B1​
B2​
3
room 1​
value1​
value4​
value7​
value10​
4
room 2​
value2​
value5​
value8​
value11​
5
room 3​
value3​
value6​
value9​
value12​

Sheet2
A
B
C
1
Room 1​
A1​
value1​
2
------​
------​
------​

This formula entered in C1:

=VLOOKUP(A1,Sheet1!A2:E5,MATCH(B1,Sheet1!A2:E2,0),0)
 
Upvote 0

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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