Conditinal Sorting

torkunc

Board Regular
Joined
Jun 26, 2014
Messages
81
Hi everyone,

In colomn A, I have Data like This:

[TABLE="width: 87"]
<colgroup><col></colgroup><tbody>[TR]
[TD]TİP-1[/TD]
[/TR]
[TR]
[TD]TİP-2[/TD]
[/TR]
[TR]
[TD]TİP-5[/TD]
[/TR]
[TR]
[TD]TİP-5[/TD]
[/TR]
[TR]
[TD]TİP-5[/TD]
[/TR]
[TR]
[TD]TİP-9[/TD]
[/TR]
[TR]
[TD]TİP-9[/TD]
[/TR]
[TR]
[TD]TİP-10[/TD]
[/TR]
</tbody>[/TABLE]

As you see some are listed twice and some are three times...

I want to sort them in Colomn B with increment but if data repeats in colomn A, the increments should repeat itself in colomn B. Like this:
A B
------ ------
TİP-1 TİP-1
TİP-2 TİP-2
TİP-5 TİP-3
TİP-5 TİP-3
TİP-5 TİP-3

TİP-9 TİP-4
TİP-9 Tip-4

Tip-10 Tip-5

How can make it by formula?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
finally i understood you question now please try below formula.

="TIP-"&SMALL(IFERROR(VALUE(RIGHT(A:A,LEN(A:A)-FIND("-",A:A))),""),ROW(1:1))
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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