Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
scott
 
Posts: n/a
Default IIF IS NULL Problem

I'm trying to test a cell to return a blank "" or the number. If cell B3
contains nothing, how can i return a blank?

i'm using below formula, but it gives me an error.

=IF(IS NULL(B3),"",B3)


  #2   Report Post  
Dave R.
 
Posts: n/a
Default

Try this changing A1 to B3:

=OR(ISBLANK(A1),A1="")

=IF(OR(ISBLANK(A1),A1=""),"",A1)


"scott" wrote in message
...
I'm trying to test a cell to return a blank "" or the number. If cell B3
contains nothing, how can i return a blank?

i'm using below formula, but it gives me an error.

=IF(IS NULL(B3),"",B3)




  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Scott

Maybe =IF(ISBLANK(B3),"",B3)

Note: if B3 is blank due to its having an IF formula that returns "", it will
pass the ISBLANK test, so ISBLANK is not really NULL.


Gord Dibben Excel MVP

On Mon, 3 Jan 2005 11:06:13 -0600, "scott" wrote:

I'm trying to test a cell to return a blank "" or the number. If cell B3
contains nothing, how can i return a blank?

i'm using below formula, but it gives me an error.

=IF(IS NULL(B3),"",B3)


  #4   Report Post  
Dave R.
 
Posts: n/a
Default

"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Maybe =IF(ISBLANK(B3),"",B3)

Note: if B3 is blank due to its having an IF formula that returns "", it

will
pass the ISBLANK test, so ISBLANK is not really NULL.



Do you mean to say that it will FAIL the ISBLANK test?






  #5   Report Post  
Myrna Larson
 
Posts: n/a
Default

If you check help, you'll not find (1) any functions that consist of two words
separated by a space, or (2) any function involving NULL. Maybe you are
thinking of VBA.

The worksheet function is ISBLANK (note one word, not 2).

On Mon, 3 Jan 2005 11:06:13 -0600, "scott" wrote:

I'm trying to test a cell to return a blank "" or the number. If cell B3
contains nothing, how can i return a blank?

i'm using below formula, but it gives me an error.

=IF(IS NULL(B3),"",B3)




  #6   Report Post  
scott
 
Posts: n/a
Default

why does iif combined with is null fail?


"Dave R." wrote in message
...
Try this changing A1 to B3:

=OR(ISBLANK(A1),A1="")

=IF(OR(ISBLANK(A1),A1=""),"",A1)


"scott" wrote in message
...
I'm trying to test a cell to return a blank "" or the number. If cell B3
contains nothing, how can i return a blank?

i'm using below formula, but it gives me an error.

=IF(IS NULL(B3),"",B3)






  #7   Report Post  
JE McGimpsey
 
Posts: n/a
Default

is null is not an XL function...

You could also just use

=IF(B3="","",B3)



In article ,
"scott" wrote:

why does iif combined with is null fail?

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
Printing Problem kimmyrt New Users to Excel 3 January 26th 05 08:55 PM
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM
how to enter a null cell value in a formula Using formulas to enter NULL cell values Excel Worksheet Functions 5 December 16th 04 03:29 AM
Paper Tray selection Problem, Michael Hoffmann Excel Discussion (Misc queries) 4 December 3rd 04 09:08 PM
label problem Raven Maniac Excel Worksheet Functions 5 November 10th 04 10:10 PM


All times are GMT +1. The time now is 06:39 PM.

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

About Us

"It's about Microsoft Excel"