+ Reply to Thread
Results 1 to 3 of 3

Help with IF function and positive or negative results

  1. #1
    Registered User
    Join Date
    02-03-2005
    Posts
    2

    Help with IF function and positive or negative results

    Here is my situation. I need to create a formula that will give me a 0 (zero) if the result is between 5 and -5. If the result is outside that range (for example 6 or -6) I want the value to show up as 6 or -6.

    So if A1 - B1 is between 5 and -5 I want the cell to just show a zero as the result but if it is outside that range (positive or negative) I want the result to show. I hope I explained this well enough.

    Thank you very much to all who respond

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451
    Try this:

    =IF(AND(A1>=-5,A1<=5),0,A1)

  3. #3
    Registered User
    Join Date
    02-03-2005
    Posts
    2
    Thanks Cutter!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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