+ Reply to Thread
Results 1 to 4 of 4

Help with IF formula

  1. #1
    Forum Contributor
    Join Date
    05-01-2015
    Location
    Kent, England
    MS-Off Ver
    2013
    Posts
    148

    Help with IF formula

    Hi All

    I need to put an "=" in a cell if the value in a B26 is less than -1 or greater than +1
    I need to put an "=" in a cell if the value in B26 is between -1 and 1

    I have the following formula but cant get them to work correctly. ( iam sure its something simple i have done)

    =IF(OR(B26<"$H$26",B26>"$H$27"),"","=") this is for between

    =IF(B26>$H$27,IF(B26>$H$26,"",""),"=") This is for <> than

    Thanks
    Rob

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Help with IF formula

    Try:

    =IF(OR(B26<$H$26,B26>$H$27),"","=")

  3. #3
    Forum Contributor
    Join Date
    05-01-2015
    Location
    Kent, England
    MS-Off Ver
    2013
    Posts
    148

    Re: Help with IF formula

    Worked a charm thanks you .

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Help with IF formula

    You could also do this:

    =IF(ABS(B26)<=1,"=","")

    Hope this helps.

    Pete

+ 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. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  2. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  3. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04: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