+ Reply to Thread
Results 1 to 6 of 6

Excel 2003 - VBA - Rows to column

  1. #1
    Registered User
    Join Date
    03-10-2013
    Location
    Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Excel 2003 - VBA - Rows to column

    Hello Guys !

    I have a list of items with codes, quantity and expiry dates, it s basically my stock inventory.

    To fit in my reporting format, i need to have one row per code with the different expiry date and quantity at the end of the rows :

    Item A 500 31/12/2014
    Item A 300 31/01/2015
    Item A 200 31/05/2015
    Item B 500 30/16/2014
    Item B 300 30/04/2015

    Item A 500 31/12/2014 300 31/01/2015 200 31/05/2015
    Item B 500 30/16/2014 300 30/04/2015

    Ideally i would also like to have the sum for each row.

    Item A 1000 500 31/12/2014 300 31/01/2015 200 31/05/2015
    Item B 800 500 30/16/2014 300 30/04/2015


    I m not skilled enough in VBA to do this, Does anybody have an idea ?

    Cheers

    I ve another thread at : http://www.mrexcel.com/forum/excel-q...ml#post3421706
    Attached Files Attached Files
    Last edited by lantuan; 03-17-2013 at 08:26 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel 2003 - VBA - Rows to column

    I see in your 2nd tab that the data is placed in the order of ascending dates? Is this true?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    03-10-2013
    Location
    Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel 2003 - VBA - Rows to column

    Yes :-)

    Thanks for your interest arlu1201

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Excel 2003 - VBA - Rows to column

    Hi, lantuan,

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Registered User
    Join Date
    03-10-2013
    Location
    Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel 2003 - VBA - Rows to column

    Done !

    Sorry i did not know .

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel 2003 - VBA - Rows to column

    Thanks Holger for pointing this out. I was working on the solution and did spend some good time on it, which i guess is wasted since the OP has already received a solution at the other site.

+ 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