Start and end number

jenber11

New Member
Joined
Nov 19, 2014
Messages
3
I need to take columns in table1 with start and end range and put it in a table2 with the range separated.
Table1
col1col2col3
Test10103
Test20203

<tbody>
</tbody>
Table2
col1col2
test101
test102
test103
test202
test203

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Using the data supplied, it will require three queries to achieve what you want.

SELECT Table1.col1, Table1.col2
FROM Table1;

SELECT Table1.col1, Table1.col3
FROM Table1;

Select * from Query1
UNION ALL Select * from Query2
Order by Query1.Col1;

Once you have the third query, you run a Make Table Query to put the data into a new table.
 
Upvote 0
Thanks Alan

This is a great start but in my final table I am not getting test1 02 from table1. I am getting the first and last number but not the number between.
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,690
Members
449,092
Latest member
snoom82

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