Results 1 to 7 of 7

VBA If Then Else. Find matches then copy paste to overwrite data

Threaded View

  1. #1
    Registered User
    Join Date
    01-02-2020
    Location
    LA, Cali
    MS-Off Ver
    365
    Posts
    9

    VBA If Then Else. Find matches then copy paste to overwrite data

    Hello everyone!

    I have two spreadsheets in a workbooks.
    Sheets.LiveData contains the most update to date information based on a ProjectID (status, dates..)
    Sheets.toUpdate contains the ProjectID and applicable columns.

    I would like to look at LiveData.ProjectID and for each row, find the match in toUpdate.ProjectID range.
    If a match is found, I want LiveData.A:E data for that matched row to be pasted over the matched row of toUpdate A:E, overwriting the existing data for that matched row.
    If a match is not found, then I want to copy the unmatched row from LiveData.A:E and paste to the next available row in toUpdate.A:E.
    Attached Files Attached Files
    Last edited by nordxnortheast; 08-18-2020 at 07:46 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy & paste of the data if matches
    By MoldyBread in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-23-2020, 08:13 AM
  2. [SOLVED] Copy master wb/ws to new wb/ws to overwrite data only if column a info matches both
    By paula.mccall in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2019, 03:47 PM
  3. Copy from one sheet and paste to another - overwrite all data
    By csaavs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-09-2017, 04:02 AM
  4. Find matches, copy and paste adjacent cell
    By amein in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-23-2016, 11:21 AM
  5. Deleted
    By MaxStrong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2015, 01:50 AM
  6. Copy and paste to new worksheet but overwrite if data already exists.
    By digimon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2015, 11:17 PM
  7. [SOLVED] Copy/Paste from a Filtered Range and Insert copied data NOT overwrite
    By Simon.Ward in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-12-2013, 11:14 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