ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   AUTOSUM WON'T CALCULATE (https://www.excelbanter.com/excel-worksheet-functions/221087-autosum-wont-calculate.html)

Lori

AUTOSUM WON'T CALCULATE
 
I have a column with the following formula in each cell. The formula
calculates correctly, but when I try to autosum or even enter =sum(z1.z100)
it keeps returning a 0 value.
=IF(Y2=1,"1099.23",IF(Y2=2,"824.42", IF(Y2=3,"100.00")))

I have about 1800 lines to add! Any suggestions?
Thanks!


Dave Peterson

AUTOSUM WON'T CALCULATE
 
Your values are text--not numbers:

=IF(Y2=1,1099.23,IF(Y2=2,824.42, IF(Y2=3,100.00)))

(dropped the "'s.)

And didn't you miss the else portion of the last =if() function.

Lori wrote:

I have a column with the following formula in each cell. The formula
calculates correctly, but when I try to autosum or even enter =sum(z1.z100)
it keeps returning a 0 value.
=IF(Y2=1,"1099.23",IF(Y2=2,"824.42", IF(Y2=3,"100.00")))

I have about 1800 lines to add! Any suggestions?
Thanks!


--

Dave Peterson

John[_22_]

AUTOSUM WON'T CALCULATE
 
HI Lori
Try removing your double quotes around the numbers
e.g.=IF(Y2=1,1099.23,IF(Y2=2,824.42, IF(Y2=3,100.00))

HTH
John
"Lori" wrote in message
...
I have a column with the following formula in each cell. The formula
calculates correctly, but when I try to autosum or even enter =sum(z1.z100)
it keeps returning a 0 value.
=IF(Y2=1,"1099.23",IF(Y2=2,"824.42", IF(Y2=3,"100.00")))

I have about 1800 lines to add! Any suggestions?
Thanks!



Shane Devenshire[_2_]

AUTOSUM WON'T CALCULATE
 
If you want to leave the quotes around the number then replace the SUM
formula with

=SUMPRODUCT(--Z1:Z100)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Lori" wrote:

I have a column with the following formula in each cell. The formula
calculates correctly, but when I try to autosum or even enter =sum(z1.z100)
it keeps returning a 0 value.
=IF(Y2=1,"1099.23",IF(Y2=2,"824.42", IF(Y2=3,"100.00")))

I have about 1800 lines to add! Any suggestions?
Thanks!



All times are GMT +1. The time now is 09:16 AM.

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