Data Text to Column

Status
Not open for further replies.

decent_boy

Board Regular
Joined
Dec 5, 2014
Messages
130
Office Version
  1. 2016
Platform
  1. Windows
Hi
I copy below data from a text file and issue is that when I convert/copy multiple rows to Result Sheet, it takes too much time. Please provide any VBA solution to save time

Date Copied from Text File
Sheet1


A
1Order No = A25/CP/0123/00333
2Order Amount = 12351
3SH_ID = TA5
4
5-------------------------------------------------------------------------------------------------------------------------------------------------------------
6| SP |Type |Denomination |From |To | Quantity| |
7-------------------------------------------------------------------------------------------------------------------------------------------------------------
8|DS1|EU |ITEM-232 |0101250300225100 |0101250300225199 | 100|SMITH |
9|DS1|EU |ITEM-324 |0600528600210000 |0600528600210199 | 200|SMITH |
10|DS1|EU |ITEM-524 |0005084901091890 |0005084901091919 | 30|SMITH |
11
12Order No = A32/CP/0152/00352
13Order Amount = 726
14SH_ID = TA9
15
16-------------------------------------------------------------------------------------------------------------------------------------------------------------
17| SP |Type |Denomination |From |To | Quantity| |
18-------------------------------------------------------------------------------------------------------------------------------------------------------------
19|DS2|EU |ITEM-232 |0101250300225200 |0101250300225299 | 100|JHON |
20
21Order No = A33/CP/0192/00395
22Order Amount = 8252
23SH_ID = TA2
24
25-------------------------------------------------------------------------------------------------------------------------------------------------------------
26| SP |Type |Denomination |From |To | Quantity| |
27-------------------------------------------------------------------------------------------------------------------------------------------------------------
28|DS3|EU |ITEM-232 |0101250300225300 |0101250300225399 | 100|Phenny |
29|DS3|EU |ITEM-324 |0600528600210200 |0600528600210399 | 200|Phenny |

Required result after removing unnecessary space

Result


ABCDEFG
1DateSH_IDOrder NoQuantityDenominationFromTo
220-May-20TA5A25/CP/0123/00333100ITEM-23201012503002251000101250300225199
320-May-20TA5A25/CP/0123/00333200ITEM-32406005286002100000600528600210199
420-May-20TA5A25/CP/0123/0033330ITEM-52400050849010918900005084901091919
520-May-20TA9A32/CP/0152/00352100ITEM-23201012503002252000101250300225299
620-May-20TA2A33/CP/0192/00395100ITEM-23201012503002253000101250300225399
720-May-20TA2A33/CP/0192/00395200ITEM-32406005286002102000600528600210399


Excel tables to the web >> Excel Jeanie HTML 4
 

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.
Duplicate: Data Text to Column

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread. Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

If you do not receive a response, you can "bump" it by replying to it again, though we advise you to wait 24 hours before doing and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,894
Messages
6,122,124
Members
449,066
Latest member
Andyg666

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