ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Summing up rows that only have all the values (https://www.excelbanter.com/excel-discussion-misc-queries/225988-summing-up-rows-only-have-all-values.html)

Rob

Summing up rows that only have all the values
 
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"


Jacob Skaria

Summing up rows that only have all the values
 
Use the IF condition

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

If this post helps click Yes
---------------
Jacob Skaria


"Rob" wrote:

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"


Jacob Skaria

Summing up rows that only have all the values
 
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
---------------
Jacob Skaria


"Rob" wrote:

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"


Rob

Summing up rows that only have all the values
 
Worked a treat thank you

"Jacob Skaria" wrote:

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
---------------
Jacob Skaria


"Rob" wrote:

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"



All times are GMT +1. The time now is 03:12 PM.

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