+ Reply to Thread
Results 1 to 7 of 7

Transposing list and repeating occurrences..

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    11

    Transposing list and repeating occurrences..

    Hi
    I have a list as follows..

    May-10 June - 10 July - 10 Aug-10 Sep- 10
    123455 0 12 24 34 12
    123456 19 23 34 0 120
    123457 22 78 34 0 123


    But I want to format the list to look like this...

    Part number Amount
    123455 0
    123455 12
    123455 24
    123455 34
    123455 12
    123456 19
    123456 23
    123456 34
    123456 0
    123456 120

    Ideally, I'd like to be able to do it with a macro. The headings across the top will probably vary...(could be 9 or 12 months)...so what I want Excel to do is copy down the part numbers as frequently as the number of columns across the top i.e. if there are 14 dates across the top...that it would copy down each part number that often..

    Thanks a million..
    Anne

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Transposing list and repeating occurrences..

    Hi,
    don't ask me how it works but here is a fast and elegant solution -Good luck

  3. #3
    Registered User
    Join Date
    06-03-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Transposing list and repeating occurrences..

    Hi
    Thanks for this...but am using excel 2007 and it's not working for me...I can't get the part numbers to repeat the way the account numbers did in the example...anything else you think I should look at??
    Anne

  4. #4
    Registered User
    Join Date
    06-03-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Transposing list and repeating occurrences..

    Hi
    how could I do the following...(using the sheet above)

    Copy a part number from another sheet...then count the entries in a row going across e.g. May-10, June-10 etc say I get 10. Then copy down the part number so that it repeats 10 times (equal to the number of entries), and then to do that for all the other part numbers I have?
    Thanks!
    Anne

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Transposing list and repeating occurrences..

    Quote Originally Posted by abalserv View Post
    Hi
    Thanks for this...but am using excel 2007 and it's not working for me...I can't get the part numbers to repeat the way the account numbers did in the example...anything else you think I should look at??
    Anne

    Hi,
    if you are using 2007 please adapt your profile accordingly. it states 2003 - Thx

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

    Re: Transposing list and repeating occurrences..

    The multi consolidation Pivot suggestion should work based on your initial post:

    Further demo's:

    http://datapigtechnologies.com/blog/...-a-pivottable/

    (video)
    http://datapigtechnologies.com/flash...osetables.html

    If needed, post a sample file.

  7. #7
    Registered User
    Join Date
    06-03-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Transposing list and repeating occurrences..

    Hi
    This worked beautifully...thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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