Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default 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"

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default 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"

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default 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"

  #4   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default 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"

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing data in mult rows then summing unique values Cathy Landry Excel Discussion (Misc queries) 2 March 17th 09 11:27 PM
Summing rows based on other column values jonny Excel Worksheet Functions 7 January 28th 09 11:45 PM
Summing values, x rows deep, depending on a criterion klm[_2_] Excel Worksheet Functions 2 August 18th 08 02:02 PM
Finding Most Recent Values in Col1 -- Summing Matching Values Rothman Excel Discussion (Misc queries) 5 December 20th 07 08:19 PM
summing values in one row based on values in another row Bert Excel Worksheet Functions 6 June 26th 06 09:43 PM


All times are GMT +1. The time now is 05:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"