+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: Dynamically Transpose Data??

  1. #1
    Registered User
    Join Date
    07-11-2008
    Location
    Winchester, UK
    Posts
    7

    Dynamically Transpose Data??

    Hi Guys,

    Basically, I have a list of about 3,000 names and places of work, in two columns. What I want is to have the place of work in the first column, and then all the employees along that row. There must be a simple solution to this, but I have been banging my head on my desk all morning trying to work it out. All the places of work are sorted, if that makes any difference.

    Thanks for your help,

    James

  2. #2
    Registered User
    Join Date
    07-11-2008
    Location
    Winchester, UK
    Posts
    7
    Ok, just realised that my description makes little to no sense. Attached is an example of how the data is, and how I need it to be.
    Attached Files Attached Files

  3. #3
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Can you save it in 2003 as well, not everybody is using 2007
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Registered User
    Join Date
    07-11-2008
    Location
    Winchester, UK
    Posts
    7
    Sorry bout that, 2003 attached
    Attached Files Attached Files

  5. #5
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Hi James,

    I know this isn't what you asked for, you will need someone with VBA experience to produce the list the way you want it, hopefully someone will respond.
    Attached Files Attached Files
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  6. #6
    Forum Contributor
    Join Date
    05-26-2008
    Posts
    122
    a pivot table would arrange it for you but it will still be in two columns..

  7. #7
    Registered User
    Join Date
    07-11-2008
    Location
    Winchester, UK
    Posts
    7
    Thanks for that oldchippy - unfortunately as you say its not quite what I need - but I guess its a step closer. This is driving me mad! I've posted this is in the programming forum (I know you guys frown on double posting so please delete the thread if it breaches the rules...)

  8. #8
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Quote Originally Posted by manny_cb
    a pivot table would arrange it for you but it will still be in two columns..
    I know, that's why I said
    "I know this isn't what you asked for"
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    5,372
    Quote Originally Posted by old chippy
    you will need someone with VBA experience to produce the list the way you want it,
    I figured there has to be a way for Excel to do this w/o VBA so sparked up some neurons and came up with the attached result;

    I set a dummy column next to the company name containing simply =ROW(). Then I used this array formula to come up with the names
    =INDIRECT(ADDRESS(LARGE(--($B$3:$B$9=$E3)*$C$3:$C$9,COLUMN(A1)),1))
    input with CNTRL-SHFT-ENTER
    Dragged down and right.

    I could not get the errors to disappear. If I added an ISERROR IF statement, everything went blank. I am on 2000 so don't have some of the error removal tools that are available on 2003 up. True?

    ChemistB
    P.S. As per the title of the attachment, I was working with OFFSET first but that didn't pan out.
    Attached Files Attached Files

  10. #10
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Credit where credit due - well done ChemistB , I wouldn't have got that one.

    Can you explain how this works?



    I've just checked out the "Evaluate formula" and can see now
    Last edited by oldchippy; 07-11-2008 at 05:56 PM.
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  11. #11
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,776
    when all else fails, fall back on the the old =iserror(f3) font white conditional format trick lol

  12. #12
    Valued Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    291

    Solved with formulae

    Here's a possible non-vba solution

    Regards
    Mike
    Attached Files Attached Files

  13. #13
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Another good one Mick - it get better all the time here
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  14. #14
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,776
    changing mikeopolo formula to
    =IF(COLUMNS($F:F)<=(MATCH($C2,$A:$A,0)-MATCH($C1,$A:$A,0)),INDEX($B:$B,MATCH($C1,$A:$A,0)-1+COLUMNS($F:F),1),"")
    and simply put "end" after last entry cols a and c
    you can do away with steps 3+4 ie columns D and E
    Attached Files Attached Files

  15. #15
    Valued Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    291
    Thanks Martin, very nice substitution and improvement!

    Regards
    Mike

+ 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.2.0