Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 395
Default Sumproduct but only first time corresponding value is seen e.g. un

Using XL03

Sample Data:

Name Race Speed Avg Speed Track Month
Joe 2:12 2:15 OFCF Jan
Joe 2:28 2:15 ADL Feb
Mary 2:14 2:07 ADL Jan
Joe 2:15 2:15 ADL Feb
etc

I already have sumproducts in place to count how many participants raced in
each month, how many at each track, etc.

The last piece I need to add is the number of people for a given track on a
given month, who had an /average/ time of over 2 minutes. But, I have
repeats- the same person can run a track more than once in the same month, so
their average comes across more than once and skews the total count.

Is there a straightforward way to only count the "unique" value combinations
(first time for combo of person, track, month) and ignore all subsequent
races by that person on the same track/month in the sumproduct count?

Thank you!
Keith
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumproduct but only first time corresponding value is seen e.g. un

Try this array formula** :

=SUM(IF(FREQUENCY(IF(D2:D5="ADL",IF(E2:E5="Feb",IF (C2:C5TIME(0,2,0),MATCH(A2:A5,A2:A5,0)))),ROW(A2: A5)-ROW(A2)+1),1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"ker_01" wrote in message
...
Using XL03

Sample Data:

Name Race Speed Avg Speed Track Month
Joe 2:12 2:15 OFCF Jan
Joe 2:28 2:15 ADL Feb
Mary 2:14 2:07 ADL Jan
Joe 2:15 2:15 ADL Feb
etc

I already have sumproducts in place to count how many participants raced
in
each month, how many at each track, etc.

The last piece I need to add is the number of people for a given track on
a
given month, who had an /average/ time of over 2 minutes. But, I have
repeats- the same person can run a track more than once in the same month,
so
their average comes across more than once and skews the total count.

Is there a straightforward way to only count the "unique" value
combinations
(first time for combo of person, track, month) and ignore all subsequent
races by that person on the same track/month in the sumproduct count?

Thank you!
Keith



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 & nagetive time Dale G[_2_] New Users to Excel 7 August 17th 08 08:24 PM
Time Sheet - Hlookup, Index, SumProduct or what? robert morris Excel Discussion (Misc queries) 5 June 6th 08 06:11 AM
Sumproduct with date and time? James Excel Discussion (Misc queries) 1 September 21st 07 03:56 AM
Sumproduct with date and time? James Excel Discussion (Misc queries) 0 September 21st 07 01:56 AM
SUMProduct working most of the time... James Excel Discussion (Misc queries) 3 March 21st 07 02:17 PM


All times are GMT +1. The time now is 01:39 PM.

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"