+ Reply to Thread
Results 1 to 2 of 2

If cell = cell +/- 1.5

  1. #1
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    183

    If cell = cell +/- 1.5

    Is there a way to make a formula or macro in excel which does this..

    If Cell(A1) = Cell(A2) +/- 1.5 then write YES

    Reason for needing this is that Vlookup function doesnt work, as there is a lot of decimal places.


    Thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    If you want to test if A1 is EXACTLY A2 +/- 1.5 then try this:
    =IF(OR(A2+1.5=A1,A2-1.5=A1),"YES","NO")

    If you want to test is A1 is BETWEEN A2 +/- 1.5, then this may be what you want:
    =IF(AND(A1>=A2-1.5,A1<=A2+1.5),"YES","NO")

    Does that help?

    Ron
    Last edited by Ron Coderre; 11-25-2005 at 12:47 PM.

+ 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