+ Reply to Thread
Results 1 to 7 of 7

Using IF AND formular to display a cell with "0" as Yes. But it also returns empty cell

  1. #1
    Registered User
    Join Date
    10-06-2011
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    34

    Using IF AND formular to display a cell with "0" as Yes. But it also returns empty cell

    I wrote an IF AND formular to display "Yes" for a cell with zero. but when the cell is also empty, it still returns a "Yes" instead of empty.

    any ideas how I can solve this please

    this is the formular:
    =IF(J2=3,"Yes",IF(AND(E2="",I2=0),"Yes","No"))

    when I2 = 0 it returns Yes
    Also with I2 = "", it still returns "Yes" instead of "No"

  2. #2
    Registered User
    Join Date
    09-24-2013
    Location
    Twin Cities, MN
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: Using IF AND formular to display a cell with "0" as Yes. But it also returns empty cel

    In your example, what is the value of J2 when I2=""?
    Last edited by minnesotaart; 04-14-2014 at 04:26 PM.

  3. #3
    Registered User
    Join Date
    10-06-2011
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    34

    Re: Using IF AND formular to display a cell with "0" as Yes. But it also returns empty cel

    Oh Okay. i thought I followed the rules when sending

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Using IF AND formular to display a cell with "0" as Yes. But it also returns empty cel

    Add a check to see if the cell is empty

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


    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  5. #5
    Registered User
    Join Date
    10-06-2011
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    34

    Re: Using IF AND formular to display a cell with "0" as Yes. But it also returns empty cel

    The value of J2 is still 3. the only cell that changed or changes is the I2

  6. #6
    Registered User
    Join Date
    10-06-2011
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    34

    Re: Using IF AND formular to display a cell with "0" as Yes. But it also returns empty cel

    Perfect!!! Thanks Alot. I've been going crazy

  7. #7
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Using IF AND formular to display a cell with "0" as Yes. But it also returns empty cel

    Excel sometimes has quirks that just need some tweaking.

+ 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. [SOLVED] IFERROR(VLOOKUP) That returns "0" when reference cell is empty
    By Sam Capricci in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-04-2013, 01:16 AM
  2. For Each Next returns "Empty" when Data in Cell
    By Matt Roberts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2005, 10:20 AM
  3. How can we formular a dynamic cell? i.e. =B2 as ="B"&"2"??
    By qatest in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. [SOLVED] How can we formular a dynamic cell? i.e. =B2 as ="B"&"2"??
    By qatest in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Replies: 3
    Last Post: 01-06-2005, 10: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