Combining Functions: Text to Column & Replace

tylergaps

New Member
Joined
Jul 12, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi all,

My company has recently implemented some live SMS notification system but I would like to input manually into excel for better overview tracking.
I am only able to come up with a basic 2 step process to enter this SMS data using Text to Column to break the "Alt + Enter" line breaks and then the Replace Function to remove the User/Date/Time/Error word leaving the details only before copying to a new row in a table. How do I improve this ?

Example of SMS Format
User: Tyler G
Date: 11/22/20
Time: 1122 HRS
Error: XX Department, Room XX , Machine XX

Desired output using the 2 step solution
UserDateTimeError
Tyler G11/22/201122 HRSXX Department, Room XX , Machine XX
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

sparky2205

Active Member
Joined
Feb 6, 2013
Messages
296
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
If what you're looking for is just to split out what's before the colon and what's after the colon then this will work:
Before the colon: =LEFT(A1,FIND(":",A1)-1)
After the colon: =RIGHT(A1,LEN(A1)-FIND(":",A1)-1)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,969
Office Version
  1. 365
Platform
  1. Windows
Hi & welcome to MrExcel.
How about
+Fluff New.xlsm
ABCDE
1
2User: Tyler G Date: 11/22/20 Time: 1122 HRS Error: XX Department, Room XX , Machine XXTyler G11/22/201122 HRSXX Department, Room XX , Machine XX
InvDetails
Cell Formulas
RangeFormula
B2:E2B2=TRIM(MID(SUBSTITUTE(SUBSTITUTE($A2,":", REPT(" ",100)),CHAR(10),REPT(" ",100)),COLUMN(A1)*200-99,100))
 

Watch MrExcel Video

Forum statistics

Threads
1,130,335
Messages
5,641,560
Members
417,220
Latest member
lam150498

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
Top