Addition & multiplication formula

V

Vi

I have added a column of numbers using the following formula so the total
cell will be zero if there is nothing in the column:
=IF(count(F8:F26),SUM(F8:F26),""

Now I want to multiply that total by cell F27 and put the total in cell F28.
Again, if the total is zero, I want the cell to be blank.

Please help
 
H

HKaplan

Why the complicated formula?

=sum(F8:F26) will return 0 if F8:F26 is empty anyway. You don't need
to test for cells with data.
 
P

PCLIVE

On way:

=IF(IF(COUNT(F8:F26),SUM(F8:F26)*F27,"")=0,"",IF(COUNT(F8:F26),SUM(F8:F26)*F27,""))

HTH,
Paul
 
V

Vi

I don't want the zero to show up because it is on a form that we print out
and some people fill it out by hand instead of on the computer.
 
H

HKaplan

Go to Tools | Options, and uncheck the zero values in the View tab.
Then zero values will all be blank.
 
V

Vi

This did not work - it did not give me an answer at all when there was
something in the column.
 
H

HKaplan

Try simplifying the formula as I suggested, leaving out the count
statement. =sum(A1:A20) is all you need to total a column. If the
answer is zero, then the cell will be blank.
 
D

David Biddulph

You'll need to tell us what non-standard settings you are using. By
default, that would return zero. Perhaps you have display of zeroes
suppressed?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top