+ Reply to Thread
Results 1 to 3 of 3

? Auto duplicate row contents from 1 sheet to 2nd sheet if column contains set words

  1. #1
    Registered User
    Join Date
    12-19-2008
    Location
    Australia
    Posts
    2

    ? Auto duplicate row contents from 1 sheet to 2nd sheet if column contains set words

    Hi all

    Is there a way (using functions/formulas) to have Excel automatically duplicate the contents of a row on one sheet onto another sheet within the same workbook if text in one column of the first sheet contains a certain word? And if so, how could this be achieved?

    I have attached an example workbook to help explain what I'm trying to achieve.

    What I want to end up with is when I type text in any row of the Master sheet, I would like the entire contents of each row to automatically be repeated on the worksheet of the same name (as per column O). For example row 5's contents from the Master sheet would duplicate into the sheet named Accommodation. In addition, should the details ever change in the Master, this would need to be reflected in the individual sheets also. My only concern is that I'd like the individual sheets to fill from the top rather than match the exact row number position from the Master, ie row 5's contents to be placed into row 2 of the Accommodation sheet seeing as it's the first occurrence, and row 6's would go into row 3 etc.

    I hope that all makes sense, please let me know if not.

    I'd be hugely grateful for any suggestions & help. Thanks heaps.

    Sue
    Attached Files Attached Files
    Last edited by magnolia; 12-23-2008 at 03:36 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Please have a look at the attached.

    I've added some code to the Master tab in the VBA editor (ALT F11) which will fire every time a change is made to the master sheet.

    I've chosen to regenerate the appropriate slave sheets entirely when a new entry is made to avoid complexity if a category is changed on the master sheet.

    I've also added validation to column O on the master sheet so that a match can be guaranteed between the entry and the slave sheet name.
    Attached Files Attached Files
    Martin

  3. #3
    Registered User
    Join Date
    12-19-2008
    Location
    Australia
    Posts
    2
    Hi Martin (& other readers)

    Thank so very much for the effort and time you put into assisting me with my workbook issue - I'm indeed very grateful.

    As it turns out, I have already achieved what I was hoping to with the kind assistance of someone at another forum. It was only when I came back here to see if I could mark my thread as solved, that I noticed your response. I'm so sorry that I haven't replied before now. I was of the understanding that I would receive Instant Notification when a reply had been posted, but unfortunately that didn't take place, otherwise I certainly would most certainly have got back to you a long time before now.

    Sincerest thanks once again Martin, and all the very best at Christmas and for the year ahead.

    Kind regards

    Sue

+ 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