ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF= Cells not totaling (https://www.excelbanter.com/excel-worksheet-functions/95089-if%3D-cells-not-totaling.html)

Bradley

IF= Cells not totaling
 
Hey all,
I've got a column of equations [=IF(B3="S","3","")] that gives me 3's
in each cell. When I go to AutoSum the column, I get a "0", not the
total of 3's. This should be really simple. I want to add up what's
showing in the cells, NOT the formula.

Help?

TIA!
-b

[email protected]

IF= Cells not totaling
 
Bradley wrote:
I've got a column of equations [=IF(B3="S","3","")] that gives me 3's
in each cell. When I go to AutoSum the column, I get a "0", not the
total of 3's.


You should write:

=if(B3="S", 3, "")

No quotes around 3. "3" with quotes is the string 3. 3 without quotes
is the number 3.


Bradley

IF= Cells not totaling
 
Bradley wrote:
Hey all,
I've got a column of equations [=IF(B3="S","3","")] that gives me
3's in each cell. When I go to AutoSum the column, I get a "0", not the
total of 3's. This should be really simple. I want to add up what's
showing in the cells, NOT the formula.

Help?

TIA!
-b

DOH! Got to change the "3" to 3. It was being read as a string....

-b

Bearacade

IF= Cells not totaling
 

Put this in your formula instead

=IF(B3="S",3,"")


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=553845


CLR

IF= Cells not totaling
 
use either
=IF(B3="S",3,"").........preferred
or
=IF(B3="S","3","")*1

Vaya con Dios,
Chuck, CABGx3




"Bradley" wrote in message
. ..
Hey all,
I've got a column of equations [=IF(B3="S","3","")] that gives me 3's
in each cell. When I go to AutoSum the column, I get a "0", not the
total of 3's. This should be really simple. I want to add up what's
showing in the cells, NOT the formula.

Help?

TIA!
-b





All times are GMT +1. The time now is 11:20 AM.

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