ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Confusing Problem (https://www.excelbanter.com/excel-discussion-misc-queries/99160-confusing-problem.html)

Cincy

Confusing Problem
 

I have a cell with an equation:

[=sum(if(sheet1A1:A100,1,0))]

in sheet1 cells A1:A10, I have a second equations that says:

=if(B1=0,"",C1)

The problem is the first sum function counts the cells with the "" as
being a number that is greater than zero.

However, if I manually delete the information in the cells that had a
"" entered from the second equation, I noticed it does not count the
cell as being greater than zero.

Why does Excel consider the value of a cell to be greater than zero
when the contents of the cell are blank from the second equation.

How do I get Excel to not consider this to be greater than zero?


--
Cincy
------------------------------------------------------------------------
Cincy's Profile: http://www.excelforum.com/member.php...o&userid=35172
View this thread: http://www.excelforum.com/showthread...hreadid=561217


Bob Phillips

Confusing Problem
 
Try

=SUM(IF((Sheet1!A1:A100)*(Sheet1!A1:A10<""),1,0) )

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Cincy" wrote in
message ...

I have a cell with an equation:

[=sum(if(sheet1A1:A100,1,0))]

in sheet1 cells A1:A10, I have a second equations that says:

=if(B1=0,"",C1)

The problem is the first sum function counts the cells with the "" as
being a number that is greater than zero.

However, if I manually delete the information in the cells that had a
"" entered from the second equation, I noticed it does not count the
cell as being greater than zero.

Why does Excel consider the value of a cell to be greater than zero
when the contents of the cell are blank from the second equation.

How do I get Excel to not consider this to be greater than zero?


--
Cincy
------------------------------------------------------------------------
Cincy's Profile:

http://www.excelforum.com/member.php...o&userid=35172
View this thread: http://www.excelforum.com/showthread...hreadid=561217




RagDyeR

Confusing Problem
 
Have you tried:

=COUNTIF(SHEET1!A1:A10,"0")
?
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Cincy" wrote in
message ...

I have a cell with an equation:

[=sum(if(sheet1A1:A100,1,0))]

in sheet1 cells A1:A10, I have a second equations that says:

=if(B1=0,"",C1)

The problem is the first sum function counts the cells with the "" as
being a number that is greater than zero.

However, if I manually delete the information in the cells that had a
"" entered from the second equation, I noticed it does not count the
cell as being greater than zero.

Why does Excel consider the value of a cell to be greater than zero
when the contents of the cell are blank from the second equation.

How do I get Excel to not consider this to be greater than zero?


--
Cincy
------------------------------------------------------------------------
Cincy's Profile:
http://www.excelforum.com/member.php...o&userid=35172
View this thread: http://www.excelforum.com/showthread...hreadid=561217




All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com