+ Reply to Thread
Results 1 to 3 of 3

Breaking up a cell containing many countries into individual country cells

Hybrid View

  1. #1
    Registered User
    Join Date
    02-12-2008
    Posts
    48

    Breaking up a cell containing many countries into individual country cells

    Hi. How do I break up a cell that contains multiple country listing into one cell for each country. Pls see attach example. I receive A1. I need C3:C7. VBA codes appreciated. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Breaking up a cell containing many countries into individual country cells

    hi grumpyguppy, please check attachment, press Run button

    Option Base 1
    Sub test()
    arr = Application.Transpose(Split(Range("a1"), Chr(10)))
    Range("c3").Resize(UBound(arr)) = arr
    End Sub
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-12-2008
    Posts
    48

    Re: Breaking up a cell containing many countries into individual country cells

    Thanks. It works!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1