Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Sumproduct conditional with dates

Name Project Date Hours
Carl Project2 1/2/2006 8
Carl Project2 1/3/2006 8
Carl Project2 1/4/2006 8
Jim Project2 2/2/2006 8
Jim Project2 1/2/2006 -8
Carl Project1 2/2/2006 8

Given the above, I am trying to get a cell to sum the hours for a given
person in a particular month. This is driving me crazy! This is a large
table of data.

The rsult I would like to see

Name Jan Feb Mar ETC
Carl 24 8 16 ETC
Jim 8 16 24 ETC

Can someone help me with this?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Sumproduct conditional with dates

FYI, I tried this =SUMPRODUCT(--(MONTH(C2:C9)=1),--(A1:A10="Carl"),D2:D15)
and I get a value error.

"Carl" wrote:

Name Project Date Hours
Carl Project2 1/2/2006 8
Carl Project2 1/3/2006 8
Carl Project2 1/4/2006 8
Jim Project2 2/2/2006 8
Jim Project2 1/2/2006 -8
Carl Project1 2/2/2006 8

Given the above, I am trying to get a cell to sum the hours for a given
person in a particular month. This is driving me crazy! This is a large
table of data.

The rsult I would like to see

Name Jan Feb Mar ETC
Carl 24 8 16 ETC
Jim 8 16 24 ETC

Can someone help me with this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Sumproduct conditional with dates

Carl,

Try making the size of your arrays match:

=SUMPRODUCT(--(MONTH(C2:C9)=1),--(A2:A9="Carl"),D2:D9)

Tim C

"Carl" wrote in message
...
FYI, I tried this =SUMPRODUCT(--(MONTH(C2:C9)=1),--(A1:A10="Carl"),D2:D15)
and I get a value error.

"Carl" wrote:

Name Project Date Hours
Carl Project2 1/2/2006 8
Carl Project2 1/3/2006 8
Carl Project2 1/4/2006 8
Jim Project2 2/2/2006 8
Jim Project2 1/2/2006 -8
Carl Project1 2/2/2006 8

Given the above, I am trying to get a cell to sum the hours for a given
person in a particular month. This is driving me crazy! This is a large
table of data.

The rsult I would like to see

Name Jan Feb Mar ETC
Carl 24 8 16 ETC
Jim 8 16 24 ETC

Can someone help me with this?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Sumproduct conditional with dates

That did it! LOL, simple stuff, but man it is a big aggrevation!

"Tim C" wrote:

Carl,

Try making the size of your arrays match:

=SUMPRODUCT(--(MONTH(C2:C9)=1),--(A2:A9="Carl"),D2:D9)

Tim C

"Carl" wrote in message
...
FYI, I tried this =SUMPRODUCT(--(MONTH(C2:C9)=1),--(A1:A10="Carl"),D2:D15)
and I get a value error.

"Carl" wrote:

Name Project Date Hours
Carl Project2 1/2/2006 8
Carl Project2 1/3/2006 8
Carl Project2 1/4/2006 8
Jim Project2 2/2/2006 8
Jim Project2 1/2/2006 -8
Carl Project1 2/2/2006 8

Given the above, I am trying to get a cell to sum the hours for a given
person in a particular month. This is driving me crazy! This is a large
table of data.

The rsult I would like to see

Name Jan Feb Mar ETC
Carl 24 8 16 ETC
Jim 8 16 24 ETC

Can someone help me with this?




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Sumproduct conditional with dates

Does this make it more simple?

Say your *original* datalist is on Sheet1, with labels in Row1 and:
Names in Column A
Project in Column B
Dates in Column C, entered as *true XL dates*
Hours in Column D, entered as numbers

Your "Results" list is on another sheet, with labels in Row1 and:
Names in Column A
Jan to Dec in Columns B to M, entered as *text*.

Enter this formula in B2, and copy across to M2,
then copy down as needed:

=SUMPRODUCT((Sheet1!$A$2:$A$100=$A2)*(TEXT(Sheet1! $C$2:$C$100,"mmm")=B$1)*Sheet1!$D$2:$D$100)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Carl" wrote in message
...
That did it! LOL, simple stuff, but man it is a big aggrevation!

"Tim C" wrote:

Carl,

Try making the size of your arrays match:

=SUMPRODUCT(--(MONTH(C2:C9)=1),--(A2:A9="Carl"),D2:D9)

Tim C

"Carl" wrote in message
...
FYI, I tried this
=SUMPRODUCT(--(MONTH(C2:C9)=1),--(A1:A10="Carl"),D2:D15)
and I get a value error.

"Carl" wrote:

Name Project Date Hours
Carl Project2 1/2/2006 8
Carl Project2 1/3/2006 8
Carl Project2 1/4/2006 8
Jim Project2 2/2/2006 8
Jim Project2 1/2/2006 -8
Carl Project1 2/2/2006 8

Given the above, I am trying to get a cell to sum the hours for a
given
person in a particular month. This is driving me crazy! This is a
large
table of data.

The rsult I would like to see

Name Jan Feb Mar ETC
Carl 24 8 16 ETC
Jim 8 16 24 ETC

Can someone help me with this?







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Sumproduct conditional with dates

THANK YOU VERY MUCH

"Tim C" wrote:

Carl,

Try making the size of your arrays match:

=SUMPRODUCT(--(MONTH(C2:C9)=1),--(A2:A9="Carl"),D2:D9)

Tim C

"Carl" wrote in message
...
FYI, I tried this =SUMPRODUCT(--(MONTH(C2:C9)=1),--(A1:A10="Carl"),D2:D15)
and I get a value error.

"Carl" wrote:

Name Project Date Hours
Carl Project2 1/2/2006 8
Carl Project2 1/3/2006 8
Carl Project2 1/4/2006 8
Jim Project2 2/2/2006 8
Jim Project2 1/2/2006 -8
Carl Project1 2/2/2006 8

Given the above, I am trying to get a cell to sum the hours for a given
person in a particular month. This is driving me crazy! This is a large
table of data.

The rsult I would like to see

Name Jan Feb Mar ETC
Carl 24 8 16 ETC
Jim 8 16 24 ETC

Can someone help me with this?




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
conditional formatting using dates creynolds Excel Discussion (Misc queries) 1 August 8th 06 12:30 AM
Conditional sumproduct? rahirah New Users to Excel 1 January 11th 06 10:46 PM
Conditional Formatting & Dates? Nat Excel Discussion (Misc queries) 5 August 10th 05 10:26 AM
Automatic updating of Conditional Formats using dates MAD Excel Worksheet Functions 5 May 3rd 05 04:44 AM
conditional formatting overdue dates Joooooooo Excel Discussion (Misc queries) 1 February 7th 05 01:14 PM


All times are GMT +1. The time now is 05:48 AM.

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"