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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Automatic Pareto data with Formula



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2010, 09:18 PM posted to microsoft.public.excel.misc
GCRDelphi
external usenet poster
 
Posts: 8
Default Automatic Pareto data with Formula

I want to create a data table for use to create an Automatically updated
Pareto Chart, for this I need that the values automatically be sorted in
descending order, so I have the following example scenario:

Column A has Labels and Column B has Values
A -1
B -2
C - 3
D - 2
E -1

If I use the following formula:
=INDEX($A$1:$A$5,MATCH(LARGE($B$1:$B$5,2),$B$1:$B$ 5,0))
I get B, but there are two 2 and if I use the 3rd largest:
=INDEX($A$1:$A$5,MATCH(LARGE($B$1:$B$5,3),$B$1:$B$ 5,0))
I also Get B instead of the required D.

How can I get it so the end results looks like this:
C
B
D
A
E

Thank You.

--
Gabriel Camarena R.
Delphi Tijuana IT Support
  #2  
Old April 20th, 2010, 01:58 AM posted to microsoft.public.excel.misc
Billy Liddel
external usenet poster
 
Posts: 489
Default Automatic Pareto data with Formula

Use a helper column to find the Nominal Rank of the scores, then use this for
the INDEX.

C2: =RANK($B2,$B$2:$B$6)+COUNTIF($B$2:B2,B2)-1
D2: =INDEX($A$2:$A$6,MATCH(ROWS($1:1),$C$2:$C$6,0))

HTH
Peter

"GCRDelphi" wrote:

I want to create a data table for use to create an Automatically updated
Pareto Chart, for this I need that the values automatically be sorted in
descending order, so I have the following example scenario:

Column A has Labels and Column B has Values
A -1
B -2
C - 3
D - 2
E -1

If I use the following formula:
=INDEX($A$1:$A$5,MATCH(LARGE($B$1:$B$5,2),$B$1:$B$ 5,0))
I get B, but there are two 2 and if I use the 3rd largest:
=INDEX($A$1:$A$5,MATCH(LARGE($B$1:$B$5,3),$B$1:$B$ 5,0))
I also Get B instead of the required D.

How can I get it so the end results looks like this:
C
B
D
A
E

Thank You.

--
Gabriel Camarena R.
Delphi Tijuana IT Support

 




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 09:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.