IF ISBLANK VLOOKUP function is bringing back #NA if the cell it pulls data from is empty.

Rotherzz

New Member
Joined
Aug 6, 2022
Messages
7
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I have a spreadsheet that pulls personnel details from my main sheet (Nominal) to my other tab.

B1:B50 with contain staff numbers when they are required. so while the tab is empty is shows #NA. When i put the staff number in the formula works fine.

I was wondering if anyone could help to see if i could get my formula to function the same but also prevent the #NA if no staff number is present.

Formula is below.

=IF(ISBLANK(VLOOKUP(B1,'Nominal'!$A$3:$AQ$152,7,FALSE())),"",VLOOKUP(B1'Nominal'!$A$3:$AQ$152,7,FALSE()))

TIA!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi & welcome to MrExcel.
How about
Excel Formula:
=LET(v,VLOOKUP(B1,Nominal!$A$3:$AQ$152,7,FALSE()),IF(ISNA(v),"",IF(v="","",v)))
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=LET(v,VLOOKUP(B1,Nominal!$A$3:$AQ$152,7,FALSE()),IF(ISNA(v),"",IF(v="","",v)))
Hi Fluff, thanks for responding so fast!

Its worked on a quick template i made ( just had to put the apostrophes back onto the Nominal ;) ). Wont know for sure until im back in work on monday!

I will update the thread then!
 
Upvote 0
There is no need for the apostrophes as the sheet name is a single word. ;)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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