+ Reply to Thread
Results 1 to 1 of 1

If cell contains value, match with previous path and copy all data from rows that match

  1. #1
    Registered User
    Join Date
    01-15-2019
    Location
    Miami
    MS-Off Ver
    2016
    Posts
    66

    If cell contains value, match with previous path and copy all data from rows that match

    Hi everyone,

    I have been trying to figure this one out with no success, so thought I'd ask for some help.

    I have a permission file that has the paths in one column, the type, users, and permissions in other columns. However, when this permission is inherited from the previous path (path right before the "/"), it doesn't bring the user list. So I want to create a macro that will look through each row and if column B for that path contains "inherited", then it would search for the path right before that one and add the same number of rows, copying all the data. Basically it will copy the user and permission information over to that path as well.

    In my example below, the path "Documents/sites/My Site/Folder A" says inherited, so it would copy all the rows from the path "Documents/sites/My Site" so that they match. Also, for the path "Documents/sites/My Site/Folder A/Subfolder B" that also says inherited, it would copy all the rows from the path ""Documents/sites/My Site/Folder A", so that they match.

    Capture sample.PNG

    Is this possible? I'm attaching the sample file with the data sheet and another that has my desired result. I highlighted the rows I changed/added in the desired results tab in yellow.

    Thanks in advance!
    Attached Files Attached Files

+ 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. Match Value, Insert Rows, and Copy New Data Between Sheets
    By dp694 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2018, 10:37 AM
  2. Replies: 1
    Last Post: 10-06-2017, 05:02 PM
  3. [SOLVED] Match a cell value in another sheet and copy values below the cell (Index Match)
    By naga in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-17-2017, 03:14 AM
  4. Replies: 6
    Last Post: 09-03-2015, 09:51 PM
  5. [SOLVED] Macro to match cell value to worksheet name and copy all rows and row data
    By jamesmcgallan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2013, 09:21 AM
  6. [SOLVED] Match one cell with another, if match found copy adjacent cells
    By Xiophoid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-07-2013, 05:50 AM
  7. Match columns and copy data from rows
    By Xerfas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2009, 05:30 AM

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