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

I am trying to compare two dates, but we allow a five day grace period from
the due date, so as long as the part is delivered within 5 days of the due
date its considered on time.

How do I tell Sumproduct that I want to compare the scheduled date + 5 days
to the delivered date?
Here is the formula
=SUMPRODUCT(--(DATA!$AE$2:$AE$7500=R6),--(DATA!$X$2:$X$7500<DATA!$Y$2:$Y$7500))

DATA!AE:AE is just the vendor code
DATA!X:X is the scheduled delivery date (I need this date +5)
DATA!Y:Y is the actual delivery date

When I try
=SUMPRODUCT(--(DATA!$AE$2:$AE$7500=R6),--((DATA!$X$2:$X$7500)+5<DATA!$Y$2:$Y$7500)) in any way, I just get a #VALUE error.


Sample data - Notice the 3rd one down was late but within the 5 day grace
period. This one should be counted as on time instead of late.
X Y
05/04/09 06/05/09
04/22/09 05/05/09
05/04/09 05/05/09
04/22/09 04/16/09
04/22/09 05/27/09
05/29/09 05/27/09
04/22/09 05/05/09
04/13/09 04/03/09
04/22/09 05/19/09
06/10/09 05/22/09
04/17/09 05/20/09


Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sumproduct with variation

Not real sure what result you're looking for but your formula works for me.
Based on the posted sample data and assuming those dates are all for the
same vendor the formula returns 6.

X = being counted:

05/04/09 06/05/09 X
04/22/09 05/05/09 X
05/04/09 05/05/09
04/22/09 04/16/09
04/22/09 05/27/09 X
05/29/09 05/27/09
04/22/09 05/05/09 X
04/13/09 04/03/09
04/22/09 05/19/09 X
06/10/09 05/22/09
04/17/09 05/20/09 X

What result do you expect?

--
Biff
Microsoft Excel MVP


"Qikslvr" wrote in message
...
I am trying to compare two dates, but we allow a five day grace period from
the due date, so as long as the part is delivered within 5 days of the due
date its considered on time.

How do I tell Sumproduct that I want to compare the scheduled date + 5
days
to the delivered date?
Here is the formula
=SUMPRODUCT(--(DATA!$AE$2:$AE$7500=R6),--(DATA!$X$2:$X$7500<DATA!$Y$2:$Y$7500))

DATA!AE:AE is just the vendor code
DATA!X:X is the scheduled delivery date (I need this date +5)
DATA!Y:Y is the actual delivery date

When I try
=SUMPRODUCT(--(DATA!$AE$2:$AE$7500=R6),--((DATA!$X$2:$X$7500)+5<DATA!$Y$2:$Y$7500))
in any way, I just get a #VALUE error.


Sample data - Notice the 3rd one down was late but within the 5 day grace
period. This one should be counted as on time instead of late.
X Y
05/04/09 06/05/09
04/22/09 05/05/09
05/04/09 05/05/09
04/22/09 04/16/09
04/22/09 05/27/09
05/29/09 05/27/09
04/22/09 05/05/09
04/13/09 04/03/09
04/22/09 05/19/09
06/10/09 05/22/09
04/17/09 05/20/09


Thanks,



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
Using some variation of int or trunc april Excel Discussion (Misc queries) 1 August 10th 09 09:44 PM
Variation on If Then Else Theme DubboPete Excel Discussion (Misc queries) 2 April 17th 09 03:17 AM
Sumproduct-Countif variation yshridhar Excel Worksheet Functions 4 November 16th 07 06:32 AM
Variation from the mean? Greenwich_Man Charts and Charting in Excel 1 September 25th 07 03:14 PM
SUMIF variation? Bob Newman Excel Worksheet Functions 8 June 18th 06 09:13 PM


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