+ Reply to Thread
Results 1 to 18 of 18

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
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Can you save it in 2003 as well, not everybody is using 2007
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    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
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    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

  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
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    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"

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    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
    Please Login or Register  to view this content.
    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
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    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.

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

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

    Solved with formulae

    Here's a possible non-vba solution

    Regards
    Mike

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

  14. #14
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    changing mikeopolo formula to
    Please Login or Register  to view this content.
    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
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    Thanks Martin, very nice substitution and improvement!

    Regards
    Mike

  16. #16
    Registered User
    Join Date
    07-11-2008
    Location
    Winchester, UK
    Posts
    7
    Cheers guys, that worked like a charm (until I realised some of the workplaces weren't unique) - but I've worked around that now - thanks for your help!

    James

  17. #17
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Quote Originally Posted by oldchippy
    I've just checked out the "Evaluate formula" and can see now
    Thanks Chippy! I am still on 2000 so don't have the "Evaluate Formula" option yet. Supposedly our company will update to 2007 by June of next year. We're cutting edge as long as everyone else has done it first.

    ChemistB

  18. #18
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Well if you manage to get 2003 in between now and then you will find it there also

+ 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