LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
boris
 
Posts: n/a
Default complicated array

I saw something like this in a book once, but don't know
which book. It was pretty complex when I saw it, but know
that it, within itself, sorted and did some of the
functions I need. The problem:

List of multi-column entries for a sales order. Two of
the columns are account name and amount of order. I need
an array (multi-cell, or single cell, with reference to a
neighboring "counter" cell) which will look at the list
(based on named ranges which are sized the same - for
sumif purposes - for both the account column and amount
column) and produce for me the top 5 accounts by total
amount. In other words, from the following list:

Acct Amount
A 10
B 20
C 12
D 45
E 34
F 5
G 45
A 5
C 10
D 8

I need the section where this array would be to look as
follows:

Acct Amount
D 53
G 45
E 34
C 22
B 20

And with each new additional line of entry (again, which
would capture into the names range), that last summary
table would need to reflect the top 5. The "counter" cell
I referred to means that to the left or right of this, I
am able to put a static 1, 2, 3, etc. so that each formula
could refer to that cell to understand its associated
position in the "virtual" list I am looking for this
formula to create.

As I see it, the steps for the array a

1) get the sumif totals of all the cells, based on account
2) find the Nth max number (1st, 2nd, etc.)
3) produce that Nth's acct name and amount in separate
columns

If someone can get this, you're a star. Like I said, I
know I've seen something that did a similar sort-in-place
and show the descending order of results array. But that
was in a book, and I don't know which book.

Thanks. Boris.
 
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 05:40 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"