Duplicates sort in order

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
567
Office Version
  1. 365
Platform
  1. Windows
I have a list of names in Column A (A3:A50)
In column B I have various numbers between 1 and 5 for each name
I am trying to sort the entire list (which changes almost daily) with all the 1's first in Col C and then list the associated name from column A in column D, then all the 2's and then 3's and so on till all the 5's at the bottom

There ins't always a set amount for each number in col B. There could be 11 #1's and 9 #2's...etc.


I tried COUNTIF, INDEX and still cannot get it right.

Thanks in advance for your help
James
 
Unfortunately this is a work laptop and I am unable to install add-ins. I have uploaded a screen shot. Hope that can help.
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    19.5 KB · Views: 1
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You've already said that the values in C are text, so that formula is not going to work, but you haven't clearly explained what you want to do.
 
Upvote 0
I did try in cell J3 =abs(f3) which gave me the 1 in col. F and when I use the TRUE FALSE IF statement it comes up TRUE so the data in Column F or C in your example needs a ABS somewhere
 
Upvote 0
I got it. I put the ABS in the IF statement and I get the 100.

=IF(ABS(F3)=1,100,0)

Thanks for your help.
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,527
Messages
6,120,057
Members
448,940
Latest member
mdusw

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