Sort Unique value

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
we have the following data which we want to sort with serial

1. Samsung
1. Samsung
2. Sony
2. Sony
2. Sony
4. Dell
4. Dell
4. Dell
10. TVVS
10. TVVS
20. JBBL
20. JBBL
20. JBBL
20. JBBL


result sheet
1. Samsung
2. Sony
4. Dell
10. TVVS
20. JBBL


help with formula please
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Assuming your data is in Cells A1:A14, how about:

Excel Formula:
=LET(valuesToSort,A1:A14,UNIQUE(SORTBY(valuesToSort,VALUE(TEXTBEFORE(valuesToSort,".")))))
 
Upvote 1
Vishaal's profile suggests they are using Excel 2007 or 2010. If that is accurate, some of those functions you used in your formula would not be available to them.
 
Upvote 1
yes Joe4, it's not working, you are right
 
Upvote 0
So which version are you really using?
Excel 2007, Excel 2010, or some other version?

Does your version of Excel have the "Remove Duplicates" functionality found on the Data menu under the "Data Tools" ribbon?
This will change your range into exactly what you show that you want.
 
Upvote 1
With the posted data set and formulas to be entered with CTRL-SHIFT + ENTER

Book1
ABC
21. Samsung1. Samsung
31. Samsung2. Sony
42. Sony4. Dell
52. Sony10. TVVS
62. Sony20. JBBL
74. Dell 
84. Dell 
94. Dell 
1010. TVVS 
1110. TVVS 
1220. JBBL 
1320. JBBL 
1420. JBBL 
1520. JBBL 
Sheet7
Cell Formulas
RangeFormula
C2:C15C2=IFERROR(INDEX($A$2:$A$15,MATCH(0,COUNTIF($C$1:C1,$A$2:$A$15),0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 1
Solution
You're welcome, but please note that it doesn't do any sorting as your original data is already sorted.

Also I believe the Remove Duplicates option Joe4 mentioned came out in Excel 2007 and so should be available to you
 
Upvote 0

Forum statistics

Threads
1,215,206
Messages
6,123,638
Members
449,109
Latest member
Sebas8956

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