Adding Mapping Rule to VLOOKUP

meppwc

Well-known Member
Joined
May 16, 2003
Messages
617
Office Version
  1. 365
Platform
  1. Windows
Is it possible to display values in adjacent cells if and only if a value is found in a table?

The formula below is located in cell C2 of the ProjectModel worksheet and it works correctly
=IFERROR(VLOOKUP(A2,Available!A:A,1,FALSE),"")
If the value in A2 is not found in the "Available" table, then "ProjectModel" C2 is blank. But if a value is found in the "Available" table, the value found is displayed in "ProjectModel" C2. This is all perfect.

What I am hoping to do is add additional mappings if, and ONLY if, a value is found.
For example
Lets say that the formula above in C2 of ProjectModel is also found in cell A45 of the of the "Available" table.
Cell C2 will populate with the value found in A45 of the Available table.
If that happens then I would like cells C3, D3 and E3 to populate with the values found in B45, C45 and D45 of the "Available" table

Cross posted https://www.excelforum.com/excel-for...o-vlookup.html
 
Last edited by a moderator:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi there - these should do it:

C3 would need to be: =IF(C2<>"",IFERROR(VLOOKUP(A2,Available!A:B,2,FALSE),""),"")
D3 would need to be: =IF(C2<>"",IFERROR(VLOOKUP(A2,Available!A:C,3,FALSE),""),"")
C3 would need to be: =IF(C2<>"",IFERROR(VLOOKUP(A2,Available!A:D,4,FALSE),""),"")
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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