+ Reply to Thread
Results 1 to 13 of 13

Ignore If Blank & check multiple cells for equal values

  1. #1
    Registered User
    Join Date
    08-22-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    17

    Ignore If Blank & check multiple cells for equal values

    Hi

    I have a row of cells with values as 1,2 or blank cells.

    If A2 cell has value 2, B2 cell has blank value & then C2 has value 2, I need true in cell D2. Can we arrive true in cell D2 by using a formula?

    If A2 cell has value 2, B2 cell has blank value & then C2 has value 1, I need false in cell D2.

    Basically, I need the formula to ignore blank cells & check if the cells that have values have equal values or not.

    For example, please see attached file.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Ignore If Blank & check multiple cells for equal values

    Please Login or Register  to view this content.
    Make sure you data is NUMBER.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Ignore If Blank & check multiple cells for equal values

    Perhaps in J2 and copy down.

    =IF(AND(COUNTIF(A2:I2,1)>0,COUNTIF(A2:I2,2)>0),FALSE,TRUE)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Ignore If Blank & check multiple cells for equal values

    HI

    in your sheet you can use below formula in Cell J2 & Copy down

    =IF(MAX(A9:I9)=MIN(A9:I9),"TRUE","FALSE")
    Click on * below if you find this helpful

    Thanks,
    A

  5. #5
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Ignore If Blank & check multiple cells for equal values

    or may be..

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


    you can extend A:C
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  6. #6
    Registered User
    Join Date
    08-22-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Ignore If Blank & check multiple cells for equal values

    Thank you all for the quick help!

    I have 1 more thing which I forgot to mention. Apart from this condition, if all cells are blank, I need false to be shown. Would that be possible?

    Right now, in all your formulas, if all cells are blanks, then it shows true as answer. Is it possible to show flase instead of true for this condition?

    Thanks in advance!

  7. #7
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Ignore If Blank & check multiple cells for equal values

    use this

    =IF(MAX(A9:I9)=0,"FALSE",IF(MAX(A9:I9)=MIN(A9:I9),"TRUE","FALSE"))
    Last edited by amy_d2; 09-25-2013 at 04:28 AM. Reason: change in formula

  8. #8
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Ignore If Blank & check multiple cells for equal values

    Try this..

    =OR(SUMPRODUCT((($A2:$C2<>"")/COUNTIF($A2:$C2,$A2:$C2&"")))=1,COUNTBLANK(A2:C2))


    BTW.. if one cell is filled and other 2 are blank.. what should be the output.. ??

  9. #9
    Registered User
    Join Date
    08-22-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Ignore If Blank & check multiple cells for equal values

    Quote Originally Posted by Debraj Roy View Post
    Try this..

    =OR(SUMPRODUCT((($A2:$C2<>"")/COUNTIF($A2:$C2,$A2:$C2&"")))=1,COUNTBLANK(A2:C2))


    BTW.. if one cell is filled and other 2 are blank.. what should be the output.. ??
    I would need that as true. Thanks!

    All cells blanks=False
    few cells blanks, other cell or cells with value 2=True
    few cells blanks, other cell or cells with value 1=True
    few cells blanks, other cells with value 1 & 2=False

  10. #10
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Ignore If Blank & check multiple cells for equal values

    and above is working as per requirement.. ??

  11. #11
    Registered User
    Join Date
    08-22-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Ignore If Blank & check multiple cells for equal values

    Quote Originally Posted by Debraj Roy View Post
    and above is working as per requirement.. ??
    I tried your formula but all rows are showing true.Even for rows where there are 1's & 2's.

  12. #12
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Ignore If Blank & check multiple cells for equal values

    Please Login or Register  to view this content.
    array formulas = CTRL + SHIFT + ENTER

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Ignore If Blank & check multiple cells for equal values

    Just for testing...

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

+ 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. How can I make a macro ignore blank cells? - Blank Cells have formulas
    By mz1161 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2013, 08:54 AM
  2. 'All cells equal' check
    By steev_jd in forum Excel General
    Replies: 6
    Last Post: 07-05-2010, 11:20 AM
  3. Check range of cells for multiple values.
    By proepert in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-20-2010, 01:17 AM
  4. Array Function - ignore blank values
    By gillemi in forum Excel General
    Replies: 6
    Last Post: 06-13-2006, 04:10 AM
  5. [SOLVED] how can i ignore blank cells when multiple cells?
    By arash in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2005, 12:40 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