Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Sumproduct using date

I am trying desperately to get sumproduct to work. I need to get sum of
hours before a certain date and hours after a certain date.

Here's what I'm trying to do:
IF Sheet2 A2:A50 = Sheet1 A2 (customer name match)
IF Sheet2 C2:C50 <= Sheet1 C4 (this is date, i.e. 03-2006)
Then sum up Sheet2 G2:G50 (this is hours worked)

Sometimes the formula works, sometimes it displays a 0.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default Sumproduct using date

You mention 2 dates but show only one. Does 03-2006 mean March 1, 2006 or
March 31, 2006. Where is the second date?

Tyro

"jhicsupt" wrote in message
...
I am trying desperately to get sumproduct to work. I need to get sum of
hours before a certain date and hours after a certain date.

Here's what I'm trying to do:
IF Sheet2 A2:A50 = Sheet1 A2 (customer name match)
IF Sheet2 C2:C50 <= Sheet1 C4 (this is date, i.e. 03-2006)
Then sum up Sheet2 G2:G50 (this is hours worked)

Sometimes the formula works, sometimes it displays a 0.

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Sumproduct using date

Yes, means March 1, 2006

IF Sheet2 C2:C50 <= Sheet1 C4 (this is date, i.e. 03-2006)

Sheet2 C2:C50 has multiple dates. If date is <= 3/1/2006, then add hours in
column G.

Sheet1 C4 has 03-2006

"Tyro" wrote:

You mention 2 dates but show only one. Does 03-2006 mean March 1, 2006 or
March 31, 2006. Where is the second date?

Tyro

"jhicsupt" wrote in message
...
I am trying desperately to get sumproduct to work. I need to get sum of
hours before a certain date and hours after a certain date.

Here's what I'm trying to do:
IF Sheet2 A2:A50 = Sheet1 A2 (customer name match)
IF Sheet2 C2:C50 <= Sheet1 C4 (this is date, i.e. 03-2006)
Then sum up Sheet2 G2:G50 (this is hours worked)

Sometimes the formula works, sometimes it displays a 0.

Thanks in advance.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default Sumproduct using date

Try this

=SUMPRODUCT((Sheet2!A2:A50=Sheet1!A2)*(Sheet2!C2:C 50<=Sheet1!C4)*Sheet2!G2:G50)

Tyro

"jhicsupt" wrote in message
...
Yes, means March 1, 2006

IF Sheet2 C2:C50 <= Sheet1 C4 (this is date, i.e. 03-2006)

Sheet2 C2:C50 has multiple dates. If date is <= 3/1/2006, then add hours
in
column G.

Sheet1 C4 has 03-2006

"Tyro" wrote:

You mention 2 dates but show only one. Does 03-2006 mean March 1, 2006 or
March 31, 2006. Where is the second date?

Tyro

"jhicsupt" wrote in message
...
I am trying desperately to get sumproduct to work. I need to get sum of
hours before a certain date and hours after a certain date.

Here's what I'm trying to do:
IF Sheet2 A2:A50 = Sheet1 A2 (customer name match)
IF Sheet2 C2:C50 <= Sheet1 C4 (this is date, i.e. 03-2006)
Then sum up Sheet2 G2:G50 (this is hours worked)

Sometimes the formula works, sometimes it displays a 0.

Thanks in advance.







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
SUMPRODUCT with Date() -60 David Excel Worksheet Functions 3 January 3rd 08 09:47 PM
Sumproduct by date heater Excel Discussion (Misc queries) 4 March 22nd 06 08:10 PM
Use SUMPRODUCT with a Date msbutton27 Excel Discussion (Misc queries) 1 January 26th 06 04:30 AM
if, sumproduct, help by date Jim Excel Worksheet Functions 3 January 20th 06 10:42 PM
if, sumproduct, help by date Jim Excel Worksheet Functions 0 January 20th 06 07:37 PM


All times are GMT +1. The time now is 07:46 AM.

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

About Us

"It's about Microsoft Excel"