+ Reply to Thread
Results 1 to 7 of 7

Compare 4 Cells, if they have the same value with 3 different Possibilities

  1. #1
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Compare 4 Cells, if they have the same value with 3 different Possibilities

    Good afternoon,

    I am struggling trying to compare 4 Cells that should contain either 4*1 or 4*2 or 4*3.

    The target is, to find in Cell A1:A4, either only 1s or either only 2s or either only 3s and if so, then it is True and if not, it is False.

    If I use the formula:

    =AND(EXACT(A1:A4,B2))

    it works but I have no clue, how to extend it, so I also can check for value 2 or 3? Or maybe with match but here also stuck.

    Can you please help?

    Thank you,

    Mike

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,825

    Re: Compare 4 Cells, if they have the same value with 3 different Possibilities

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Re: Compare 4 Cells, if they have the same value with 3 different Possibilities

    Thank you Ali,

    Excel is uploaded.
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Compare 4 Cells, if they have the same value with 3 different Possibilities

    Please try

    =STDEV(A1:A4)=0
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,825

    Re: Compare 4 Cells, if they have the same value with 3 different Possibilities

    Target is, that when Column A Row1-4 is checked, that there shall be only 1s, 2s or 3rs, then it that would be good and shall show True and if not, it shall be False.
    Sorry - this means absolutely nothing to me. The sample file needs manually mocked up data, not a formula that is not doing what you want. Please annotate the workbook to show exactly what you are referring to. There shall be only 1s, 2s and 3s where?

    Not at all clear (to me).

  6. #6
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Re: Compare 4 Cells, if they have the same value with 3 different Possibilities

    WOW, that did the trick, thank you very much Bo_Ry (so simple!)

  7. #7
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Re: Compare 4 Cells, if they have the same value with 3 different Possibilities

    Thank you Ali,

    Bo_Ry did solve the issue... and sorry for the complicated explanation...good that Bo_Ry was able to understand my cryptic message

+ 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: 3
    Last Post: 04-25-2021, 09:56 PM
  2. [SOLVED] checking 2 cells with multiple possibilities
    By kickic in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-18-2018, 10:20 AM
  3. [SOLVED] Formula reliant on two cells with six possibilities
    By splottoman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-16-2017, 03:43 PM
  4. [SOLVED] IF formula to match 2 different cells to 4 key possibilities
    By andyoungy in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-09-2015, 01:44 PM
  5. [SOLVED] Combine cells to have all possibilities of the combined cells
    By soroh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2012, 04:46 AM
  6. Match one out of several possibilities
    By carojvi in forum Excel General
    Replies: 8
    Last Post: 07-15-2011, 12:43 PM
  7. [SOLVED] How do I compare cells and if FALSE compare to next cell in EXCEL
    By Cindie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-24-2006, 01:35 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