Extract cell content into separate columns

estephenkim

New Member
Joined
Feb 6, 2016
Messages
27
Office Version
  1. 365
Platform
  1. Windows
I've got a data set of 6,133 rows with cells of dates in the following format:

Cell A1:
Status A-2022-02-03;
Status B-2022-03-11;
Status C-2021-09-10

This is an example of the content in a given cell and I want to separate the statuses and their respective dates into separate columns (by using as delimiters all semicolons and only the first dash of each status). As an illustration, I'd like to extract the cell content to a single row as in the following:

Cell B1: Status A

Cell C1: 2022-02-03

Cell D1: Status B

Cell E1: 2022-03-11

Cell F1: Status C

Cell G1: 2021-09-10

I've tried using Text-to-Columns and some of the Excel text functions, but I could use some help on this. I'd like to identify a procedure to reformat the statuses and dates from 6,133 rows of data using an easy to apply, non-VBA procedure that maintains data integrity and minimizes errors. Any suggestions would be welcome!

Stephen
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Seeking something like the following (click image to expand):
 

Attachments

  • Capture - Data extraction - 2023.09.20.png
    Capture - Data extraction - 2023.09.20.png
    7.9 KB · Views: 16
Upvote 0
I've got a data set of 6,133 rows with cells of dates in the following format:

Cell A1:
Status A-2022-02-03;
Status B-2022-03-11;
Status C-2021-09-10

This is an example of the content in a given cell and I want to separate the statuses and their respective dates into separate columns (by using as delimiters all semicolons and only the first dash of each status). As an illustration, I'd like to extract the cell content to a single row as in the following:

Cell B1: Status A

Cell C1: 2022-02-03

Cell D1: Status B

Cell E1: 2022-03-11

Cell F1: Status C

Cell G1: 2021-09-10

I've tried using Text-to-Columns and some of the Excel text functions, but I could use some help on this. I'd like to identify a procedure to reformat the statuses and dates from 6,133 rows of data using an easy to apply, non-VBA procedure that maintains data integrity and minimizes errors. Any suggestions would be welcome!

Stephen
Give this formula a try...
Excel Formula:
=TEXTSPLIT(TEXTJOIN("/",,SUBSTITUTE(TEXTSPLIT(A1,";"),"-","/",1)),"/")
 
Upvote 0
Solution

Forum statistics

Threads
1,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

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