+ Reply to Thread
Results 1 to 8 of 8

table(A) as an array using all rows but only selected columns to compare with table(B)

  1. #1
    Registered User
    Join Date
    11-14-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    6

    table(A) as an array using all rows but only selected columns to compare with table(B)

    Hi All

    Would like some help on problem. Need to compare two tables values.
    table(A) is in sheet 1 which is from a data base exported into excel the table has fixed columns(A to T) but the row can be varied number.

    Table(b) is in sheet 2 and has 5 columns(A,B,C,D,E) and various row as a validating reference for data in Table(A).

    Am trying to compare table(A) by selecting specific columns only from this table to those in table(B) in sheet 2 so I end up the with
    the same number of columns and data types in the array to the make comparison to table(b).

    I need only 5 columns (A,C,G,F,M)from table(A) and as rows looped in into an array i need to have value compared to table(2) for each row
    looped any value not exact in table(b) need displayed in sheet 3.

    Any Help very much appreciated.

    Thank you.

  2. #2
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: table(A) as an array using all rows but only selected columns to compare with table(B)

    Hi,se3unlock

    I'm not very clear about your desire, hope this is code you wanted
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-14-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    6

    Re: table(A) as an array using all rows but only selected columns to compare with table(B)

    hi thank you for the reply
    am sorry for not being very clear to the objective.

    am trying check the row data of 5 columns table A(sheet 1) with table b(sheet 2) and the data that is not coresponding in comparing the row of the 5 columns the result to sheet 3

    table a table A.jpg
    table b table b.jpg
    sheet 3 result sheet 3 result.jpg

    I hope this will helps in getting an understanding of am trying to get to.

    any help with this very welcome.

    thanks

  4. #4
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: table(A) as an array using all rows but only selected columns to compare with table(B)

    attachments will be helpful to understand, especially for me
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-14-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    6

    Re: table(A) as an array using all rows but only selected columns to compare with table(B)

    Hi Simcode
    thank you so much it works, could I ask you one more thing would it be possible to have in sheet 3 extra column which would display the comparison column names that did not equal from sheet 1 and sheet 2 as this will give indication why the data is in sheet 3 if it possible.

    once again thank you so much for your reply and solution.

  6. #6
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: table(A) as an array using all rows but only selected columns to compare with table(B)

    Hi, se3unlock

    Giving the column names that values diff from two sheets is possible, but the program is a little bit long,and wordy.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-14-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    6

    Re: table(A) as an array using all rows but only selected columns to compare with table(B)

    WOW SIMCODE
    Brilliant work on solution.

    Many thanks.

  8. #8
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: table(A) as an array using all rows but only selected columns to compare with table(B)

    You're welcome.

+ 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. create a table based on values selected in rows and columns
    By hemagala in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2015, 03:46 AM
  2. Compare a table against rows and update if row not in the table.
    By brent_milne in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-12-2015, 02:32 PM
  3. Return indexes of rows when multiple rows of a table are selected.
    By samkumar in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 04:54 AM
  4. Replies: 0
    Last Post: 10-15-2012, 01:58 PM
  5. Compare data in selected columns and delete all matching rows
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2011, 09:35 AM
  6. Compare pivot table columns
    By waka in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-27-2009, 04:16 AM
  7. [SOLVED] Finding min,max in an array using selected rows from a table
    By Dazed and confused about min, max in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2005, 05:06 PM

Tags for this Thread

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