+ Reply to Thread
Results 1 to 6 of 6

Simplifing a cell comparison check

  1. #1
    Forum Contributor
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 365
    Posts
    100

    Simplifing a cell comparison check

    There has to be a more simple way to check that these cells are equal to each other. It's a simple comparison really. I just need the left 6 to be equal to the right 6. Each left one must equal exactly the one on its right. Summing the 2 and then comparing the sum is not a proper solution.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Simplifing a cell comparison check

    Hi
    Using a array formula (not tested)
    =IF(AND(I7:I12=J7:J12),"Pass";"Fail")

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Simplifing a cell comparison check

    One way,

    =IF(SUMPRODUCT(--(I7:I12=J7:J12))=6,"Pass","Fail")

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Simplifing a cell comparison check

    Or even better,

    =IF(SUMPRODUCT(--(I7:I12<>J7:J12)),"Fail","Pass")

  5. #5
    Forum Contributor
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 365
    Posts
    100

    Re: Simplifing a cell comparison check

    Thank you all.

    All solutions seem to work (note: Jose's solution only works when set up as an array).

    However, Berlan's second solution seems to be best.

    Thanks

  6. #6
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Simplifing a cell comparison check

    You're welcome, and thanks for the feedback and rep

+ 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. Data Comparison Check - Updating Cases
    By Nairobi Nice in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-08-2012, 05:32 PM
  2. Cell Comparison Check
    By paladin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2009, 09:34 PM
  3. Simplifing Select Case
    By radar_jynx in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-09-2009, 03:30 PM
  4. Help simplifing and existing spreadsheet
    By zugfrig1978 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2008, 08:31 PM
  5. Comparison / Check Off between 2 excel sheets. HELP NEEDED!
    By sax30 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2005, 05:06 AM
  6. Comparison / Check Off between 2 excel sheets. HELP NEEDED!
    By sax30 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2005, 07:06 PM
  7. Comparison / Check Off between 2 excel sheets. HELP NEEDED!
    By sax30 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2005, 08:06 PM
  8. Help Simplifing Code
    By Joel Mills in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2005, 04:06 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