+ Reply to Thread
Results 1 to 10 of 10

Tolerance within formula for currency?

  1. #1
    Registered User
    Join Date
    05-24-2022
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    4

    Tolerance within formula for currency?

    Ok, I'm no Excel expert - very basic but I use google to work out things. But I'm stumped on this formula which uses IF statement:

    =IF(ABS(B7-B4)<=0.05,"OK",IF(B7>B4,"Over",IF(B7<B4,"Under")))

    Both B7 and B4 are currency cells ($0.00). I'm trying to have a tolerance of 0.05. Assuming B4 is $41.66, it works saying "Ok" if B7 is $41.61, or says "Under" if B7 is $41.60 BUT it fails if B7 is $41.71 because it says "Over" when it should say "Ok" as within the +/- 0.05c range. Why? And how do I fix it?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Tolerance within formula for currency?

    Hi
    without seeing the real data , a wild guess : https://docs.microsoft.com/en-US/off...ccurate-result
    The article explains methods to correct the error

  3. #3
    Registered User
    Join Date
    05-24-2022
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: Tolerance within formula for currency?

    Sorry, what else do you need me to clarify for you? The formula is exactly as in my spreadsheet and I've advised the field contents for B7 and B4 (the only two involved in this formula) and I've given the examples of where it does work but more importantly where it doesn't work. What else do you actually need me to give you? Sorry, I am new to Excel so perhaps I'm missing something. Should I upload my spreadsheet or something?

  4. #4
    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
    80,980

    Re: Tolerance within formula for currency?

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, 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.

  5. #5
    Forum Contributor
    Join Date
    09-03-2016
    Location
    Catania, Italy
    MS-Off Ver
    Excel 2019
    Posts
    164

    Re: Tolerance within formula for currency?

    Hello
    Try this =IF(round(ABS(B7-B4),2)<=0.05,"OK",IF(B7>B4,"Over","Under"))

    Hello,
    Mario

  6. #6
    Registered User
    Join Date
    05-24-2022
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: Tolerance within formula for currency?

    That works!!! Fantastic! I will google "Round" to work out why it works (I'm thinking the "2" is telling it to round to two decimal places but that is my guess so I will google). Thank you so much!!

  7. #7
    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
    80,980

    Re: Tolerance within formula for currency?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  8. #8
    Registered User
    Join Date
    05-24-2022
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: Tolerance within formula for currency?

    Ive done both of that. Thanks.

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Tolerance within formula for currency?

    Quote Originally Posted by Fatal Lordes View Post
    That works!!! Fantastic! I will google "Round" to work out why it works (I'm thinking the "2" is telling it to round to two decimal places but that is my guess so I will google). Thank you so much!!
    Just read my post #2 to understand why ROUND is necessary

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Tolerance within formula for currency?

    Quote Originally Posted by Fatal Lordes View Post
    Sorry, what else do you need me to clarify for you? The formula is exactly as in my spreadsheet and I've advised the field contents for B7 and B4 (the only two involved in this formula) and I've given the examples of where it does work but more importantly where it doesn't work. What else do you actually need me to give you? Sorry, I am new to Excel so perhaps I'm missing something. Should I upload my spreadsheet or something?
    If you were responding to me I don't see what's wrong with the provided information. Just read the article by Microsoft

+ 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] Formula for Calculating The Difference and Including a Tolerance
    By Robert_Ham in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 07-12-2021, 03:55 PM
  2. Tolerance Formula in Excel
    By Kakarot1911 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-20-2019, 10:26 AM
  3. Formula with date range tolerance
    By Peter Miles in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-22-2015, 03:17 AM
  4. adding a formula to recognise a time tolerance
    By cab1979 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-06-2014, 11:14 AM
  5. [SOLVED] Formula that contains currency not returning the results as currency
    By Triscia in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 07-17-2014, 03:02 PM
  6. Excel Date/Tolerance formula
    By flisters in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2013, 01:41 PM
  7. formula for true/false tolerance percent
    By geeve420 in forum Excel General
    Replies: 4
    Last Post: 08-07-2009, 01:59 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