+ Reply to Thread
Results 1 to 5 of 5

How to split multiple values from one cell in Excel 2007

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    A, A
    MS-Off Ver
    Excel 2007
    Posts
    3

    How to split multiple values from one cell in Excel 2007

    Hi All,

    In the attached Excel file, in sheet 1, you will see the values as below:

    A B
    1 a
    b
    c
    2 x
    y
    z
    3 l
    m
    n

    and i want to change the values as attached in sheet 2 as below:

    A B
    1 a
    1 b
    1 c
    2 x
    2 y
    2 z
    3 l
    3 m
    3 n


    Kindly help to provide the steps.

    Thanks in advance,
    Adil Khan
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,517

    Re: How to split multiple values from one cell in Excel 2007

    Give this a try

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: How to split multiple values from one cell in Excel 2007

    Adil Khan,

    Welcome to the Excel Forum.


    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).

    1. Copy the below code, by highlighting the code and pressing the keys CTRL + C
    2. Open your workbook
    3. Press the keys ALT + F11 to open the Visual Basic Editor
    4. Press the keys ALT + I to activate the Insert menu
    5. Press M to insert a Standard Module
    6. Where the cursor is flashing, paste the code by pressing the keys CTRL + V
    7. Press the keys ALT + Q to exit the Editor, and return to Excel
    8. To run the macro from Excel, open the workbook, and press ALT + F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.


    Please Login or Register  to view this content.

    Before you use the macro with Excel 2007 or newer, save your workbook, Save As, a macro enabled workbook with the file extension .xlsm


    Then run the ReorgData macro.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  4. #4
    Registered User
    Join Date
    10-15-2012
    Location
    A, A
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to split multiple values from one cell in Excel 2007

    Hi Mike,

    Many Thanks.

    It worked fine.


    Thanks,
    Adil

  5. #5
    Registered User
    Join Date
    10-15-2012
    Location
    A, A
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to split multiple values from one cell in Excel 2007

    Mike,

    Can you please let me know if there is any way to do it from the excel functions instead of macro code.

    Many Thanks in Advance.

    Thanks,
    Adil

+ 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