Split Text

uswyne

Board Regular
Joined
Jul 27, 2017
Messages
78
Office Version
  1. 2019
  2. 2016
  3. 2013
  4. 2010
Platform
  1. Windows
Hi everyone,

I have text file and I want to split on excel sheet, plz help me out to do this.


Excel Sheet Requirement

Date ColumnName ColumnText Column
12/6/22OMS Irshad ArainToday I shall be around one hr late due to some personal issues
12/6/22,Atiq AhmedI will come to office around 10 am, after some work at bahria facilitation center

Data File Text
12/6/22, 7:31 AM - OMS Irshad Arain: Today I shall be around one hr late due to some personal issues
12/6/22, 9:27 AM - Atiq Ahmed: I will come to office around 10 am, after some work at bahria facilitation center.
12/6/22, 9:29 AM - OMS Niaz Ahmed: Copy
12/6/22, 9:44 AM - OMS Abu Adil: Okay.
12/7/22, 9:09 AM - OMS Manu Ram: Due to a bank work, will be late by about an hour.
12/7/22, 9:43 AM - OMS Rehan Tariq: Due to some work, will arrive around 11

Thanks in anticipation
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I'd look into the PowerQuery add-in. Unfortunately no longer supported nor updated for Excel 2010, but you can still use it I suppose?

Otherwise some formulae might help. Note that below I also included an option for a dynamic array (ms365 users):

Book1
ABC
112/6/22, 7:31 AM - OMS Irshad Arain: Today I shall be around one hr late due to some personal issues
212/6/22, 9:27 AM - Atiq Ahmed: I will come to office around 10 am, after some work at bahria facilitation center.
312/6/22, 9:29 AM - OMS Niaz Ahmed: Copy
412/6/22, 9:44 AM - OMS Abu Adil: Okay.
512/7/22, 9:09 AM - OMS Manu Ram: Due to a bank work, will be late by about an hour.
612/7/22, 9:43 AM - OMS Rehan Tariq: Due to some work, will arrive around 11
7
812-6-2022OMS Irshad ArainToday I shall be around one hr late due to some personal issues
912-6-2022Atiq AhmedI will come to office around 10 am, after some work at bahria facilitation center.
1012-6-2022OMS Niaz AhmedCopy
1112-6-2022OMS Abu AdilOkay.
1212-7-2022OMS Manu RamDue to a bank work, will be late by about an hour.
1312-7-2022OMS Rehan TariqDue to some work, will arrive around 11
14
15Date ColumnName ColumnText Column
1612-6-2022OMS Irshad ArainToday I shall be around one hr late due to some personal issues
1712-6-2022Atiq AhmedI will come to office around 10 am, after some work at bahria facilitation center.
1812-6-2022OMS Niaz AhmedCopy
1912-6-2022OMS Abu AdilOkay.
2012-7-2022OMS Manu RamDue to a bank work, will be late by about an hour.
2112-7-2022OMS Rehan TariqDue to some work, will arrive around 11
Sheet2
Cell Formulas
RangeFormula
A8:C13A8=CHOOSE(COLUMN(A1),--LEFT($A1,FIND(",",$A1)-1),MID($A1,FIND(" - ",$A1)+3,FIND(": ",$A1)-FIND(" - ",$A1)-3),RIGHT($A1,LEN($A1)-FIND(": ",$A1)-1))
A15:C21A15=REDUCE({"Date","Name","Text"}&" Column",A1:A6,LAMBDA(a,b,VSTACK(a,HSTACK(--TEXTBEFORE(b,","),TEXTAFTER(TEXTBEFORE(b,":",2),"- "),TEXTAFTER(b,": ")))))
Dynamic array formulas.
 
Upvote 0
I'd look into the PowerQuery add-in. Unfortunately no longer supported nor updated for Excel 2010, but you can still use it I suppose?

Otherwise some formulae might help. Note that below I also included an option for a dynamic array (ms365 users):

Book1
ABC
112/6/22, 7:31 AM - OMS Irshad Arain: Today I shall be around one hr late due to some personal issues
212/6/22, 9:27 AM - Atiq Ahmed: I will come to office around 10 am, after some work at bahria facilitation center.
312/6/22, 9:29 AM - OMS Niaz Ahmed: Copy
412/6/22, 9:44 AM - OMS Abu Adil: Okay.
512/7/22, 9:09 AM - OMS Manu Ram: Due to a bank work, will be late by about an hour.
612/7/22, 9:43 AM - OMS Rehan Tariq: Due to some work, will arrive around 11
7
812-6-2022OMS Irshad ArainToday I shall be around one hr late due to some personal issues
912-6-2022Atiq AhmedI will come to office around 10 am, after some work at bahria facilitation center.
1012-6-2022OMS Niaz AhmedCopy
1112-6-2022OMS Abu AdilOkay.
1212-7-2022OMS Manu RamDue to a bank work, will be late by about an hour.
1312-7-2022OMS Rehan TariqDue to some work, will arrive around 11
14
15Date ColumnName ColumnText Column
1612-6-2022OMS Irshad ArainToday I shall be around one hr late due to some personal issues
1712-6-2022Atiq AhmedI will come to office around 10 am, after some work at bahria facilitation center.
1812-6-2022OMS Niaz AhmedCopy
1912-6-2022OMS Abu AdilOkay.
2012-7-2022OMS Manu RamDue to a bank work, will be late by about an hour.
2112-7-2022OMS Rehan TariqDue to some work, will arrive around 11
Sheet2
Cell Formulas
RangeFormula
A8:C13A8=CHOOSE(COLUMN(A1),--LEFT($A1,FIND(",",$A1)-1),MID($A1,FIND(" - ",$A1)+3,FIND(": ",$A1)-FIND(" - ",$A1)-3),RIGHT($A1,LEN($A1)-FIND(": ",$A1)-1))
A15:C21A15=REDUCE({"Date","Name","Text"}&" Column",A1:A6,LAMBDA(a,b,VSTACK(a,HSTACK(--TEXTBEFORE(b,","),TEXTAFTER(TEXTBEFORE(b,":",2),"- "),TEXTAFTER(b,": ")))))
Dynamic array formulas.
THANKS FOR YOUR SUPPORT:) ITS HELPFUL FOR ME(y)
 
Upvote 0

Forum statistics

Threads
1,215,669
Messages
6,126,120
Members
449,293
Latest member
yallaire64

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