+ Reply to Thread
Results 1 to 3 of 3

Macro to create duplicate rows based on the value of particular fields

  1. #1
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    2

    Macro to create duplicate rows based on the value of particular fields

    I need to create a macro that allows me to: 1) create duplicate rows based on the value "x" being present in a set of columns 2) once created, remove those referenced columns and replace with a specific word
    Country | Hot | Cold | Windy | Icey
    England today is | | x | x | |
    Should yield 2 records taking the new field value from the column heading above:
    Country | Weather type |
    England today is | Cold |
    England today is | Windy |
    I hope this makes sense and would be extremely grateful for any guidance.
    NB: I have researched this but can only see questions slightly similar but not quite i.e. those which have a count instead of an "x".

    Also posted:
    http://www.excelforum.com/excel-prog...-new-post.html
    http://www.ozgrid.com/forum/showthre...goto=newpost**
    http://www.mrexcel.com/forum/excel-q...ml#post4082501
    Last edited by EmicoCP; 02-22-2015 at 09:36 AM. Reason: Cross post locations

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,773

    Re: Macro to create duplicate rows based on the value of particular fields

    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).

    crossposted: http://www.ozgrid.com/forum/showthre...998#post738998
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    2

    Re: Macro to create duplicate rows based on the value of particular fields

    Hi,

    I will absolutely provide the links. I was intending to do so once the query had been resolved.

    So far, there has been a single response. I will add that to the original post now.

+ 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. [SOLVED] Macro To Create Duplicate Rows
    By air044 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2014, 10:15 AM
  2. [SOLVED] Create duplicate rows based on value in a column
    By PGonzalez in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-14-2014, 01:34 AM
  3. Create Duplicate Rows based on value in a Column
    By Letsexcelit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2014, 05:58 PM
  4. Macro to create duplicate rows
    By Q-D in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2009, 03:40 PM
  5. Delete Duplicate Rows:create a macro
    By LB79 in forum Excel General
    Replies: 1
    Last Post: 09-12-2006, 06:59 AM

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