+ Reply to Thread
Results 1 to 4 of 4

VBA Macro to spilit Data

  1. #1
    Registered User
    Join Date
    04-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    81

    VBA Macro to spilit Data

    Hi I have Data in the following format

    Cell A1 contains 3508 and cell B1 contains a list of data as mentioned below

    80007384
    80007394
    80007392
    I want this data in the cell B1 to be split into 3 different cells C1 C2 and C3 each containing
    80007384 and 80007394 and 80007392 respectively.

    the data in cell B1 could vary it could have 5 ,6 or any number of numbers.
    Thank you so much in advance.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA Macro to spilit Data

    try this in C1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and drag to the right

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,569

    Re: VBA Macro to spilit Data

    C1:

    =TRIM(MID(SUBSTITUTE($B$1,CHAR(10),REPT(" ",LEN($B$1))),LEN($B$1)*ROW(A1)-LEN($B$1)+1,LEN($B$1)))

    Then copy down.

  4. #4
    Registered User
    Join Date
    04-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: VBA Macro to spilit Data

    Thank you . This works .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Spilit a number and increase a cell value by percentage
    By sahdev in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-09-2013, 08:17 AM
  2. Replies: 2
    Last Post: 02-28-2011, 05:14 AM
  3. Spilit cell data BY _
    By naflas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2010, 07:36 PM
  4. Spilit line by space and put them in separate cells
    By naflas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2010, 06:26 PM
  5. Spilit cell data
    By naflas in forum Excel General
    Replies: 1
    Last Post: 09-28-2010, 01:33 AM

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