VLOOKUP - Adding a non valur parameter

Mark_richardson28

New Member
Joined
Sep 29, 2006
Messages
36
I am using a VLOOKUP in one of my spreadsheets. I need it to say "NoData" should there be no data in the field it is referencing from.


Can anyone help?

THanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I am using a VLOOKUP in one of my spreadsheets. I need it to say "NoData" should there be no data in the field it is referencing from.


Can anyone help?

THanks

Not sure what you're referring too, but try one of the following,

=IF(ISNA(VLOOKUP(A1,B1:C10,2,0),"No Data")),VLOOKUP(A1,B1:C10,2,0)

Or

IF(A1="","No Data",VLOOKUP(A1,B1:C10,2,0))

Adjust ranges....
 
Upvote 0
This is my Vlookup

=VLOOKUP($C9,'Raw data - Jan Martin'!$A4:$L43,2,FALSE)

Tried both of those suggestions, but neither worked

In what instance would you like "No Data" displayed? If C9 is empty or if C9 is not found in A4:A43?
 
Upvote 0
The data is inserted to the "raw data spreadsheet" by a from box. So there is no garauntee that there will be a value there. so using excel as a mini database. The vlookup is referencing it by date, which is in cell C9. If the v lookup cant find anything it is saying #N/A which i want it to say "No Data".

cheers
 
Upvote 0
The data is inserted to the "raw data spreadsheet" by a from box. So there is no garauntee that there will be a value there. so using excel as a mini database. The vlookup is referencing it by date, which is in cell C9. If the v lookup cant find anything it is saying #N/A which i want it to say "No Data".

cheers

My apologies, misplaced paren,

=IF(ISNA(VLOOKUP(A1,B1:C10,2,0)),"No Data",VLOOKUP(A1,B1:C10,2,0))

adjust ranges and worksheet name.

As an aside, you may want to check for any leading/trailing spaces when you import data in your lookup column. An extra space will return a #N/A
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,156
Members
448,948
Latest member
spamiki

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