#1   Report Post  
Posted to microsoft.public.excel.misc
Steve
 
Posts: n/a
Default vlookup

I have a column containing a vlookup formula. With blank rows vlookup returns
#N/A. To handle those situations I would like to put the vlookup formula
inside an 'if' statement that returned a value other than #N/A;ie,
If(vlookup()= "#N/A" ,0,Vlookup(....) )". However, using "#N/A" as the
condition doesn't seem to work-is there something else that does?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Marcelo
 
Posts: n/a
Default vlookup

hi Steve,

use IF(ISERROR(VLOOKUP(your formula here),"",VLOOKUP(you formula here)

please adjust the "(" as necessary

hope this helps
regards from Brazil
Marcelo

"Steve" escreveu:

I have a column containing a vlookup formula. With blank rows vlookup returns
#N/A. To handle those situations I would like to put the vlookup formula
inside an 'if' statement that returned a value other than #N/A;ie,
If(vlookup()= "#N/A" ,0,Vlookup(....) )". However, using "#N/A" as the
condition doesn't seem to work-is there something else that does?

  #3   Report Post  
Posted to microsoft.public.excel.misc
JLatham
 
Posts: n/a
Default vlookup

Steve, Marcelo's answer will work very well. However, if you want to be very
specific for the #NA error only, you can us
=IF(ISNA(VLOOKUP(formula),"",VLOOKUP(formula))) instead. This would catch
#NA errors only, but if something else is wrong, then that would try to
return the true case which might show another error such as #VALUE.

"Marcelo" wrote:

hi Steve,

use IF(ISERROR(VLOOKUP(your formula here),"",VLOOKUP(you formula here)

please adjust the "(" as necessary

hope this helps
regards from Brazil
Marcelo

"Steve" escreveu:

I have a column containing a vlookup formula. With blank rows vlookup returns
#N/A. To handle those situations I would like to put the vlookup formula
inside an 'if' statement that returned a value other than #N/A;ie,
If(vlookup()= "#N/A" ,0,Vlookup(....) )". However, using "#N/A" as the
condition doesn't seem to work-is there something else that does?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Looking-for-a-brainiac
 
Posts: n/a
Default vlookup

This is just what I needed, but when I am getting an error on the "" in the
formula. I have tried just plain "", "0", and " ", but it still is not
working. Any ideas?

"Steve" wrote:

I have a column containing a vlookup formula. With blank rows vlookup returns
#N/A. To handle those situations I would like to put the vlookup formula
inside an 'if' statement that returned a value other than #N/A;ie,
If(vlookup()= "#N/A" ,0,Vlookup(....) )". However, using "#N/A" as the
condition doesn't seem to work-is there something else that does?

  #5   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default New query

Sorry for posting it here. Hope someone can answer this.

I have multiple worksheets Sheet1, Sheet2 .to..Sheet7 which keep
varying in length on a weekly basis and I wish to append all these
sheets into one Mainsheet "MAIN".

All these sheets have different columns and I want to add 3 blank rows
between each table in the "MAIN" sheet. I want to create a macro so
that this is automated. Can anyone help me on this?

- Naveen



Looking-for-a-brainiac wrote:
This is just what I needed, but when I am getting an error on the "" in the
formula. I have tried just plain "", "0", and " ", but it still is not
working. Any ideas?

"Steve" wrote:

I have a column containing a vlookup formula. With blank rows vlookup returns
#N/A. To handle those situations I would like to put the vlookup formula
inside an 'if' statement that returned a value other than #N/A;ie,
If(vlookup()= "#N/A" ,0,Vlookup(....) )". However, using "#N/A" as the
condition doesn't seem to work-is there something else that does?




  #6   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph
 
Posts: n/a
Default vlookup

"Looking-for-a-brainiac"
wrote in message ...

"Steve" wrote:

I have a column containing a vlookup formula. With blank rows vlookup
returns
#N/A. To handle those situations I would like to put the vlookup formula
inside an 'if' statement that returned a value other than #N/A;ie,
If(vlookup()= "#N/A" ,0,Vlookup(....) )". However, using "#N/A" as the
condition doesn't seem to work-is there something else that does?


This is just what I needed, but when I am getting an error on the "" in
the
formula. I have tried just plain "", "0", and " ", but it still is not
working. Any ideas?


I think you may be trying to reply to JLatham's suggestion of
=IF(ISNA(VLOOKUP(formula),"",VLOOKUP(formula)))
in which case I think the problem is with the brackets.

Try
=IF(ISNA(VLOOKUP(formula)),"",VLOOKUP(formula))
--
David Biddulph


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 Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 07:10 AM.

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"