Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default VLOOKUP ERROR HOW DO YOU MAKE IT BLANK

In this following formula, when the reference cells are not inputed yet an
N/A shows in the cell. The formula is as follows
=IF($K$35="","",VLOOKUP($K$35,'C:\Documents and Settings\dglenn\Desktop\[A-2
DAILY.xls]DATA BANK'!$A$1:$AH$100,2,FALSE))

How can this cell be a blank instead of N/A when there is nothing in the
referencing cells.
  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default VLOOKUP ERROR HOW DO YOU MAKE IT BLANK

try setting it up like this:
=IF($K$35="","",IF(ISNA(VLOOKUP(...)),"",VLOOKUP(. ..)))


"Hamed parhizkar" wrote:

In this following formula, when the reference cells are not inputed yet an
N/A shows in the cell. The formula is as follows
=IF($K$35="","",VLOOKUP($K$35,'C:\Documents and Settings\dglenn\Desktop\[A-2
DAILY.xls]DATA BANK'!$A$1:$AH$100,2,FALSE))

How can this cell be a blank instead of N/A when there is nothing in the
referencing cells.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default VLOOKUP ERROR HOW DO YOU MAKE IT BLANK

Or without 2 ifs, but an and:
=IF(and($K$35="",ISNA(VLOOKUP(...)),"",VLOOKUP(... )))

cheers
Carlo

On Dec 12, 1:11 pm, JMB wrote:
try setting it up like this:
=IF($K$35="","",IF(ISNA(VLOOKUP(...)),"",VLOOKUP(. ..)))



"Hamed parhizkar" wrote:
In this following formula, when the reference cells are not inputed yet an
N/A shows in the cell. The formula is as follows
=IF($K$35="","",VLOOKUP($K$35,'C:\Documents and Settings\dglenn\Desktop\[A-2
DAILY.xls]DATA BANK'!$A$1:$AH$100,2,FALSE))


How can this cell be a blank instead of N/A when there is nothing in the
referencing cells.- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default VLOOKUP ERROR HOW DO YOU MAKE IT BLANK

If K35 is not blank, but some value that does not exist in the table this
will throw an error. I assume you meant to use OR. Although if a blank does
not exist in the OP's lookup table, the test K35="" may not be needed at all.


"carlo" wrote:

Or without 2 ifs, but an and:
=IF(and($K$35="",ISNA(VLOOKUP(...)),"",VLOOKUP(... )))

cheers
Carlo

On Dec 12, 1:11 pm, JMB wrote:
try setting it up like this:
=IF($K$35="","",IF(ISNA(VLOOKUP(...)),"",VLOOKUP(. ..)))



"Hamed parhizkar" wrote:
In this following formula, when the reference cells are not inputed yet an
N/A shows in the cell. The formula is as follows
=IF($K$35="","",VLOOKUP($K$35,'C:\Documents and Settings\dglenn\Desktop\[A-2
DAILY.xls]DATA BANK'!$A$1:$AH$100,2,FALSE))


How can this cell be a blank instead of N/A when there is nothing in the
referencing cells.- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default VLOOKUP ERROR HOW DO YOU MAKE IT BLANK

Hey JMB,

you're right, thanks for the correction

Carlo

On Dec 13, 9:21 am, JMB wrote:
If K35 is not blank, but some value that does not exist in the table this
will throw an error. I assume you meant to use OR. Although if a blank does
not exist in the OP's lookup table, the test K35="" may not be needed at all.



"carlo" wrote:
Or without 2 ifs, but an and:
=IF(and($K$35="",ISNA(VLOOKUP(...)),"",VLOOKUP(... )))


cheers
Carlo


On Dec 12, 1:11 pm, JMB wrote:
try setting it up like this:
=IF($K$35="","",IF(ISNA(VLOOKUP(...)),"",VLOOKUP(. ..)))


"Hamed parhizkar" wrote:
In this following formula, when the reference cells are not inputed yet an
N/A shows in the cell. The formula is as follows
=IF($K$35="","",VLOOKUP($K$35,'C:\Documents and Settings\dglenn\Desktop\[A-2
DAILY.xls]DATA BANK'!$A$1:$AH$100,2,FALSE))


How can this cell be a blank instead of N/A when there is nothing in the
referencing cells.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


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
Index/match - make blank cells return a blank value. diaare Excel Worksheet Functions 3 May 3rd 23 03:44 AM
Excel 2002: Return blank when VLOOKUP on blank cells Mr. Low Excel Discussion (Misc queries) 2 June 4th 09 05:12 PM
How do I make a cell blank if Error OR 0 Result Gregory Day Excel Worksheet Functions 2 March 26th 08 05:14 PM
vlookup function that returns blank if error Bob Phillips Excel Programming 1 December 13th 06 04:13 PM
How do I make a blank cell with a date format blank? Pivot Table/Query Excel Worksheet Functions 6 June 14th 05 11:19 PM


All times are GMT +1. The time now is 02:12 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"