Sorting data in rows by number order

fluffynicesheep

Board Regular
Joined
Oct 27, 2009
Messages
69
I currently have a list of soft skills in cells P2, P3,P4 down to P14 and next to these in cells Q2, Q3, Q4 etc are rankings out of 10.

e.g. cell P2 contains the text "highly motivated" and Q2 contains the number 8 (for 8 out of 10)

I have just manged to sort the numbers in column Q into order by entering the formula below in cell S2 and dragging it down.

=LARGE($Q$2:$Q$14,ROW()-ROW($1:$1))

However, what I now need to do in column R is to get the soft skills themselves re-appearing in the new order.....

I'm unsure of the formula to do this at the moment.

Any help would be greatly appreciated!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi JimM

Unfortunately if I have 4 things that are all rated as 6 for example, it is just showing the first (6 rated) soft skill 4 times, rather than the 4 separate skills.

I kind of need it to say - ok I've listed that 6 rated skill now, I now need it to list the next one that scored 6, etc

Hope that helps
 
Upvote 0
How about
=INDEX($P$2:$P$14,AGGREGATE(15,6,(ROW($P$2:$P$14)-ROW($P$2)+1)/($Q$2:$Q$14=LARGE($Q$2:$Q$14,ROWS(S$2:S2))),COUNTIF(R$2:R2,R2)))
 
Upvote 0
Oops, had the columns the wrong way round, try
=INDEX($P$2:$P$14,AGGREGATE(15,6,(ROW($P$2:$P$14)-ROW($P$2)+1)/($Q$2:$Q$14=LARGE($Q$2:$Q$14,ROWS(R$2:R2))),COUNTIF(S$2:S2,S2)))
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top