A           B
TOTAL       =SUM(B3:B)
Entry1      =IF($A3="Entry1","20",IF($A3="Entry2","170", IF($A3="Entry3","10")))
Entry2      =IF($A4="Entry1","20",IF($A4="Entry2","170", IF($A4="Entry3","10")))
Entry3      =IF($A5="Entry1","20",IF($A5="Entry2","170", IF($A5="Entry3","10")))

The values in column B are properly displayed (respectively "20", "170" and "10"). But the SUM function in B2 returns 0... why?

1 Answer 1


Just unquote your numbers like this:

=IF($A3="Entry1",20,IF($A3="Entry2",170, IF($A3="Entry3",10)))

Otherwise it treats the numbers like text.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.