LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

boris wrote:
in theory, something along those lines. Problem is that
this assumes you have unique values to rank, whereas I am
looking for it to sum, within the array itself the amounts
of all the listed accounts BY account, then evaluate THAT
virtual list for the rank. Any more ideas on how to do
that?




There is no such assumption. If you want to apply a formula system
(instead of pivot tables), here is how to proceed...

1] Extract a list of distinct accounts and total their amounts.

2] Apply the formula system for extracting the Top 5 list, described in
the link Domenic quoted.

The first part also can be obtained with a formula system. What follows
shows how...

Let A3:B13 house the sample of accounts and corresponding amounts you
provided, including the labels Acct and Amount.

In C2 enter: 0

which is needed.

In C3 enter: Idx

which is just a label.

In C4 enter & copy down:

=IF((A4<"")*ISNA(MATCH(A4,$A$3:A3,0)),LOOKUP(9.99 999999999999E+307,$C$2:C3)+1,"")

In D2 enter:

=LOOKUP(9.99999999999999E+307,C4:C13)

In D3 enter: D-Acct

which is just a label.

In D4 enter & copy down:

=IF(ROW()-ROW(D$4)+1<=$D$2,LOOKUP(ROW()-ROW(D$4)+1,$C$4:$C$13,$A$4:$A$13),"")

In E3 enter: Total

which is just a label.

In E4 enter & copy down:

=SUMIF($A$4:$A$13,D4,$B$4:$B$13)

D3:E10 now houses the data to which you'd apply the formula system for
extracting a Top N list.
 
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
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Where is the bug in my array? Gail Gurman Excel Discussion (Misc queries) 1 January 25th 05 12:36 AM
Array Manipulation [email protected] Excel Worksheet Functions 4 December 25th 04 09:15 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


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