+ Reply to Thread
Results 1 to 5 of 5

IF AND with NOT(ISBLANK)

  1. #1
    Registered User
    Join Date
    04-01-2019
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    2

    IF AND with NOT(ISBLANK)

    On My spreadsheet, if cell D12 is NOT(ISBLANK) or in otherwords it has something in it, AND another cell Q12, is ISBLANK, cell p12 should say 1, otherwise 0.
    So if cell D12 hasn't got anything in it, or cell Q12 has got something in it, the answer should be 0.

    I wrote it like this:
    IF(AND(NOT(ISBLANK(D12)),ISBLANK(Q12)),1,0)
    Do I need and OR statement too? for the opposite calculation? Ive tried every combination.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: IF AND with NOT(ISBLANK)

    =if(and (D12<>"",Q12=""),1,0)
    Last edited by mehmetcik; 04-01-2019 at 04:48 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: IF AND with NOT(ISBLANK)

    That works for me.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: IF AND with NOT(ISBLANK)

    I was referring to your original formula. That said, I never use ISBLANK and would use mehmetcik's approach.

  5. #5
    Registered User
    Join Date
    04-01-2019
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    2

    Re: IF AND with NOT(ISBLANK)

    Thank you so much! I really overthought that! LOL

+ 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. Formula not working =IF(ISBLANK(N4),"",IF(ISBLANK(N4),"",N4-M4))
    By amthyst826 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2017, 12:26 PM
  2. [SOLVED] IF formula not working =IF(NOT(ISBLANK(M3)),"",IF(ISBLANK(L3),"",TODAY()-L3))
    By amthyst826 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2014, 02:37 PM
  3. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM
  4. [SOLVED] If(ISBLANK)
    By Blue Hornet in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  5. [SOLVED] If(ISBLANK)
    By Bill R in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  6. If(ISBLANK)
    By Bill R in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. If(ISBLANK)
    By Bill R in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

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