+ Reply to Thread
Results 1 to 5 of 5

expand cvs cell

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    34

    expand cvs cell

    Guys

    i have a spreadsheet with Column A1 being a part number and D1 being a list of comma seperated designators

    I want to be able to expand the list from

    A1 B1
    C0001 D1, D2, D3
    C0002 G4,G8,G9
    C0008 Z23,Z67

    to be

    C0001 D2
    C0001 D2
    C0001 D3
    C0002 G4
    C0002 G8


    etc etc

    Can you see a simple way to do this as i have lots of lines to do

    Adrian

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: expand cvs cell

    After 12 hours, I will offer this -- Are you really using Excel 2003? That what is in your profile. It might be important, as newer versions of Excel have tools that may make this easier, but are not available to the older versions of Excel.

    If you are using a newer version of Excel (or can borrow a computer with a newer version), this looks like the kind of thing that Power Pivot (2013 and earlier)/Get and Transform (2016) can readily do. I have no experience with these tools, so I cannot explain the specifics of how to do it, but that seems like the easiest way. As a guess, it looks like a "Text to columns" step followed by an "Unpivot" step, but that's as good a guess as I can offer.

    If nothing else, that should bump your thread back to the top where others can see it. I recommend verifying/correcting your Excel version, as that may be important to coming up with a final solution.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    06-26-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: expand cvs cell

    Thanks for your reply...short answer is no i am using 2018

    im not sure that unpivot will help me but thanks for your suggestion

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: expand cvs cell

    Why do you think that unpivot won't help? As I indicated, I don't use these tools, but your example looks very much like the other unpivot examples I've seen here and around the internet:
    One from this forum earlier today: https://www.excelforum.com/excel-gen...ivottable.html
    In this link from the other thread: https://www.excelcampus.com/tables/unpivot-power-query/ your example should look an awful lot like the example just before the "Additional Resources" section after a Text to columns.
    I don't know if Get and Transform can combine the Text to columns and the unpivot steps into one command. Even if you have to do it in two separate steps, it seems like the easiest way to do it -- unless someone more familiar with Get and Transform can suggest a single step command. I would recommend that, rather than dismissing this too quickly, that you look at it further before explore what I expect are more difficult ways to do this.

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: expand cvs cell

    Please update your profile to indicate the Excel version you are actually using (I presume you mean 2016...)

    Power Query (Get & Transform) is perfect for this: Format your source data as a table, then use the following query:

    Please Login or Register  to view this content.
    That looks more complex than it is, to write - that was generated by following toolbar steps only.

    See attachment for worked example.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. Replies: 5
    Last Post: 07-06-2014, 11:41 PM
  2. Expand forumula in cell
    By Martinbif in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-03-2014, 10:04 AM
  3. Cannot get the cell to expand
    By homevestors in forum Excel General
    Replies: 2
    Last Post: 03-18-2009, 09:59 AM
  4. [SOLVED] Can cell expand to fit
    By Stilla in forum Excel General
    Replies: 1
    Last Post: 07-04-2006, 12:20 PM
  5. [SOLVED] How to make cell auto-expand?
    By Ron M. in forum Excel General
    Replies: 8
    Last Post: 02-27-2006, 09:40 PM
  6. [SOLVED] Using the balance sheet template, any way to expand?-way to expand
    By RABBITS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-27-2005, 02:05 PM
  7. [SOLVED] How do I expand the amount of text I can put in a cell?
    By Sarah in forum Excel General
    Replies: 6
    Last Post: 03-09-2005, 01:06 PM

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