+ Reply to Thread
Results 1 to 7 of 7

If cell value is less than or equal to, OR greater than or equal to

  1. #1
    Registered User
    Join Date
    03-23-2017
    Location
    Southampton, England
    MS-Off Ver
    2010
    Posts
    10

    If cell value is less than or equal to, OR greater than or equal to

    Good afternoon,

    I'm trying to get a cell to display either "HIT" or "MISS" based on the value of another cell.

    So, I currently have A8 set as;

    Please Login or Register  to view this content.
    This is the difference in days between two dates

    I would like to set B8 to be the HIT or MISS cell.

    HIT should be displayed when the value of A8 is within -7 to 7

    MISS should be displayed when the value is greater than or equal to -8 ... OR .... greater than or equal to 8

    So basically, I have a seven day window either side of the target date for the value to show HIT - anything outside of the target window needs to show MISS

    Any assistance would be very gratefully appreciated

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,880

    Re: If cell value is less than or equal to, OR greater than or equal to

    Something like below?
    =IF(ABS(A8)<=7,"HIT","MISS")

    Edit: Other variations.
    =IF(MEDIAN(A8,-7,7)=A8,"HIT","MISS")
    =CHOOSE((MEDIAN(A8,-7,7)=A8)+1,"MISS","HIT")
    Last edited by CK76; 06-07-2017 at 11:03 AM.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    03-23-2017
    Location
    Southampton, England
    MS-Off Ver
    2010
    Posts
    10

    Re: If cell value is less than or equal to, OR greater than or equal to

    Brilliant .. thank you for the swift response

  4. #4
    Registered User
    Join Date
    03-23-2017
    Location
    Southampton, England
    MS-Off Ver
    2010
    Posts
    10

    Re: If cell value is less than or equal to, OR greater than or equal to

    Hmmm .. If I don't have a date yet for the formula to calculate from, HIT is constantly displayed.

    Is there anything that can be added to keep the cell blank until a date is added into AE8 ?

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If cell value is less than or equal to, OR greater than or equal to

    Quote Originally Posted by Pacific_Quest View Post
    Hmmm .. If I don't have a date yet for the formula to calculate from, HIT is constantly displayed.

    Is there anything that can be added to keep the cell blank until a date is added into AE8 ?
    You can include this:

    =IF(A8="","",formula)

    Where formula is whatever formula you have already (not including the "=" in the beginning).

  6. #6
    Registered User
    Join Date
    03-23-2017
    Location
    Southampton, England
    MS-Off Ver
    2010
    Posts
    10

    Re: If cell value is less than or equal to, OR greater than or equal to

    Hi 63falcondude,

    I'm trying this, but I keep getting error's;

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-23-2017
    Location
    Southampton, England
    MS-Off Ver
    2010
    Posts
    10

    Re: If cell value is less than or equal to, OR greater than or equal to

    Fixed it

    Please Login or Register  to view this content.

+ 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] IF date is greater than or equal to X but less than or equal to y
    By LloydGilmore in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-09-2019, 05:35 AM
  2. Filter column B by equal or greater than 31 but less than or equal to 60
    By kop1ko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2015, 04:11 PM
  3. Change cell value to zero if greater than or equal to one in a range
    By ExelDummy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2015, 04:23 PM
  4. SumIfs containing a greater than or equal to And less than or equal to
    By teton88 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-15-2014, 07:47 PM
  5. [SOLVED] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 PM
  6. [SOLVED] if cell value is greater than or equal to 2 change its value to 1
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-25-2012, 03:03 PM
  7. Greater than equal to conditional format only if cell contains value - macro
    By lukestkd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 07:50 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