Vlookup + If statement

typical

New Member
Joined
Aug 2, 2011
Messages
3
I am trying to use vlookup to help someone pull data from the backend of a spreadsheet. 90% of my spreadsheet is working. I am getting vlookup to pull the data from the back and complete the basic columns but for the final column its supposed to output a yes/no based on if the column has anything it in or not. If the column has text in it the output should be "yes" if not "no". my current equation is:

=IF(ISERROR(VLOOKUP(A6,'Ad Hoc'!F4:AE1658,26,FALSE)=TRUE),"No","Yes")
I guess one question to double check, for the column to check data from (26 in the equation) is that based off of the column for the table its searching through or the sheet its refering to?

Thanks for any help I appreciate it!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Edit: that might have worked, let me look at it a little longer. Thanks!
 
Last edited:
Upvote 0
Are the cells actually blank? If so the formula I suggested should work because it's testing for blanks (a blank cell returned by VLOOKUP always shows as a zero). If they are actually zeroes then try changing "" in formula to 0

=IF(VLOOKUP(A6,'Ad Hoc'!F4:AE1658,26,FALSE)=0,"No","Yes")
 
Upvote 0
The function is working properly. Thanks for the help, you saved me a few hours of tooling around with if statements!
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

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