+ Reply to Thread
Results 1 to 3 of 3

Compare two tables and transfer data to different tables based on conditions.

  1. #1
    Forum Contributor
    Join Date
    10-30-2019
    Location
    GUJARAT,INDIA
    MS-Off Ver
    MS OFFICE 2016
    Posts
    134

    Compare two tables and transfer data to different tables based on conditions.

    Can anybody help in developing code for Comparing two tables and transfer data to different tables based on conditions.

    Conditions:-
    1 If 'code' shown in col. A matches with code shown in col. H then only "code" will transfer to table " MATCHED
    ENTRIES(on 'code' creteria)" on Sheet2
    2 If 'code' shown in col. A does not match with code shown in col. H full unmatched row will transfer to table "ENTRIES
    FOUND IN TABLE-1 BUT NOT FOUND IN TABLE-2" on Sheet2
    3 If 'code' shown in col. H does not match with 'code' shown in col.A full unmatched row will transfer to table "ENTRIES
    FOUND IN TABLE-2 BUT NOT FOUND IN TABLE-1" on Sheet2
    4 If 'code' shown in col. A matches with code shown in col. H but amount shown under "amt" heading in both tables
    does not match then only "code" and "amt" of both tables will transfer to "ENTRIES FOUND IN BOTH TABLES BUT
    'amt' NOT MATCHED" table on sheet2
    Expected result is filled up in attached sample sheet.

    I have always found solution to my code problems in this forum.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Compare two tables and transfer data to different tables based on conditions.

    Maybe something like this ?
    Please Login or Register  to view this content.
    Last edited by karmapala; 07-31-2020 at 02:33 AM.

  3. #3
    Forum Contributor
    Join Date
    10-30-2019
    Location
    GUJARAT,INDIA
    MS-Off Ver
    MS OFFICE 2016
    Posts
    134

    Re: Compare two tables and transfer data to different tables based on conditions.

    Excellent solution

+ 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. Replies: 1
    Last Post: 12-01-2019, 01:13 PM
  2. Compare two tables to retrieve data based on Column
    By elbrujo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2019, 06:03 PM
  3. Transfer data between tables
    By tessda in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2017, 03:04 PM
  4. IF statment formula to compare number between tables with 3 conditions
    By qkjack in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2017, 02:13 AM
  5. Transfer Data to separate tables based two variables (site and product)
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2010, 09:47 PM
  6. Transfer Data to separate tables based two variables (date and site)
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2009, 08:30 PM
  7. Compare 2 tables based on different information
    By khalid79m in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-26-2007, 04:43 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