Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Formula to sum multiple columns on multiple criteria

I have split up my data in the following manner:
A B C D E
8 8 4:30
8 9 8:10 0:00 3:25
9 9 3:05
9 9 49:45
9 9 143:20
9 9 8:00
9 9 1:45
9 9 7:35
9 9 149:15
9 9 14:55
9 10 150:55 0:00 40:25
10 10 17:15

The first two columns represent months and the next three represent
downtime. I have split up the downtime where it overlaps between months.
Column C has downtime in with respect to the same row and for the month in
column A. Column E is with respect to Column B for the same row. What I need
to do is add these three clomns together based on an observation date I enter
in a different sheet. I was trying;
Obs. date Start End

sumproduct(--(A1:A1000=month(Start)),--(A1:A1000<=month(End)),(C1:C1000))+sumproduct(--(A1:A1000=month(Start)),--(A1:A1000<=month(End)),(D1:D1000))+sumproduct(--(A1:A1000=month(Start)),--(A1:A1000<=month(End)),(E1:E1000))

but this is grabbing more colums than I want, also it is a very long formula
and I need to replicate this formula for 15 worksheets. Any help would be
great.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Formula to sum multiple columns on multiple criteria

=SUMPRODUCT(--(A1:A1000=MONTH(start)),--(A1:A1000<=MONTH(end)),C1:C1000)
+SUMPRODUCT(--(A1:A1000=MONTH(start)),--(A1:A1000<=MONTH(end)),D1:D1000)
+SUMPRODUCT(--(B1:B1000=MONTH(start)),--(B1:B1000<=MONTH(end)),E1:E1000)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"vito" wrote in message
...
I have split up my data in the following manner:
A B C D E
8 8 4:30
8 9 8:10 0:00 3:25
9 9 3:05
9 9 49:45
9 9 143:20
9 9 8:00
9 9 1:45
9 9 7:35
9 9 149:15
9 9 14:55
9 10 150:55 0:00 40:25
10 10 17:15

The first two columns represent months and the next three represent
downtime. I have split up the downtime where it overlaps between months.
Column C has downtime in with respect to the same row and for the month in
column A. Column E is with respect to Column B for the same row. What I
need
to do is add these three clomns together based on an observation date I
enter
in a different sheet. I was trying;
Obs. date Start End

sumproduct(--(A1:A1000=month(Start)),--(A1:A1000<=month(End)),(C1:C1000))+sumproduct(--(A1:A1000=month(Start)),--(A1:A1000<=month(End)),(D1:D1000))+sumproduct(--(A1:A1000=month(Start)),--(A1:A1000<=month(End)),(E1:E1000))

but this is grabbing more colums than I want, also it is a very long
formula
and I need to replicate this formula for 15 worksheets. Any help would be
great.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Formula to sum multiple columns on multiple criteria

Thanks worked great.

"Bob Phillips" wrote:

=SUMPRODUCT(--(A1:A1000=MONTH(start)),--(A1:A1000<=MONTH(end)),C1:C1000)
+SUMPRODUCT(--(A1:A1000=MONTH(start)),--(A1:A1000<=MONTH(end)),D1:D1000)
+SUMPRODUCT(--(B1:B1000=MONTH(start)),--(B1:B1000<=MONTH(end)),E1:E1000)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"vito" wrote in message
...
I have split up my data in the following manner:
A B C D E
8 8 4:30
8 9 8:10 0:00 3:25
9 9 3:05
9 9 49:45
9 9 143:20
9 9 8:00
9 9 1:45
9 9 7:35
9 9 149:15
9 9 14:55
9 10 150:55 0:00 40:25
10 10 17:15

The first two columns represent months and the next three represent
downtime. I have split up the downtime where it overlaps between months.
Column C has downtime in with respect to the same row and for the month in
column A. Column E is with respect to Column B for the same row. What I
need
to do is add these three clomns together based on an observation date I
enter
in a different sheet. I was trying;
Obs. date Start End

sumproduct(--(A1:A1000=month(Start)),--(A1:A1000<=month(End)),(C1:C1000))+sumproduct(--(A1:A1000=month(Start)),--(A1:A1000<=month(End)),(D1:D1000))+sumproduct(--(A1:A1000=month(Start)),--(A1:A1000<=month(End)),(E1:E1000))

but this is grabbing more colums than I want, also it is a very long
formula
and I need to replicate this formula for 15 worksheets. Any help would be
great.




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
Multiple Criteria and Multiple Columns MB Excel Discussion (Misc queries) 1 June 4th 07 04:28 PM
criteria in multiple columns mbparks Excel Worksheet Functions 7 April 10th 07 06:06 AM
SUMIF, One criteria multiple columns O_o Excel Discussion (Misc queries) 4 November 8th 06 12:39 AM
Countif using criteria in multiple columns ImaGina Excel Worksheet Functions 1 September 14th 06 07:31 PM
how can I have a formula result based on multiple criteria/columns nicky_p New Users to Excel 1 July 5th 06 01:45 PM


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