+ Reply to Thread
Results 1 to 2 of 2

IF Function - Within Range

  1. #1
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    268

    IF Function - Within Range

    Hi Everyone!

    Would someone mind please assisting with writing an if statement? Basically I'm trying to compare two numbres to see if they are equal. The issue I'm having is they don't need to be exact. Is it possible to write one thats within 1 or -1? So for example, IF S8=I14 and S8 = 10 and S8=9.50 it would return "True". Because of rounding, they're never exact. So basically having a margin of error within 1.

    Any ideas on how I can do this?

  2. #2
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Tampa, Florida
    MS-Off Ver
    Excel 2013
    Posts
    142

    Re: IF Function - Within Range

    =IF(AND(S8>=I14-1,S8<=I14+1),"True","False")

+ 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: 11-24-2015, 03:00 AM
  2. Replies: 6
    Last Post: 11-08-2014, 07:07 PM
  3. Replies: 15
    Last Post: 06-24-2014, 09:27 AM
  4. Replies: 15
    Last Post: 09-10-2013, 05:31 AM
  5. Function CountColor(rColor As Range, rSumRange As Range)
    By DawnEllis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2013, 08:11 PM
  6. [SOLVED] Repeat Cut & Paste function with Range.offset function VBA
    By kitcargray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2012, 12:17 PM
  7. Pass range as variable to Range function
    By souvick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2011, 09:33 AM

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