Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ellebelle
 
Posts: n/a
Default summing previously ranked values

hello,

i have a ranking of certain elements and the time associated with each.

set rank time
row 1 cat 1 1.5
row 2 dog 3 4
row 3 cat 3 7
row 4 cat 2 3
row 5 dog 1 1
row 6 cat 4 0 .5
row 7 dog 2 3

i want a column that returns the accumulated time already spent on that
element.

eg.
cell D4 would eaual 1.5
cell D5 would equal 0

any help really appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default summing previously ranked values

SUMPRODUCT does not accept whole column references. Specify a range...

In article ,
ellebelle wrote:

I have tried using this formula

=SUMPRODUCT(--($A:$A=A1,--($B:$B<B1)),($C:$C))


whe A = set; B = rank; and C = time

but ii get the NUM! error message.





"ellebelle" wrote:

hello,

i have a ranking of certain elements and the time associated with each.

set rank time
row 1 cat 1 1.5
row 2 dog 3 4
row 3 cat 3 7
row 4 cat 2 3
row 5 dog 1 1
row 6 cat 4 0 .5
row 7 dog 2 3

i want a column that returns the accumulated time already spent on that
element.

eg.
cell D4 would eaual 1.5
cell D5 would equal 0

any help really appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default summing previously ranked values

Try
=SUMPRODUCT(--($A1:$A100=A1),--($B1:$B100<B1),($C1:$C100))
or another specified row-range.

Sumproduct does not work on whole columns.

HTH,
Bernd

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav
 
Posts: n/a
Default summing previously ranked values


Apart from a stray bracket i would have thought the formula should work!
If you use set ranges eg a1:A????? etc it does work eg

=SUMPRODUCT(($A$1:$A$7=A2)*($B$1:$B$7<B2)*($C$1:$C $7))

Just change the 7's to the end of the range well 65535 works but 65536
does not, whether you can not use a full column i don't know

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=508043

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ellebelle
 
Posts: n/a
Default summing previously ranked values

Thanks everybody, the range was the problem.

"Dav" wrote:


Apart from a stray bracket i would have thought the formula should work!
If you use set ranges eg a1:A????? etc it does work eg

=SUMPRODUCT(($A$1:$A$7=A2)*($B$1:$B$7<B2)*($C$1:$C $7))

Just change the 7's to the end of the range well 65535 works but 65536
does not, whether you can not use a full column i don't know

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=508043


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
summing values appearing in col B when col A has been filtered choc_penguin Excel Worksheet Functions 3 February 3rd 06 11:18 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
Summing values within a range rmellison Excel Discussion (Misc queries) 7 September 2nd 05 12:43 PM
What is the best method for summing values where you want 2 value. Susan F. Excel Discussion (Misc queries) 2 March 25th 05 07:03 PM
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM


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