+ Reply to Thread
Results 1 to 5 of 5

Using Plus Minus in IF Formula

  1. #1
    Registered User
    Join Date
    02-15-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Using Plus Minus in IF Formula

    I am looking for a help to write a Formula in the following scenario

    Suppose In Cell A1 & A2 two numbers are there.
    I want to show a message in Cell A3, Say "Err" if the difference is higher than 1 and lower than -1
    If I need only to make one condition, say, higher than 1, I can write the formula as given below
    =if((A1-A2)>1,"Err","").
    But I need to integrate second condition. I request the members who know the solution, publish an answer.
    Best Regards
    Dominic

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Using Plus Minus in IF Formula

    Hi
    a3 cell =IF(OR((A1-A2)>1,(A1-A2)<-1),"Err","")
    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    02-15-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using Plus Minus in IF Formula

    There seems to be a minor mistake. The given formula is not working

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using Plus Minus in IF Formula

    Hi,

    I presume by "the difference is higher than 1 and lower than -1" you actually intended or, not and (it can't be simultaneously >1 and <-1)?

    =IF(ABS(A1-A2)>1,"Err","")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    02-15-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using Plus Minus in IF Formula

    Hi,
    The suggestion is working. Thanks
    Dominic

+ 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 to minus VAT at 20%
    By EmStar in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-16-2023, 05:19 AM
  2. [SOLVED] How to get the correct (minus) answer for a minus raised to a power
    By enginezzz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2013, 08:44 PM
  3. [SOLVED] I neeed help on changing a minus figure so it does not show a minus
    By Kirstg in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-24-2012, 11:44 AM
  4. [SOLVED] CHANGE TRAILING MINUS TO BRACKETS OR PRECEEDING MINUS
    By Socal Analyst looking for help in forum Excel General
    Replies: 2
    Last Post: 05-12-2006, 02:20 PM
  5. how do you count a column minus dupicates minus blanks.
    By notEXCELing in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2005, 08:48 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