Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
randys
 
Posts: n/a
Default Conditional sum of columns

If I have 1 row with 5 columns of data, how do I conditionally sum the
columns based on whether the column is greater than a value in another
separate cell? For example,

A B C D E
5 32 16 22 6 89
6
7 3


I only want to sum A5:E5 if the column is greater than the contents of A7.
In this example, the answer would be (6+89)=95. If A7=1, then the answer
would be (16+22+6+89)=133.

  #2   Report Post  
bj
 
Posts: n/a
Default

=sumif(A1:E1,""&A7)

"randys" wrote:

If I have 1 row with 5 columns of data, how do I conditionally sum the
columns based on whether the column is greater than a value in another
separate cell? For example,

A B C D E
5 32 16 22 6 89
6
7 3


I only want to sum A5:E5 if the column is greater than the contents of A7.
In this example, the answer would be (6+89)=95. If A7=1, then the answer
would be (16+22+6+89)=133.

  #3   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=IF(A7<"",SUM(INDEX(A5:E5,A7+1):E5),"")

Note that the formula sums all columns when A7 equals 0.

Hope this helps!

In article ,
randys wrote:

If I have 1 row with 5 columns of data, how do I conditionally sum the
columns based on whether the column is greater than a value in another
separate cell? For example,

A B C D E
5 32 16 22 6 89
6
7 3


I only want to sum A5:E5 if the column is greater than the contents of A7.
In this example, the answer would be (6+89)=95. If A7=1, then the answer
would be (16+22+6+89)=133.

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
Columns FemIce Excel Discussion (Misc queries) 1 September 28th 05 09:29 AM
How do I Double Conditional vlookup for 3 columns? engilo Excel Worksheet Functions 4 June 7th 05 06:13 PM
EXCEL 2003: Apply Conditional Formatting to COLUMNS HWDFWXCLGuru Excel Worksheet Functions 3 April 1st 05 04:31 PM
Conditional Format ... Compare Columns? Ken Excel Discussion (Misc queries) 5 March 25th 05 09:19 AM
conditional formating of group of columns and rows Madhav Excel Worksheet Functions 0 March 8th 05 06:21 PM


All times are GMT +1. The time now is 10:08 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"