Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mindfunk
 
Posts: n/a
Default Telling the difference between zero and blank in IF statement

I have an IF statement that needs to chooses the range of cells from which to
perform a calculation based on whether or not a certain cell has a value.
There are times when the value in this cell needs to be Zero. The problem
is, Excel treats 0, "0" as a blank (as in =0, ="0"). It worked when I
turned the cell containing the key value to text, but then another formula
reading this cell doesn't work. Help!
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(ISBLANK(A1),"",IF(A1=0,"Yes","No"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"mindfunk" wrote in message
...
I have an IF statement that needs to chooses the range of cells from which

to
perform a calculation based on whether or not a certain cell has a value.
There are times when the value in this cell needs to be Zero. The problem
is, Excel treats 0, "0" as a blank (as in =0, ="0"). It worked when I
turned the cell containing the key value to text, but then another formula
reading this cell doesn't work. 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



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