A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

replace N/A with blank



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2004, 06:22 PM
leeners82
external usenet poster
 
Posts: n/a
Default replace N/A with blank

I need to create a vlookup function where the following occur:
1) the function looks for a number in the worksheet and if that cell is
blank the cell with the function is also left blank.
however,
2) if there is a number in the referenced cell I need a function to
lookup that same number in another spreadsheet (vlookup function). One
catch...if the number that should be inserted from the lookup is 0 or
if the cell is blank, i want the function cell to also be left blank.
Here is the current function:

=IF(D11="","",VLOOKUP(D11,'[International Breakdown Month.xls]Rec
ss'!$A$7:$L$29,8,FALSE))


---
Message posted from http://www.ExcelForum.com/

  #2  
Old June 15th, 2004, 06:44 PM
Jonathan Cooper
external usenet poster
 
Posts: n/a
Default replace N/A with blank

=IF(D11="","",IF(OR(VLOOKUP(D11,'[International Breakdown Month.xls]Rec ss'!$A$7:$L$29,8,FALSE)="",VLOOKUP(D11,'[International Breakdown Month.xls]Rec ss'!$A$7:$L$29,8,FALSE)=0,ISERROR(VLOOKUP(D11,'[International Breakdown Month.xls]Rec ss'!$A$7:$L$29,8,FALSE))),"",VLOOKUP(D11,'[International Breakdown Month.xls]Rec ss'!$A$7:$L$29,8,FALSE)))


"leeners82 " wrote:

I need to create a vlookup function where the following occur:
1) the function looks for a number in the worksheet and if that cell is
blank the cell with the function is also left blank.
however,
2) if there is a number in the referenced cell I need a function to
lookup that same number in another spreadsheet (vlookup function). One
catch...if the number that should be inserted from the lookup is 0 or
if the cell is blank, i want the function cell to also be left blank.
Here is the current function:

=IF(D11="","",VLOOKUP(D11,'[International Breakdown Month.xls]Rec
ss'!$A$7:$L$29,8,FALSE))


---
Message posted from http://www.ExcelForum.com/


  #3  
Old June 15th, 2004, 06:54 PM
Tushar Mehta
external usenet poster
 
Posts: n/a
Default replace N/A with blank

Option 1: Suppose you have the formula in cell X1. Then, in Y1, enter
=IF(ISNA(X1),"",X1). For aesthetic reasons, you could hide column Y.

Option 2: Use
=IF(D11="","",if(ISNA(VLOOKUP(D11,'[International Breakdown Month.xls]
Recss'!$A$7:$L$29,8,FALSE)),"",VLOOKUP(D11,'[International Breakdown
Month.xls]Recss'!$A$7:$L$29,8,FALSE))

For reasons of sanity, I prefer the first.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article , leeners82
says...
I need to create a vlookup function where the following occur:
1) the function looks for a number in the worksheet and if that cell is
blank the cell with the function is also left blank.
however,
2) if there is a number in the referenced cell I need a function to
lookup that same number in another spreadsheet (vlookup function). One
catch...if the number that should be inserted from the lookup is 0 or
if the cell is blank, i want the function cell to also be left blank.
Here is the current function:

=IF(D11="","",VLOOKUP(D11,'[International Breakdown Month.xls]Rec
ss'!$A$7:$L$29,8,FALSE))


---
Message posted from http://www.ExcelForum.com/


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:36 PM.


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