+ Reply to Thread
Results 1 to 5 of 5

Need to get the text FALSE when dealing with a zero value cell using the OR function

  1. #1
    Registered User
    Join Date
    06-26-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    10

    Exclamation Need to get the text FALSE when dealing with a zero value cell using the OR function

    Hi,

    I created a really complex sheet for my work and figured out all sorts of formulas. But I am now stumped.

    A week ago, I did a formula that would come back as either TRUE or FALSE if a date fell within the week number of a sign off date that was manually entered in, as well as 6 months past it. Basically I wanted a reminder every 6 months after the person was signed off on our equipment to refresh them. And I had the reminder include the week number as well so that it would remind me for an entire week that they needed to refresh. The formula was as follows:

    =OR(WEEKNUM(EDATE(Sheet1!F2,6))=WEEKNUM(Sheet2!$B$1),WEEKNUM(Sheet1!F2)=WEEKNUM(Sheet2!$B$1)) -with $B$1 being the TODAY() function. F2 being the date it was looking at to compare to the today cell.

    It worked well initially. But now, it suddenly comes back TRUE for every blank cell (not truly blank apparently, checked with ISBLANK, but a cell with 0 value). I need to somehow add on to this formula a way to tell excel that if a cell contains a "0", then put in the text "FALSE". or a way to tell it that if the cell is a "0" or blank, to not do the formula. or third option, find a way to truly make the cell blank so that the equation returns a FALSE answer.

    I have tried this, but it got me no where:

    =IF(F2="0","FALSE",OR(WEEKNUM(EDATE(Sheet1!F2,6))=WEEKNUM(Sheet2!$B$1),WEEKNUM(Sheet1!F2)=WEEKNUM(Sheet2!$B$1)))

    Thank you for all your help!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Need to get the text FALSE when dealing with a zero value cell using the OR function

    Are the blanks actually 0 or "0" or perhaps even ""?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-26-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    10

    Re: Need to get the text FALSE when dealing with a zero value cell using the OR function

    I did the ISBLANK and it came back as false to the blank cells. so im assuming it is a 0 value

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Need to get the text FALSE when dealing with a zero value cell using the OR function

    ISBLANK doesn't mean the value in the cell is "0".

    Any change you could upload a sample workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  5. #5
    Registered User
    Join Date
    06-26-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    10

    Re: Need to get the text FALSE when dealing with a zero value cell using the OR function

    Sorry for the long pause. but I needed to edit information out. You will see that I was basically putting in the same formula to do conditional formating as well. There should only be 5 dates highlighted orange and labeled True on Sheet 2.

    FORUM SHEET.xlsx

    Thank you again

+ 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. if function - if false look out for next cell that meet criteria
    By greenie_addict in forum Excel General
    Replies: 4
    Last Post: 09-13-2012, 12:38 AM
  2. IF function...>cell ref is a formula so True is retd when False sh
    By Alison in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-31-2006, 08:03 PM
  3. Keep cell blank if condition is false in IF function
    By ruthslaughter in forum Excel General
    Replies: 2
    Last Post: 11-23-2005, 09:20 AM
  4. Replies: 3
    Last Post: 04-14-2005, 12:06 PM
  5. dealing with cell text limits
    By Walter Harley in forum Excel General
    Replies: 3
    Last Post: 03-05-2005, 01:07 PM

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