+ Reply to Thread
Results 1 to 2 of 2

If FilePath column from Sheet2 contains Location record name from Sheet1 than copy2sheet1

  1. #1
    Registered User
    Join Date
    03-09-2016
    Location
    Detroit
    MS-Off Ver
    365
    Posts
    8

    If FilePath column from Sheet2 contains Location record name from Sheet1 than copy2sheet1

    Greetings!

    I am trying to copy over a file path from one sheet to another depending on if Sheet1's Location column matches Sheet2's Name column. If they match then I would like the Path column record to be copied over to the new sheets in the appropriate row.

    Example dummy data is attached.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: If FilePath column from Sheet2 contains Location record name from Sheet1 than copy2she

    Not sure that I understand however I'll make a proposal.
    The formula for cell E2 on Sheet2 could be something like: =INDEX(Sheet1!A2:A5,MATCH(A2,Sheet1!E2:E5,0))
    The formula for cells E3:E5 could be: =LEFT(E2,SEARCH("|",SUBSTITUTE(E2,"/","|",LEN(E2)-LEN(SUBSTITUTE(E2,"/",""))))-1)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Export Sheet2 with filename in Sheet1 E1 into same location as current workbook
    By 3345james in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2019, 02:45 PM
  2. Replies: 2
    Last Post: 07-14-2015, 04:32 PM
  3. [SOLVED] copy data from sheet1 to sheet2 based on column (A) sheet1 and column (C) sheet2
    By AWITCHER in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-13-2014, 03:20 PM
  4. Insert/Delete record in Sheet2 based on cell value in Sheet1
    By nseethar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2014, 02:29 AM
  5. [SOLVED] Click on a cell in sheet1 and find matching record on sheet2
    By vbacheck in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2013, 12:14 AM
  6. how to show record from sheet2 to sheet1 based on selection of combo box
    By mike018 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-15-2013, 02:30 AM
  7. Record Data from sheet1 to sheet2 using name as the criteria
    By city in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-29-2012, 06:02 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