Microsoft Excel - Create a ranking from a list with duplicate scores.

Asked By emiel de Lange
03-Feb-12 09:45 AM
Hi,

I have a big table in excel with the top row containing the names of many companies (K1:AH1). The rows below containg price data, each row being a separate product with each companies prices listed in their column.

I am trying to extract from this a ranking of the companies prices for each product, and finally a ranking of their names by product.

This first thing has worked for me using the following function:
=SMALL($K2:$AH2,AJ$1)

I then attempted to create a ranking of the company names using the following function:
=OFFSET(AJ2,-$CE2,(((-26)-BH$1+1)+(MATCH(AJ2,$K2:$AH2,0))),1,1)

My problem is this; certain companies have the same price for the same product. E.g. company X and Z both charge 40$ for the product, this would put them both in 3rd place. In my ranking it shows company X in both spots rather than X AND Z.

could anyone please suggest another method to create a ranking of the names that will show BOTH companies if they have the same price?

Thank you very much,
Emiel de Lange
  Pichart Y. replied to emiel de Lange
03-Feb-12 12:17 PM
Hi emiel de Lange,

Of course yes, with array function...please attach your sample data with some part of your formula, even they are not complete yet. This will help a lot to give support.

Kind regards,

Pichart Y.

How to attach file in eggheadcafe.com...attachment below..
  kalpana aparnathi replied to emiel de Lange
03-Feb-12 12:23 PM

Rank Duplicate Values


You can assign a unique rank for all numbers in a range by using the following formula
=SUM(1*Cell>=Range))-(SUM(1*(Cell=Range))-1)/2

where Cell is the relative address of the cell containing one of the values to be ranked, and Range is the absolute address of the range that contains all of the values. This formula assigns a unique rank to every value in a range, in ascending order.

For Detail below link:http://support.microsoft.com/kb/213916
  Donald Ross replied to emiel de Lange
03-Feb-12 07:32 PM

If you are able to upload a sample of your wroksheet it would help greatly, but in the mean time you can do a non traditional sort of the rows, this is slower and not want you want but it will help you one line item at a time.

What I mean is if you highlight K1:AH?? (then end of your data) and the go to the Sort function
 
you can then click on custom sort then the options tab  

and then you can sort left to right based on the row you want.  I chose row2 

This is not the best way but it is a workaround until you get a chance to upload a sheet for us to look at. 

Thank you Don  
  Sandeep Mittal replied to emiel de Lange
04-Feb-12 12:59 AM
Find also attach excel for reference



excel-rank.zip
  Anoop S replied to emiel de Lange
04-Feb-12 04:01 AM
Use RANK formula in excel, The formula for computing a rank is in the form, =rank(CELL, RANGEOFCELLS, [order]), where CELL is the number you want to rank, and RANGEOFCELLS is the range of numbers from which you want to compute the ranking. Order for acending/Decending by specifying 0 or 1

refer this for more details
http://forjournalists.com/cookbook/index.php?title=Ranking_in_Excel
  emiel de Lange replied to Pichart Y.
06-Feb-12 03:34 AM
Thanks for all your replies,

I cant upload from my spreadsheet as the data is confidential, but I have created a similar spreadsheet to illustrate:

The companies data is from K:AH, my extracted ranking of the figures is from AJ:BF.
As you can see Com 13 and 18 both have 770. In my improvised ranking of the companies at BG:CC, this tie is not expressed properly and Com 13 is ranked in both 8th and 9th place, while Com 18 is not even shown.

Thanks again!
Emiel,

EDIT: I cant see the upload option in the manager.
  emiel de Lange replied to Anoop S
06-Feb-12 04:26 AM
Example.zip

Sorry, here is the file
Create New Account
help
Need help with creating a due date formula in excel Microsoft Excel Hi all, I'm creating an Excel spreadsheet and in Column C I have entered in the date an issue was opened will prevent the ugly #NUM! error when no data is entered Hi, Here is an Excel worksheet with all of the scheduled tasks that have to be completed at a department due today. Hi, RANGES \ r \ n Named Ranges . SheetLevel Named Range, Named Constants, Named Formulas , Relative Named Ranges , Dynamic Named Ranges , Advanced Dynamic Named Ranges . \ r \ n Working With Ranges . FindLast cell / row / column etc. \ r \ n Formula Reference Changer . Absolute to Relative etc. \ r \ n SpecialCells Method \ r \ n Excel Named Range Manager $ \ r \ n OFFSET RANGES VBA \ r \ nReturns a Range object that represents
How do I set up alternate row shading with Excel 2003? Excel Excel Miscellaneous Discussions Microsoft Excel (1) Excel 2003 (1) SUBTOTAL (1) COUNTA (1) MOD (1) ROW (1) Sheet.Regards (1) Qm2c44d9s8ipeual63muf3aah5raa77ouv (1 data. = MOD(ROW(), 2) = 0 will not retain the banding through filtering. Gord Dibben MS Excel MVP Hi Gordon, I didn't know about using subtotal to maintain banding. (Does that Note the placement of the $ signs. . . . . . . . .you want $A1 to be column absolute and row relative but $A$2 to fix both row and column at absolute. The SUBTOTAL(3, range
What is the deifference between writng A3 or $A$3 in a function? Excel Excel New Users Discussions Microsoft Excel (1) Excel (1) FIXED (1) Deifference (1) Writng (1) See Excel help on absolute and relative cell references. Gord Dibben MS Excel MVP Hi Bassam, here is a simple worked example that I hope will aid your
In microsoft.public.excel. Excel In microsoft.public.excel.misc on Wed, 11 Jul 2007, Paul Hyett I'm guessing this can't be done, then? - - Paul Hyett, Cheltenham (change 'invalid83261' to 'blueyonder' to email me) Excel Miscellaneous Discussions Microsoft (1) Excel (1) Hyett (1) Guessing (1) Cheltenham (1) Invalid (1) Blueyonder (1) Email (1) Make that
What is meaning of $ in excel Excel Dear all Plz help, what is meaning of $ in excel Excel New Users Discussions Excel (1) Daylight (1) Jangra (1) Diego (1) Plz (1) Therow (1) Hi, it makes a the formula the range doesn't change' there are 4 options = A1 - Row and column relative = $A1 - Row relative column absolute = A$1 - Row absolute column relative = $A$1 - Row and column absolute The easy way to change these id when you