Move multiple words in cells into one column with each word it its own cell

LSQuinn

New Member
Joined
Aug 30, 2023
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hello,

The included image is list of areas the people select they'd consider living by an online form.

They are able to select multiple areas that they're interested in living - if you notice that more than one cell has multiple areas A23 has - Llantrisant Cardiff Bridgend Porthcawl Port Talbot. There is no spaces between each area and I am unable to include one prior them being brought into excel.

I need a way move all areas into 1 column combined, but each area be in it's own cell. Each area will always start with a capital letter but some areas like Port Tablot may consist of two or more words.

Many thanks for any help
Lou

1706024408557.png
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
This macro assumes your data starts in row 2 in column A.
VBA Code:
Sub SplitCells()
    Application.ScreenUpdating = False
    Dim v As Variant, i As Long, ii As Long, arr As Variant
    v = Range("A2", Range("A" & Rows.Count).End(xlUp)).Value
    For i = UBound(v) To LBound(v) Step -1
        If InStr(v(i, 1), Chr(10)) > 0 Then
            arr = Split(v(i, 1), Chr(10))
            For ii = UBound(arr) To LBound(arr) + 1 Step -1
                Rows(i + 2).EntireRow.Insert
                Range("A" & i + 2) = arr(ii)
            Next ii
            Range("A" & i + 1) = arr(LBound(arr))
        End If
    Next i
    Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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