How to split a range of numbers from one cell into a column of multiple cells all with individual numbers

zhang66777

New Member
Joined
Jan 6, 2015
Messages
7
Hi, all

I have a huge sheet as Table 1, the data is indicating the location of 10x10 box, I would like to change it to table 2 and on, would you please let me know how to do it? many many thanks in advance

Julie
A1-5
B6-9
F6-9
G8-H2
I2-6
H7,8

<tbody>
</tbody>

A1
A2
A3
A4
A5

<tbody>
</tbody>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi, all

I have a huge sheet as Table 1, the data is indicating the location of 10x10 box, I would like to change it to table 2 and on, would you please let me know how to do it? many many thanks in advance

Julie
A1-5
B6-9
F6-9
G8-H2
I2-6
H7,8

<tbody>
</tbody>

A1
A2
A3
A4
A5

<tbody>
</tbody>


Are these the desired outcomes (only in a table to validate output) - presumably you want a single long, continual column of results...

15z1qc5.jpg


Could you explain how the code G8-H2 should be coded


Is that just

G8
H2

or a range, somehow, of G8-H2?

G2
G3
G4
G5
G6
G7
G8
H2
H3
H4
H5
H6
H7
H8

(like an Excel range, for example)


or even

G2
G3
G4
G5
G6
G7
G8
H2

(like a partial range??)
 
Last edited:
Upvote 0
many thanks for your reply,

1. I will need a single long, continual column
A1
A2
A3
A4
A5
B6
B7
B8
B9
F6
...
2. the box has 10 column and 10 row, so G8-H2 will be
G8
G9
G10
H1
H2

3. Actually I have 3 columns, the first is Sample ID, 2nd is box number, 3rd is the one I have listed earlier, like this:
CHWTB-107335
1
A1-6

<tbody>
</tbody>

I would like it become: Many many thanks

CHWTB-107335-S-11 A1
CHWTB-107335-S-21 A2
CHWTB-107335-S-31 A3
CHWTB-107335-S-41 A4
CHWTB-107335-S-51 A5
CHWTB-107335-S-61 A6

<tbody>
</tbody><colgroup><col><col span="2"></colgroup>
 
Last edited:
Upvote 0
many thanks for your reply,

1. I will need a single long, continual column
A1
A2
A3
A4
A5
B6
B7
B8
B9
F6
...
2. the box has 10 column and 10 row, so G8-H2 will be
G8
G9
G10
H1
H2

3. Actually I have 3 columns, the first is Sample ID, 2nd is box number, 3rd is the one I have listed earlier, like this:
CHWTB-1073351 A1-6

<tbody>
</tbody>

I would like it become: Many many thanks

CHWTB-107335-S-11 A1
CHWTB-107335-S-21 A2
CHWTB-107335-S-31 A3
CHWTB-107335-S-41 A4
CHWTB-107335-S-51 A5
CHWTB-107335-S-61 A6

<tbody>
</tbody>


Is the end of the FIRST code always suffixed with "-S-n" (where n is the number of instances)??
 
Upvote 0
Is this correct?




Excel 2010
ABC
1CodeQtyBoxCode
2CHWTB-1073351A1-6
3CHWTB-1073362A1-5
4CHWTB-1073373B6-9
5CHWTB-1073384F6-9
6CHWTB-1073395G8-H2
7CHWTB-1073406I2-6
8CHWTB-1073417H7,8

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1




Excel 2010
ABC
1CodeQtyBoxCode
2CHWTB-107335-S-11A1
3CHWTB-107335-S-21A2
4CHWTB-107335-S-31A3
5CHWTB-107335-S-41A4
6CHWTB-107335-S-51A5
7CHWTB-107335-S-61A6
8CHWTB-107336-S-12A1
9CHWTB-107336-S-22A2
10CHWTB-107336-S-32A3
11CHWTB-107336-S-42A4
12CHWTB-107336-S-52A5
13CHWTB-107337-S-13B6
14CHWTB-107337-S-23B7
15CHWTB-107337-S-33B8
16CHWTB-107337-S-43B9
17CHWTB-107338-S-14F6
18CHWTB-107338-S-24F7
19CHWTB-107338-S-34F8
20CHWTB-107338-S-44F9
21CHWTB-107339-S-15G8
22CHWTB-107339-S-25G9
23CHWTB-107339-S-35G10
24CHWTB-107339-S-45H1
25CHWTB-107339-S-55H2
26CHWTB-107340-S-16I2
27CHWTB-107340-S-26I3
28CHWTB-107340-S-36I4
29CHWTB-107340-S-46I5
30CHWTB-107340-S-56I6
31CHWTB-107341-S-17H7
32CHWTB-107341-S-27H8

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2
 
Upvote 0
Sorry that I was away, yes, this is correct, but I didn't see the trick, how can I do it? By the way, Column B is Box rather than quantity.

many many thanks

Julie
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,812
Members
449,048
Latest member
greyangel23

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