Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Nested "If formula" - returns zero when reference cell is empty

In cell A I can have one of three things... a blank cell, a cell value
of zero or a cell value greater than zero. Depending on which value
is in cell A1 I want the value in cell B1 to be the following:

A1 is greater than zero - B1 should =A1 plus 1

A1 is equal to zero - B1 should = 0

A1 is empty = B1 should be empty

Shown below is the nested "if formula' I wrote. The problem is when
A1 is empty a zero is displayed in B1. In this senario I want cell B1
to be blank. I know I can suppress zero values from displaying but
that affects the whole woksheet and I don't want that.


=IF(A10,A1+1,IF(A1=0,"0",IF(A1="","")))

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default Nested "If formula" - returns zero when reference cell is empty

On Mar 2, 8:49 am, wrote:
In cell A I can have one of three things... a blank cell, a cell value
of zero or a cell value greater than zero. Depending on which value
is in cell A1 I want the value in cell B1 to be the following:

A1 is greater than zero - B1 should =A1 plus 1

A1 is equal to zero - B1 should = 0

A1 is empty = B1 should be empty

Shown below is the nested "if formula' I wrote. The problem is when
A1 is empty a zero is displayed in B1. In this senario I want cell B1
to be blank. I know I can suppress zero values from displaying but
that affects the whole woksheet and I don't want that.

=IF(A10,A1+1,IF(A1=0,"0",IF(A1="","")))


=IF(A10,A1+1,IF(A1="","",0))

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Nested "If formula" - returns zero when reference cell is empty

=IF(A10,A1+1,IF(A1="","",IF(A1=0,A1,"")))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



wrote in message
ups.com...
In cell A I can have one of three things... a blank cell, a cell value
of zero or a cell value greater than zero. Depending on which value
is in cell A1 I want the value in cell B1 to be the following:

A1 is greater than zero - B1 should =A1 plus 1

A1 is equal to zero - B1 should = 0

A1 is empty = B1 should be empty

Shown below is the nested "if formula' I wrote. The problem is when
A1 is empty a zero is displayed in B1. In this senario I want cell B1
to be blank. I know I can suppress zero values from displaying but
that affects the whole woksheet and I don't want that.


=IF(A10,A1+1,IF(A1=0,"0",IF(A1="","")))



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
Leave "formula cell J7" empty until H7 has a date. Mark Excel Discussion (Misc queries) 2 May 21st 10 07:13 AM
Need formula like ISBLANK that returns "no value" even if there is aformula in referenced cell insitedge Excel Worksheet Functions 1 May 7th 08 01:27 PM
a formula that leaves cell "empty"? sarahmross Excel Worksheet Functions 6 November 11th 05 06:17 AM
For Each Next returns "Empty" when Data in Cell Matt Roberts Excel Programming 2 November 8th 05 02:18 PM
Have empty cell unless result of formula isn't value of "0"? StargateFanFromWork[_3_] Excel Programming 19 August 31st 05 05:29 PM


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