+ Reply to Thread
Results 1 to 5 of 5

If Function Working But Not Like I Need It To

Hybrid View

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    Georgia
    MS-Off Ver
    Excel 2010, 2013
    Posts
    10

    If Function Working But Not Like I Need It To

    =IF(G27>=2%,"X",IF(G27<=1.99%,"●"))
    I works if the number is positive but I need it to also work if it goes negative.

    Something like: =IF(G27>=±2%,"X",IF(G27<=±1.99%,"●"))
    Range of -2% - 2% & -1.99% - 1.99%
    "X" = Fail
    "●" = Pass
    Thanks For The Help

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If Function Working But Not Like I Need It To

    Hi,

    Perhaps

    Formula: copy to clipboard
    =IF(ABS(G27)>=2%,"X","●")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: If Function Working But Not Like I Need It To

    Maybe

    =IF(ABS(G27)>=2%,"X",IF(ABS(G27)<=1.99%,"●"))

    As there are no other possibilities (I assume, unless you don't want to include something like 1.999%) then maybe

    =IF(ABS(G27)>= 2%, "X", "●")

    or

    =IF(ISNUMBER(G27), IF(ABS(G27)>= 2%, "X", "●") ,"")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    10-14-2013
    Location
    Georgia
    MS-Off Ver
    Excel 2010, 2013
    Posts
    10

    Re: If Function Working But Not Like I Need It To

    Thanks for the help
    ChemistB the =IF(ABS(G27)>=2%,"X",IF(ABS(G27)<=1.99%,"●")) worked perfect.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If Function Working But Not Like I Need It To

    Quote Originally Posted by PsychoForJesus View Post
    Thanks for the help
    ChemistB the =IF(ABS(G27)>=2%,"X",IF(ABS(G27)<=1.99%,"●")) worked perfect.
    ...are you implying that the shorter version didn't?

+ 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. Replies: 1
    Last Post: 06-02-2015, 01:38 AM
  2. IF statement not working with text function and edate function.
    By joshnathan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-04-2013, 10:26 AM
  3. Excel Match Function not working with Right function.
    By swap579579 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-16-2013, 09:00 PM
  4. [SOLVED] Using the Split function with another function incorporated is not working correctly
    By highlystrung in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2013, 03:51 PM
  5. MATCH function within INDIRECT function not working
    By mgerada in forum Excel General
    Replies: 2
    Last Post: 09-04-2011, 08:37 AM
  6. Replies: 4
    Last Post: 12-21-2010, 04:34 PM
  7. [SOLVED] Working with Arrays, pasing from function to function
    By mikebres in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2006, 01: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