Conditinal Sorting

torkunc

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

In colomn A, I have Data like This:

TİP-1
TİP-2
TİP-5
TİP-5
TİP-5
TİP-9
TİP-9
TİP-10

<colgroup><col></colgroup><tbody>
</tbody>

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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Thanks shuklaankur281190, however it does not give the correct answers when I drag & down:


DataAnswerYour Formula
TİP-1TİP-1TİP-1
TİP-2TİP-2Tip-10
TİP-5TİP-3TİP-2
TİP-5TİP-3TİP-5
TİP-5TİP-3TİP-5
TİP-9TİP-4TİP-5
TİP-9Tip-4TİP-9
Tip-10Tip-5TİP-9

<tbody>
</tbody>
 
Upvote 0
List{="TİP"&"-"&SMALL(VALUE(RIGHT($A$2:$A$16,LEN($A$2:$A$16)-FIND("-",$A$2:$A$16))),ROW(1:1))}
TİP-1TİP-1
TİP-2TİP-1
TİP-5TİP-2
TİP-5TİP-3
TİP-5TİP-3
TİP-9TİP-5
TİP-9TİP-5
TİP-10TİP-5
TİP-3TİP-5
TİP-3TİP-9
TİP-15TİP-9
TİP-5TİP-10
TİP-1TİP-11
TİP-11TİP-15
TİP-15TİP-15

<colgroup><col><col></colgroup><tbody>
</tbody>

Now check , i think it is working good
 
Upvote 0
My dear friend, I appreciate your effort but still it does not make what I am trying to.


DataAnswerYour Reply
TİP-1TİP-1TİP-1
TİP-2TİP-2TİP-2
TİP-5TİP-3TİP-5
TİP-5TİP-3TİP-5
TİP-5TİP-3TİP-5
TİP-9TİP-4TİP-9
TİP-9TİP-4TİP-9
Tip-10TİP-5TİP-10

<tbody>
</tbody>


Maybe it is because of my English; I'll try to express again.

On A Colomn the data has some dublicates. I am trying to put an increment from A to Z. If you examine Answer Colomn above, you see that

1) it takes Type 1 and Type 2 as it is (since they dont have dublicates).
2) when it comes Type 5, as it has 3 times dublicates, it puts the next increment (this time 3) to the all Type-5 (so they turn into Type-3)
3) same also for Type 9. Since there are 2 x Type 9, it puts the next increment (now it is 4) to the both Type 9s (so they turn into Type-4)
5) Next row, it takes Type-10 and convert it to Type-5 (as increment is now 5)

Thanks for your effort and time...
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,517
Members
449,088
Latest member
RandomExceller01

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