Vlookup Help

josros60

Well-known Member
Joined
Jun 27, 2010
Messages
781
Office Version
  1. 365
Hi

i have the table below and this vlookup formula but for the row 3 works fine but one and two doesn't pull the the data is blank.

=IF(ISERROR(VLOOKUP($D$6,Vendors!$A:$J,2,FALSE)),"",VLOOKUP($D$6,Vendors!$A:$J,2,FALSE))

CodeVendorBill CycleNotesBank #TransitAcct # Contact NameCC Email
100001Bentonauto pay
100002Hellin30auto pay
100003Canada Postvariesauto pay

<tbody>
</tbody>

can any tell me what am i doing wrong.

thanks
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
First of all, if you are copying this formula down, adjust it to:
Code:
=IF(ISERROR(VLOOKUP(D6,Vendors!$A:$J,2,FALSE)),"",VLOOKUP(D6,Vendors!$A:$J,2,FALSE))
Secondly, the IFERROR function is more efficient as it avoids doing the VLOOKUP twice:
Code:
=IFERROR(VLOOKUP(D6,Vendors!$A:$J,2,FALSE),"")

I think your problem is that either the values in column D are numbers and the values in Vendors!A:A are text, or the other way around.
 
Upvote 0
Hi,

i changed the formula to =IFERROR(VLOOKUP(D6,Vendors!$A:$J,2,FALSE),"") and then changed first two to D6 to text format and it worked the first two but not the third Canada post and checked the rest of numbers and all are formatted as text value, cannot figured out why doesn't work.

Thank you very much for your suggestions.

 
Upvote 0
They may be formatted as text, but changing the format does not change the content of the cells, after changing the format you have to re-enter the content (F2 followed by enter) to convince Excel the content of the cell must match the formatting.
 
Upvote 0

Forum statistics

Threads
1,215,956
Messages
6,127,931
Members
449,411
Latest member
AppellatePerson

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