Lookup on variable entries

jasonbridge

New Member
Joined
Mar 8, 2005
Messages
8
Hi,

I am trying to get a value based on the following:

I have a table that has 5 columns each with a different heading (system type), then after these comes another 3 columns that gives user details. In the first 5 columns there is a user ID in each cell e.g.

LRSMS MRSMS RRSMS GRSMS WRSMS Name Manager Location
12345 56789 54878 12989 68595 John Sally London
56789 59800 12989 55555 68790 Tim Sally London

Then I have another worksheet that has one column where the cell has one of the 5 SMS codes and then in the next column has the user ID. What I need to do is do a sort of lookup that first recognises the system type and then looks up in the corresponding column for the matching user ID. e.g. If the system is LRSMS and the ID is 56789 then it returns Tim as the user.

Hope this makes sense, can anyone help?

Cheers
Jason
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Try:

=INDEX(Sheet1!F1:F3,MATCH(A2,INDEX(Sheet1!A1:E3,0,MATCH(A1,Sheet1!A1:E1,FALSE)),FALSE))

where A1 contains LRSMS and A2 contains 56789.
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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