+ Reply to Thread
Results 1 to 4 of 4

compare 3 cells

  1. #1
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    compare 3 cells

    Good morning,

    i am sure this is relatively easy but i can't seem to wrap my mind around how to get it done.

    I am have 3 cells that i want to compare (A1,B1 and C1). by default al cell values are 0. what i need to know is if any 2 of the cells (or all 3) are both greater than 0. This could be as easy as the result being true or false.

    The reasoning for this is that at any time on my spreadsheet there can only be one of the cells with a value greater than 0. if multiple cells are greater than 0 then i have a problem to look into and this formula will tell me.

    thanks

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: compare 3 cells

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: compare 3 cells

    Try this

    =countIf(A1:C1,">0")>1
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: compare 3 cells

    Thanks! i tried the =IF(COUNTIF(A1:C1,">0")>=2,"Incorrect","OK") and it worked.

+ 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. Replies: 1
    Last Post: 12-13-2013, 10:28 PM
  3. Replies: 2
    Last Post: 09-06-2013, 02:25 PM
  4. Compare two cells, if equal move a third cells data to another cell
    By eriick in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2013, 05:38 PM
  5. Replies: 6
    Last Post: 05-30-2012, 03:09 PM
  6. Compare 2 cells on sheet1 with 2 cells on sheet2 and copy unmatched rows to sheet3
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2010, 07:56 AM
  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

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