Best way to extract a range and list the first value by itself and then list it again with a range

Kurt

Well-known Member
Joined
Jul 23, 2002
Messages
1,664
I have the following data:

Coluimn A Column B

15CJ1R1 - 6.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 8.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 10.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 12.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 14.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 16.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 18.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 20.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 24.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 1/2" Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , PE
15CJ1R1 - 3/4" Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , PE
15CJ1R1 - 1.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , PE
15CJ1R1 - 1.50 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , PE
15CJ1R1 - 2.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 3.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 4.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 6.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 8.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 10.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 12.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 14.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 16.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 18.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 20.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE
15CJ1R1 - 24.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE

In the first example I need 15CJ1R1 - 6.00 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE listed once

Like this

Size Description
6 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE listed once
6-24 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , BE listed once

1/2 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , PE
1/2 - 24 Sch 160 , ASTM SA335-P11 (1 1/4 CR; 1/2 MO) , SMLS , PE

Inches need to be without the " sign.

I have looked at several examples of Sorts, Arrays and Unique Filtered lists.

Can someone explain if a formula is just as fast or if vba code would be faster?

I can't wait until I see the responses. In 15 years of using Mr. Excel this forum has never let me down and I have made several freinds on this forum.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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