Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Vlookup Returning #n/a

I have a large workbook that I am using vlookup in. It is returning #n/a wher
e there is no data to pull. I am trying to add another formula to pull a
range of numbers from the main sheet. It works fine as long as there are no
NA's in the data I am pulling from. I need to know how to change the formula
to not return the N/A but not ruin the formula if the data is there to be
pulled.

Thanks in advance for any help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Vlookup Returning #n/a

The usual way of doing this is:

=IF(ISNA(your_vlookup),"",your_vlookup)

or you might have a zero instead of "", or some other message like
"not present".

Hope this helps.

Pete


On Jul 4, 11:52 pm, Toolbar Confused
wrote:
I have a large workbook that I am using vlookup in. It is returning #n/a wher
e there is no data to pull. I am trying to add another formula to pull a
range of numbers from the main sheet. It works fine as long as there are no
NA's in the data I am pulling from. I need to know how to change the formula
to not return the N/A but not ruin the formula if the data is there to be
pulled.

Thanks in advance for any help



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Vlookup Returning #n/a

Sample formula to return blank if no data.

=IF(ISNA(VLOOKUP(cellref,table,col,FALSE)),"",VLOO KUP(cellref,table,col,FALSE))


Gord Dibben MS Excel MVP

On Wed, 4 Jul 2007 15:52:02 -0700, Toolbar Confused
wrote:

I have a large workbook that I am using vlookup in. It is returning #n/a wher
e there is no data to pull. I am trying to add another formula to pull a
range of numbers from the main sheet. It works fine as long as there are no
NA's in the data I am pulling from. I need to know how to change the formula
to not return the N/A but not ruin the formula if the data is there to be
pulled.

Thanks in advance for any help


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Vlookup Returning #n/a

To return a 0:
=if(isna(vlookup(...)),0,vlookup(....))

To return an empty string:
=if(isna(vlookup(...)),"",vlookup(....))

If you're using xl2007, you could use:
=iferror(vlookup(...),0)
or
=iferror(vlookup(...),"")



Toolbar Confused wrote:

I have a large workbook that I am using vlookup in. It is returning #n/a wher
e there is no data to pull. I am trying to add another formula to pull a
range of numbers from the main sheet. It works fine as long as there are no
NA's in the data I am pulling from. I need to know how to change the formula
to not return the N/A but not ruin the formula if the data is there to be
pulled.

Thanks in advance for any help


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Vlookup Returning #n/a

Thank you all very helpful

"Pete_UK" wrote:

The usual way of doing this is:

=IF(ISNA(your_vlookup),"",your_vlookup)

or you might have a zero instead of "", or some other message like
"not present".

Hope this helps.

Pete


On Jul 4, 11:52 pm, Toolbar Confused
wrote:
I have a large workbook that I am using vlookup in. It is returning #n/a wher
e there is no data to pull. I am trying to add another formula to pull a
range of numbers from the main sheet. It works fine as long as there are no
NA's in the data I am pulling from. I need to know how to change the formula
to not return the N/A but not ruin the formula if the data is there to be
pulled.

Thanks in advance for any help




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup returning a #N/A value Ian Excel Worksheet Functions 5 May 17th 06 02:58 PM
vlookup returning sum Rose Excel Worksheet Functions 1 July 14th 05 10:47 PM
vlookup returning #NA dandigger Excel Discussion (Misc queries) 11 April 6th 05 11:13 PM
Vlookup returning #N/A ww Excel Worksheet Functions 2 March 23rd 05 12:24 AM
Vlookup and returning #n/a Cathrine Excel Worksheet Functions 3 December 23rd 04 02:23 PM


All times are GMT +1. The time now is 10:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"