+ Reply to Thread
Results 1 to 5 of 5

Macro Help to add new rows and fill data for specific columns

  1. #1
    Registered User
    Join Date
    10-01-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    4

    Macro Help to add new rows and fill data for specific columns

    Good afternoon,

    I am desperately trying to work out a faster method of manipulating the information I have on a spreadsheet to create a single list of items instead of a condensed table.

    I have an asset table that lists multiple locations on the left, and asset types across the top. the table designates how many of each asset is at each location.
    What I want, is a list of assets in a single column with the location the asset is in another, so you end up with location one repeated in one column 90 times and next to each cell for that location the asset type is listed.

    I have attached an example table and example output. The actual asset list has 7000 odd assets and 300 odd locations so I want to be able use the macro on that spreadsheet and for it to continue down and across the table until all locations and assets have been completed and arranged into one single list.

    any help with this would be muchly appreciated as you can imagine doing this by hand is going to take a long time
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Macro Help to add new rows and fill data for specific columns

    Are you familiar with PowerQuery? You can do this exact thing with a free Microsoft addin.

    [It used to be called Data Explorer]
    http://datapigtechnologies.com/blog/...data-explorer/

    http://datapigtechnologies.com/blog/...data-explorer/
    https://www.youtube.com/watch?v=CuNbvfXf28U
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    10-01-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Macro Help to add new rows and fill data for specific columns

    Quote Originally Posted by mikeTRON View Post
    Are you familiar with PowerQuery? You can do this exact thing with a free Microsoft addin.

    [It used to be called Data Explorer]
    http://datapigtechnologies.com/blog/...data-explorer/

    http://datapigtechnologies.com/blog/...data-explorer/
    https://www.youtube.com/watch?v=CuNbvfXf28U

    Thank you mike,
    Unfortunately we have strict IT governance at work so I have to await IT approval to install the extension you suggested.
    Is there any alternative way to complete the task using a VBA macro in case they do not allow its install or take a long time to get back to me?

    thank you

  4. #4
    Registered User
    Join Date
    10-01-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Macro Help to add new rows and fill data for specific columns

    Got it sorted. Power Query did half the work and a simple add rows macro finished it off.

    thanks for that suggestion mike

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Macro Help to add new rows and fill data for specific columns

    Hey, I am glad I could help so easily

    As for your question, yes there is a way to handle it with VBA and I would personally prefer to use VBA to process the data BUT PowerQuery is quick and very user friendly.

    The thing with VBA is it requires more time to develop and possibly more overhead once you have it working (BUT and this is a big one, once you start learning how easy it is to manipulate things with VBA your skills start developing even faster and things get even easier and it becomes an addiction... etc etc etc haha)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to copy data from specific columns and rows to new worksheet.....
    By dleckie in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 05-19-2014, 10:16 PM
  2. Macro VB for Formula Fill Through Several Rows in Multiple Columns
    By sanjeevpandey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2013, 11:04 AM
  3. fill sourcedata for diagram into new columns/rows everytime I run the macro
    By Annaberlet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2012, 05:09 AM
  4. [SOLVED] Macro code to Copy specific rows into specific columns
    By macrofan2012 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-11-2012, 11:24 AM
  5. Macro to Fill Specific Rows and Columns with Color Based on Cell Value
    By MSmithson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2011, 09:45 PM

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