Formula Help VLOOKUP

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,118
Office Version
  1. 365
Platform
  1. Windows
I am close but cant get it to go. Says this value doesn't match the data validation restrictions defined for the cell. Anyone can help thanks.
Trying to Match whats in D column to the E column of mapping table and return what's in E. Why i have 4 a b c d

=IFERROR(VLOOKUP(@$D$8:$D$500, 'Mapping Table'!$A$2:$E$2500,4,0),"")
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
In a VLOOLKUP formula, the column you are matching on need to be LEFT-MOST column of your lookup range.
Because the column you want to return (column D) is to the of your matching column (column E), you cannot use VLOOKUP.
However, since you are using Excel 365, you should be able to use LOOKUP.

I think your formula should look something like this:
Excel Formula:
=IFERROR(LOOKUP(@$D$8:$D$500,'Mapping Table'!$E$2:$E$2500',Mapping Table'!$D$2:$D$2500),"")

See here for a deeper explanation of the LOOKUP function: LOOKUP function - Microsoft Support
 
Upvote 0
Thank you for the reply. i will try it tomorrow and let you know.
 
Upvote 0
Are you switching between versions of Excel, the "@" symbol concerns me ?
If you are using MS365 just use XLookup.
Syntax is: =XLOOKUP(lookup_value, lookup_array, return_array, if_not_found)
Rich (BB code):
=XLOOKUP($D$8:$D$500, 'Mapping Table'!$E$2:$E$2500, 'Mapping Table'!$D$2:$D$2500, "")
 
Upvote 0
Hi Alex it comes up the Value doesn't match on your formula?
 
Upvote 0
In a VLOOLKUP formula, the column you are matching on need to be LEFT-MOST column of your lookup range.
Because the column you want to return (column D) is to the of your matching column (column E), you cannot use VLOOKUP.
However, since you are using Excel 365, you should be able to use LOOKUP.

I think your formula should look something like this:
Excel Formula:
=IFERROR(LOOKUP(@$D$8:$D$500,'Mapping Table'!$E$2:$E$2500',Mapping Table'!$D$2:$D$2500),"")

See here for a deeper explanation of the LOOKUP function: LOOKUP function - Microsoft Support
Joe i also tried yours =IFERROR(LOOKUP(@$D$8:$D$500,'Mapping Table'!$E$2:$E$2500',Mapping Table'!$D$2:$D$2500),"") but comes up there is a problem with the formula

Then directs me to here. $E$2500' I fixed this $E$2500 and also added this 'Mapping Table' but still no go.
 
Upvote 0

Forum statistics

Threads
1,222,827
Messages
6,168,482
Members
452,192
Latest member
FengXue

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