+ Reply to Thread
Results 1 to 9 of 9

How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

  1. #1
    Registered User
    Join Date
    05-03-2013
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    56

    How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

    Hello

    I hope you can help me. I have a column with values and another with the following months values. I want to insert a new column and formula which compares the 2 values and states Yes or No to indicate whether the newer value is within 10% +/- tolerance. I know its some form of IF statement but dont know how or if possible?

    Thanks in advance

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

    Still on Excel 2016?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,098

    Re: How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

    One way:

    =IF(ABS((B2-A2)/A2)<0.1,"Yes","No")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  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,765

    Re: How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

    What columns are you using? Assuming A and B for the values, then you can use this in C2:

    =IF(ABS(A2-B2)/A2<0.1,"Y","N")

    Copy down as required.

    Hope this helps.

    Pete

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,098

    Re: How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

    or, if you have updated from Excel 2016 to O365... delete ALL expected results and use:

    =MAP(A2:A21,B2:B21,LAMBDA(a,b,IF(ABS((b-a)/a)<0.1,"Yes","No")))

    It spills down automatically.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-03-2013
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    56

    Re: How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

    You guys are absolute legends. If the values are in columns F and L how would that change things? (although its no hardship for me to move them to A and B I guess)

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,459

    Re: How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,459

    Re: How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

    If the values are in columns F and L how would that change things?
    Please change A and B in F and L

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

    Re: How to return a Yes or No to indicate if the value in one cell is plus or minus 10%

    Quote Originally Posted by darrenj1471 View Post
    You guys are absolute legends. If the values are in columns F and L how would that change things? (although its no hardship for me to move them to A and B I guess)
    Use F2 instead of A2 and L2 instead of B2 in the example formulae that have been suggested.

    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. [SOLVED] Adding a MAX to a formula to prevent a return of a minus result
    By Marvo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2021, 06:24 AM
  2. [SOLVED] When minus cells return value if error
    By muss1210 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2017, 11:04 AM
  3. [SOLVED] Lookup Date minus 1 day and return Values from the Matching Headings in 2 Worksheets
    By hammer2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2015, 09:07 AM
  4. [SOLVED] Swits leading minus and put minus infront of numbers without macro
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2015, 11:40 AM
  5. How to return a balnk cell if the result of an = is a minus
    By jonboy0766 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2013, 01:22 PM
  6. Return value of col. A based on max of col. B minus single cell
    By ConfusedAboutExcel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2013, 04:34 PM
  7. Replies: 7
    Last Post: 03-14-2012, 12:28 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