Copy info from one cell into multiple

Joe B

New Member
Joined
Jun 15, 2007
Messages
22
Cell A1 has the following information.

Name A;Name B;Name C

I want to take the information that is in Cell A1, which does change but is always in the same format, names separated by semi colons. And display it in three different Cells.

Cell B1 would display Name A
Cell C1 would display Name B
Cell D1 would display Name C

How do I do this. Please help!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Sorry I didn't totally explain what I needed.

I want this to be automated. So whatever value appears in Cell A1, will automatically be displayed in cells B1-D1 as requested.
 
Upvote 0
In the Worksheet change event:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range, d As Range, t
Set d = Intersect(Target, Range("A:A"))
If d Is Nothing Then Exit Sub
Application.EnableEvents = False
    For Each c In d
        t = Split(c, ";")
        If UBound(t) = 2 Then
            c.Offset(, 1) = t(0)
            c.Offset(, 2) = t(1)
            c.Offset(, 3) = t(2)
        Else
            c.Offset(, 1).Resize(, 3).ClearContents
        End If
        
    Next
Application.EnableEvents = True
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,704
Members
452,938
Latest member
babeneker

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