Summing up rows that only have all the values

R

Rob

Can you help please, I need a formula to add up the values in a row, but only
if the row has a complete set of values
e.g for a row containing the following values I would expect the following
answers

20 22 20 25 21 = 108
19 20 21 20 = "blank"
 
J

Jacob Skaria

Use the IF condition

=IF(COUNT(A1:E1)=5,SUM(A1:E1),"Blank")

If this post helps click Yes
 
J

Jacob Skaria

Revised one...You dont need to specify the no of columns

=IF(COUNT(A16:E16)=COLUMNS(A16:E16),SUM(A16:E16),"Blank")

If this post helps click Yes
 
R

Rob

Worked a treat thank you

Jacob Skaria said:
Revised one...You dont need to specify the no of columns

=IF(COUNT(A16:E16)=COLUMNS(A16:E16),SUM(A16:E16),"Blank")

If this post helps click Yes
 

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