+ Reply to Thread
Results 1 to 3 of 3

Req for help - column comparison (wksheet2) and delete from worksheet1

  1. #1
    Registered User
    Join Date
    08-22-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Req for help - column comparison (wksheet2) and delete from worksheet1

    Hello,

    I've read a few threads and I've partially solved my issue but it would be great if someone can help with the hard bit

    I have a main/original worksheet1 - column A is the list of workstations
    I have worksheet2 where I manually copy/paste the workstations in column A of worksheet1 and alongside in column B I have pasted an updated list of workstations.

    Column B may not contain one of the original workstations in column A. I have identified them by adding a column C;
    Column C = Found in A but not B (i.e. They do not appear because they have been upgraded)
    =IF(ISNA(VLOOKUP(A2,$B$2:$B$65535,1,FALSE)),"PC Not Updated","")

    Column B may contain a new workstation not in the original list column A - I have identified them by adding a column D;
    Column D = Found in B but not A (a new workstation perhaps from storage has appeared)
    =IF(ISNA(MATCH(B1,A:A,0)),B1,"")

    I have attached a file. These are the actions for the macro
    1) Column C in worksheet2 contains blank cells - these are the workstations that have been updated. The corresponding row for the PC name (e.g. London4 in Column A) in sheet1 should be deleted (e.g. sheet1 row 5).
    2) Column D in worksheet2 contains the names of workstations that are new. A new row and the name of the new workstation should be added to column A in sheet1 (e.g. add London11 to the bottom row of column A sheet1 - no need to worry about what goes in the other columns)

    Any help much appreciated
    Attached Files Attached Files
    Last edited by richardatkinson; 08-26-2013 at 06:58 AM. Reason: Add a file

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,631

    Re: Req for help - column comparison (wksheet2) and delete from worksheet1

    To attach a Workbook
    (please do not post pictures of worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-22-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Req for help - column comparison (wksheet2) and delete from worksheet1

    done and updated question

+ 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. Delete a Cell in Worksheet1 That Appears in Worksheet2
    By piper23 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2012, 08:17 PM
  2. Delete rows in worksheet1 which are not listed in worksheet2
    By prayami in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2007, 06:07 PM
  3. Delete Rows in Worksheet2 that Match Criteria in Worksheet1!A1:A20
    By SteveC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2006, 10:00 PM
  4. [SOLVED] copy a string from worksheet1 at row a, column a to worksheet2 row a, column a
    By trammy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2006, 02:10 PM
  5. Copying from one column in worksheet1 and pasting to a different column in worksheet2
    By blacksands36 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-27-2005, 02:28 PM

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