#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 91
Default Add largest Values

I have a list something like this

A C
2 22
3 25
4 36
11 38
9 45
4 36
5 22
2 45
5 25

I would like to Sum the values in column A according to the values in
column C

Add the 1st largest of column C
45=11
2nd largest
38=11
3rd largest
36=8
ect
when I use the =large() formula and there is more than one number, well
it doesn't work, there are 2 -45's so the 3rd largest number is 38 when
it should be the 2nd largest

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 206
Default Add largest Values

you will need an additional 3 columns for this to work

Assuming row 1 is a heading row

In column D insert this formula

=IF(COUNTIF($C$2:C2,C2)=1,RANK(C2,$C$2:$C$10,1),"" )
=IF(COUNTIF($C$2:C3,C3)=1,RANK(C3,$C$2:$C$10,1),"" )
=IF(COUNTIF($C$2:C4,C4)=1,RANK(C4,$C$2:$C$10,1),"" )
=IF(COUNTIF($C$2:C5,C5)=1,RANK(C5,$C$2:$C$10,1),"" )
=IF(COUNTIF($C$2:C6,C6)=1,RANK(C6,$C$2:$C$10,1),"" )
=IF(COUNTIF($C$2:C7,C7)=1,RANK(C7,$C$2:$C$10,1),"" )
=IF(COUNTIF($C$2:C8,C8)=1,RANK(C8,$C$2:$C$10,1),"" )
=IF(COUNTIF($C$2:C9,C9)=1,RANK(C9,$C$2:$C$10,1),"" )
=IF(COUNTIF($C$2:C10,C10)=1,RANK(C10,$C$2:$C$10,1) ,"")

In column E insert this formula

=IF(D2<"",OFFSET($C$2,MATCH(LARGE($D$2:$D$10,COUN T($D$2:D2)),$D$2:$D$10,0)-1,0),"")
=IF(D3<"",OFFSET($C$2,MATCH(LARGE($D$2:$D$10,COUN T($D$2:D3)),$D$2:$D$10,0)-1,0),"")
=IF(D4<"",OFFSET($C$2,MATCH(LARGE($D$2:$D$10,COUN T($D$2:D4)),$D$2:$D$10,0)-1,0),"")
=IF(D5<"",OFFSET($C$2,MATCH(LARGE($D$2:$D$10,COUN T($D$2:D5)),$D$2:$D$10,0)-1,0),"")
=IF(D6<"",OFFSET($C$2,MATCH(LARGE($D$2:$D$10,COUN T($D$2:D6)),$D$2:$D$10,0)-1,0),"")
=IF(D7<"",OFFSET($C$2,MATCH(LARGE($D$2:$D$10,COUN T($D$2:D7)),$D$2:$D$10,0)-1,0),"")
=IF(D8<"",OFFSET($C$2,MATCH(LARGE($D$2:$D$10,COUN T($D$2:D8)),$D$2:$D$10,0)-1,0),"")
=IF(D9<"",OFFSET($C$2,MATCH(LARGE($D$2:$D$10,COUN T($D$2:D9)),$D$2:$D$10,0)-1,0),"")
=IF(D10<"",OFFSET($C$2,MATCH(LARGE($D$2:$D$10,COU NT($D$2:D10)),$D$2:$D$10,0)-1,0),"")


In column F insert this formula

=IF(D2<"",SUMIF($C$2:$C$10,E2,$A$2:$A$10),"")
=IF(D3<"",SUMIF($C$2:$C$10,E3,$A$2:$A$10),"")
=IF(D4<"",SUMIF($C$2:$C$10,E4,$A$2:$A$10),"")
=IF(D5<"",SUMIF($C$2:$C$10,E5,$A$2:$A$10),"")
=IF(D6<"",SUMIF($C$2:$C$10,E6,$A$2:$A$10),"")
=IF(D7<"",SUMIF($C$2:$C$10,E7,$A$2:$A$10),"")
=IF(D8<"",SUMIF($C$2:$C$10,E8,$A$2:$A$10),"")
=IF(D9<"",SUMIF($C$2:$C$10,E9,$A$2:$A$10),"")
=IF(D10<"",SUMIF($C$2:$C$10,E10,$A$2:$A$10),"")


Would be nice to be able to nest all the formulas but I don't think it
is possible

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
How to find the largest change of values in a column Ravager Excel Worksheet Functions 5 August 11th 06 07:00 PM
How do I generate a list from a range of values robo7084 Excel Worksheet Functions 2 July 6th 06 01:48 AM
find largest values, then return corresponding row values. neurotypical Excel Discussion (Misc queries) 7 May 24th 06 10:27 PM
How do I return the cell address of the largest of a set of values Mr. Snrub Excel Discussion (Misc queries) 8 May 28th 05 03:57 PM
Ranking cells largest to smallest jim314 Excel Discussion (Misc queries) 1 January 10th 05 09:01 PM


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