+ Reply to Thread
Results 1 to 8 of 8

Rearrange Data

  1. #1
    Registered User
    Join Date
    09-02-2009
    Location
    Chatel, France
    MS-Off Ver
    Excel 2007
    Posts
    4

    Rearrange Data

    Hi everyone. I expect this query has been answered here before, but I am not sure of the right terminology to use so I haven't been able to find a solution via the search. My problem is this. I have a two column data base:

    Property, Imagepath
    A, domain.com/imageA1.jpg
    A, domain.com/imageA2.jpg
    A, domain.com/imageA3.jpg
    B, domain.com/imageB1.jpg
    B, domain.com/imageB2.jpg
    B, domain.com/imageB3.jpg

    What I want is to group it by property, so I get

    Property, Image1, Image2, Image3
    A, domain.com/imageA1.jpg, domain.com/imageA2.jpg, domain.com/imageA3.jpg
    B, domain.com/imageB1.jpg, domain.com/imageB2.jpg, domain.com/imageB3.jpg

    Is this possible in Excel?

    Thanks in advance.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Rearrange Data

    Yes but...

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

  3. #3
    Registered User
    Join Date
    09-02-2009
    Location
    Chatel, France
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Rearrange Data

    OK, sample file attached.

    The CURRENT worksheet is how the data is currently arranged, the GOAL worksheet is how I'd like it to be arranged.

    Thanks

    sample.xls

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Rearrange Data

    Are you looking to do this transposition with formulae or VBA ?

  5. #5
    Registered User
    Join Date
    09-02-2009
    Location
    Chatel, France
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Rearrange Data

    I am guessing with a formula, because my VB knowledge is, well, Very Basic

    However, never say never, I can run macros so I can give it a go!

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Rearrange Data

    Here is a formula based approach based on your sample file which is set up so as to avoid need for Arrays.

    EDIT: Attachment removed in lieu of replacement below...
    Last edited by DonkeyOte; 09-02-2009 at 12:00 PM.

  7. #7
    Registered User
    Join Date
    09-02-2009
    Location
    Chatel, France
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Rearrange Data

    Wow, excellent work! Thanks a lot. Looking at the formula, I would never have got that myself.

    Ed

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Rearrange Data

    Sorry, I noticed I didn't use absolute references which leaves the formulae open to error - see revision:
    Attached Files Attached Files

+ 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