A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sumproduct but only first time corresponding value is seen e.g. un



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 05:35 PM posted to microsoft.public.excel.worksheet.functions
ker_01
external usenet poster
 
Posts: 87
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  
Old March 18th, 2010, 06:20 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Sumproduct but only first time corresponding value is seen e.g. un

Try this array formula** :

=SUM(IF(FREQUENCY(IF(D25="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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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