+ Reply to Thread
Results 1 to 4 of 4

Comparing values in two different sheets for multiple cells

  1. #1
    Registered User
    Join Date
    04-16-2017
    Location
    Windsor, England
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Comparing values in two different sheets for multiple cells

    Hi Guys,

    I am trying to determine whether a combination of values contained in cells within one sheet exist in any row contained within another sheet

    i.e. are ALL of the values contained between cells A2-BB2 in 'Sheet 1' equal to ALL of the values in ANY row contained between cells AZ-BB2 in 'Sheet 2'

    Additionally, I am also trying to compare two lists of data of unequal size to identify any differences i.e. List 1 contains 15 values and List 2 contains 20 values. In this case obviously 5 values are missing so I want to be able to compare the lists of data so that a separate column is returned showing the values in 'List 1' that are not in 'List 2'

    LIST 1 LIST 2 MISSING VALUES
    2 2 5
    3 3 6
    4 4
    5
    6


    Finally, is there anyway that I can format cells so that the cell values are being compared properly? Currently, for some of the sheets I have even though the numbers are the same between sheets, they are still showing up/being returned as differences even when I am trying to perform exact match comparisons. There is like a red comma on the top left hand side of the cell which I think is casing this problem so it would be useful to know how to get rid of this.

    Thanks a lot for your help guys!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Comparing values in two different sheets for multiple cells

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Comparing values in two different sheets for multiple cells

    This does the second part. an array formula, here entered in F2.

    =IFERROR(INDEX(A:A, SMALL(IF(ISERROR(MATCH($A$2:$A$16, $B$2:$B$9, 0)), (ROW($A$2:$A$16))), ROWS($F$2:F2))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-16-2017
    Location
    Windsor, England
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Comparing values in two different sheets for multiple cells

    Glenn Kennedy,

    Thanks Glenn,

    I've made another post here which hopefully clarifies what I'm trying to do. Thanks again:
    https://www.excelforum.com/excel-gen...ml#post4659167
    Last edited by jeffreybrown; 05-20-2017 at 03:26 PM. Reason: Removed full quote!

+ 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: 5
    Last Post: 04-17-2017, 08:13 PM
  2. Replies: 1
    Last Post: 12-28-2014, 07:14 PM
  3. Replies: 1
    Last Post: 10-01-2013, 02:41 AM
  4. Comparing multiple sheets / Updating like cells on each sheet
    By MichaelGG1581 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2013, 05:37 PM
  5. [SOLVED] Comparing multiple cells and values
    By hutchgeo4 in forum Excel General
    Replies: 5
    Last Post: 06-18-2012, 02:23 PM
  6. [SOLVED] Find values from cells in multiple sheets
    By Ragdyer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  7. Find values from cells in multiple sheets
    By Ragdyer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM

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