+ Reply to Thread
Results 1 to 5 of 5

Compare 3 or more cells

  1. #1
    Registered User
    Join Date
    11-04-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    1

    Compare 3 or more cells

    Col1 Col2 Col2 col4 Result
    4 4 4 4 T
    4 4 1 1 F
    1 4 3 4 T
    2 4 1 3 F
    2 4 3 3 T

    I want to compare above 4 columns and get result as T or F as per following condition.

    Condition 1
    If cell value is 3 or 4 and

    Condition 2
    3 out of 4 should be fulfilled condition1 then result is T otherwise F.

    Please help me to resolve this. If you need further details please let me know.

    Cheers

    Sama

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Compare 3 or more cells

    Hi

    Try
    Please Login or Register  to view this content.
    rylo

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Compare 3 or more cells

    try this formula in cell A5 assuming you have your 4 data in cells A1 to A4.
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Compare 3 or more cells

    try this....
    =IF(COUNTIF(A2:D2,">="&3)>=3,"T","F")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Compare 3 or more cells

    or maybe this one.
    Condition 2
    3 out of 4 should be fulfilled condition1 then result is T otherwise F.
    =IF(OR(COUNTIF(A1:D1,3)>2,COUNTIF(A1:D1,4)>2),TRUE,FALSE)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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