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  

Creating a dynamic list based on a minimum common variable.



 
 
Thread Tools Display Modes
  #1  
Old February 20th, 2007, 03:58 PM posted to microsoft.public.excel.worksheet.functions
[email protected]
external usenet poster
 
Posts: 18
Default Creating a dynamic list based on a minimum common variable.

I want to create a lits based on a minimum common variable.

I use a program that generates a data table in a specific order. In
'COL A' are names of clients. Related data (a percentage) is in 'Col
B' .

I want to create a dynamic list that identifies the first 15 names of
that appear in COL A that have a value over a given amount in the COL
B.
  #2  
Old February 20th, 2007, 04:35 PM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Creating a dynamic list based on a minimum common variable.

One way ..

Assume the names in A1 down, corresponding percentages in B1 down
The cut-off value (%) will be entered in say, D1, eg in D1: 15%

Put in E1:
=IF($D$1="","",IF(B1$D$1,ROW(),""))
Copy E1 down to the max expected extent of data in cols A and B
(Hide away col E if desired)

Put in F1:
=IF(OR(ROW()COUNT($E:$E),ROW()15),"",INDEX(A:A,S MALL($E:$E,ROW())))
Copy F1 to G1. Format G1 as percentage. Select F1:G1, fill down by 15 rows
to G15. Col F returns the list of the 1st 15 names (or less, as the case may
be) whose percentages exceed the cut-off value entered in D1. Col G returns
the corresponding percentages for the names.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
wrote in message
oups.com...
I want to create a lits based on a minimum common variable.

I use a program that generates a data table in a specific order. In
'COL A' are names of clients. Related data (a percentage) is in 'Col
B' .

I want to create a dynamic list that identifies the first 15 names of
that appear in COL A that have a value over a given amount in the COL
B.

in order to optimize the data, my goal is to be able to change that
percentage (and alter the list of stocks) dynamically.

Any help, even pointing me in the right direction would be much
appreciated.

Dan



  #3  
Old February 20th, 2007, 06:23 PM posted to microsoft.public.excel.worksheet.functions
Herbert Seidenberg
external usenet poster
 
Posts: 1,113
Default Creating a dynamic list based on a minimum common variable.

Try Pivot Table.
No formulas required.
I simplified the requirement to:
Find the top 5 names with the highes value.
Assume your list looks like this:

Cust Value
Ad 61
Be 50
Cf 5
Dg 96
Eh 33
Fi 1
Gj 20
Hk 2
In 11
Jm 62
Kn 21
Lo 20
Mp 3
Nq 83
Or 30

Data Pivot Table
Layout: ROW = Cust
DATA = Sum of Value
Options: Uncheck/Hide Grand Totals
The Pivot Table might look like this:

Sum of Value
Cust Total
Dg 96
Nq 83
Jm 62
Ad 61
Be 50

Right click on Cust and
Field Setting Advanced AutoSort Options
Descending Using Field Sum of Value
Top 10 AutoShow On Show Top 5
Using Field Sum of Value
A more complex criterion can be used by
creating a new field.
Refresh PT after updating the original list.

  #4  
Old February 20th, 2007, 06:26 PM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Creating a dynamic list based on a minimum common variable.

Reply from OP:

From: db_murray
To: "Max" demechanik..
Subject: Creating a dynamic list based on a minimum common variable.
Date: Tue, 20 Feb 2007 09:18:20 -0800

Thanks Max,
That worked great and is very elegant.
Dan
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


 




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 01:50 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.