SOLVED

Sorting a Number with dash

%3CLINGO-SUB%20id%3D%22lingo-sub-2321087%22%20slang%3D%22en-US%22%3ESorting%20a%20Number%20with%20dash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321087%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EPlease%20help%20me%20how%20to%20sort%20a%20number%20with%20dash.%3C%2FP%3E%3CP%3Eexample%3C%2FP%3E%3CTABLE%20border%3D%220%22%20width%3D%2264%22%20cellspacing%3D%220%22%20cellpadding%3D%220%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2264%22%20height%3D%2220%22%3E201-1%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-10%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-11%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-12%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-13%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-14%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-2%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-3%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-4%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-5%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-6%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-7%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-8%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3E201-9%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2321087%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2321199%22%20slang%3D%22en-US%22%3ERe%3A%20Sorting%20a%20Number%20with%20dash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321199%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1044521%22%20target%3D%22_blank%22%3E%40B_KRANTHI_KUMAR%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ELet's%20say%20the%20data%20start%20in%20A1.%3C%2FP%3E%0A%3CP%3EMake%20sure%20that%20columns%20B%20and%20C%20are%20empty%20(insert%20columns%20if%20necessary).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESelect%20the%20data.%3C%2FP%3E%0A%3CP%3EOn%20the%20Data%20tab%20of%20the%20ribbon%2C%20in%20the%20Data%20Tools%20Group%2C%20click%20Text%20to%20Columns.%3C%2FP%3E%0A%3CP%3ESelect%20Delimited%2C%20then%20click%20Next%20%26gt%3B.%3C%2FP%3E%0A%3CP%3ETick%20the%20check%20box%20for%20Other%2C%20and%20enter%20a%20dash%20(hyphen)%20in%20the%20box%20next%20to%20it.%3C%2FP%3E%0A%3CP%3EClick%20Next%20%26gt%3B.%3C%2FP%3E%0A%3CP%3EEnter%20or%20select%20B1%20in%20the%20Destination%20box%20(to%20avoid%20overwriting%20the%20data.%3C%2FP%3E%0A%3CP%3EClick%20Finish.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESelect%20cell%20A1%2C%20or%20the%20entire%20range.%3C%2FP%3E%0A%3CP%3EIn%20the%20Sort%20%26amp%3B%20Filter%20group%20of%20the%20Data%20tab%20of%20the%20ribbon%2C%20click%20Sort%20(not%20the%20Sort%20A%20to%20Z%26nbsp%3B%20or%20Sort%20Z%20to%20A%20buttons).%3C%2FP%3E%0A%3CP%3ESelect%20Column%20B%20in%20the%20Sort%20By%20dropdown%2C%20then%20add%20a%20new%20level%20and%20select%20Column%20C.%3C%2FP%3E%0A%3CP%3EClick%20Sort.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20wish%2C%20you%20can%20now%20clear%20columns%20B%20and%20C.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2321227%22%20slang%3D%22en-US%22%3ERe%3A%20Sorting%20a%20Number%20with%20dash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321227%22%20slang%3D%22en-US%22%3EProblem%20Solved.%3CBR%20%2F%3EThank%20you%20so%20much.%3C%2FLINGO-BODY%3E
New Contributor

Hi,

Please help me how to sort a number with dash.

example

201-1
201-10
201-11
201-12
201-13
201-14
201-2
201-3
201-4
201-5
201-6
201-7
201-8
201-9

 

 

2 Replies
best response confirmed by B_KRANTHI_KUMAR (New Contributor)
Solution

@B_KRANTHI_KUMAR

Let's say the data start in A1.

Make sure that columns B and C are empty (insert columns if necessary).

 

Select the data.

On the Data tab of the ribbon, in the Data Tools Group, click Text to Columns.

Select Delimited, then click Next >.

Tick the check box for Other, and enter a dash (hyphen) in the box next to it.

Click Next >.

Enter or select B1 in the Destination box (to avoid overwriting the data.

Click Finish.

 

Select cell A1, or the entire range.

In the Sort & Filter group of the Data tab of the ribbon, click Sort (not the Sort A to Z  or Sort Z to A buttons).

Select Column B in the Sort By dropdown, then add a new level and select Column C.

Click Sort.

 

If you wish, you can now clear columns B and C.

Problem Solved.
Thank you so much.