+ Reply to Thread
Results 1 to 20 of 20

Show ERROR if result is not within 0.05% of any of 8 percentage points

  1. #1
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Show ERROR if result is not within 0.05% of any of 8 percentage points

    Hello All

    Hope someone can help.

    Column O has a formula which calculates the percentage of 2 other cells, this percentage must be with 0.05% of any of the below percentages which are in a separate sheet

    4.29%
    5.65%
    5.91%
    7.68%
    8.81%
    9.72%
    11.72%
    13.51%

    If the result is within 0.05% either way of ANY of those figures then OK if not then ERROR

    Thank you for any help

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    My first inclination would be to use a lookup table and lookup function.

    1) Build lookup table (note that you haven't shared anything about the other sheet, so I am just entering the values here):
    Please Login or Register  to view this content.
    2) A lookup function with the approximate match option to return the desired result =VLOOKUP(O5,absolute_reference_to_lookup_table,2,TRUE). Most tutorials on the internet demonstrate only the exact match behavior of Excel's lookup functions, so I like this tutorial that actually discusses the approximate match behavior: https://www.ablebits.com/office-addi...ximate-vlookup

    Would an approach like that be suitable for you?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    Thank you for the reply

    Ive never used lookup tables so not sure but I will try

    The other sheet which is only for reference simply shows monthly options and % cost of credit
    Months %interest
    6 4.29%
    10 5.65%
    12 5.91%
    18 7.68%
    20 8.81%
    24 9.72%
    30 11.72%
    36 13.51%

    Staff manually enter the loan value in column J and manually enter the cost to us in Column L

    Column J Column K Column L Column M
    Loan Amount Monthly Payments "IFC Subsidy Cost" Percentage Subsidy
    £5,000 £417 £500.00 10.00%

    Column M calculates L/J as a percentage
    We simply need to check that this figure is within the parameters 0.05% depending on the monthly term. This should expose any inputting errors

    I will look into the tutorial you suggested


    Thanks

  4. #4
    Forum Contributor
    Join Date
    02-04-2017
    Location
    chennai
    MS-Off Ver
    MS OFFICE 365
    Posts
    253

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    Dear POncho147

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


    my understands my knowledge i try this formula. you get any error or you get any wrongs formula please attached the sample workbook

  5. #5
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    THanks for the reply but im not sure how this would work as I need to check if the figure in column M is within 0.05% of any of the figures in the %interest column

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    Please attach a sample workbook.

  7. #7
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    Copy of IFC TEST.xlsm

    Column O shows the subsidy which cannot be more than 0.05% away from any of the percentage points in table in IFC Terms sheet

    Column R needs to show "ERROR" or a message of my choice if this figure is more than 0.05% either way
    ALl greyed out columns will be locked, others are manually entered

    Percentage rates change according to term which is in column I and a dropdown of the 8 choices



    Hope that helps

    Thank you for any help

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    Try, =IF(ABS(O15-INDEX(LookupTable[Interest],MATCH(I15,LookupTable[IFC Terms],0)))<=0.05%,"OK","ERROR")

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    Using the lookup table approach I suggested, I:

    1) In IFC Terms, I build my lookup table. Something like
    1a) in column E, I enter each value from column B twice: 6,6,10,10,12,12,...
    1b) in column F, I alternate the values 0.95 and 1.05
    1c) in column G, I multiply each value from column C with the appropriate value from column F =VLOOKUP(E2,$B$2:$C$9,2,TRUE)*F2
    1d) enter a 0% value at the top of column G.
    1e) alternate error, okay values in column H.
    Please Login or Register  to view this content.
    2) In 5 Week IFC column R, I use a simple lookup formula =VLOOKUP(O14,'IFC Terms'!$G$1:$H$20,2,TRUE)

    Will something like that work for you?

  10. #10
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    Thank you so much for your replies and time to help MrShorty but as I havent used lookup tables before, I tried josephteh's suggestion above and it works perfectly.


    Thanks you to all

  11. #11
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    THis is fantastic josephteh


    Thank you very much

  12. #12
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    HI joseephteh

    Could I ask you to help with a little alteration of this task please?

    INstead of allowing users to input the subsidy cost in column L
    Would it be easier/possible to have this figure auto calculated from the term in column I , the lookup table of interest rates and the loan amount in column J

    This would require
    Column O to use the term in the lookup table to show the correct percentage
    Column L to calculate the subsidy by using the % rate shown in Column O and the loan amount in column J

    I hope thats clear :/



    Thanks again for any help

  13. #13
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    I have no idea how you calculate the subsidy cost.

  14. #14
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    it is a percentage of the loan value

    Percentage that is in the lookup table which varies according to the term

    The figure was manually added which is why we needed the error check which you kindly provided. However, I have convinced the powers that be that it would be much more efficient for us to auto-populate this figure by using the term to ascertain the percentage and then use the percentage of the loan value to give the subsidy cost



    Thanks for looking
    Last edited by POncho147; 12-27-2023 at 11:56 AM.

  15. #15
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    You have not answered my question: what is the formula for the subsidy cost? Can you give an example of what you have got?

  16. #16
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    The subsidy cost is entered manually from the statement the lenders send to us and is based on the interest rate they charge us depending on the term of the loan

    Say the loan value £1000
    Terms taken from the lookup table

    6 months = 4.29%
    10 months = 5.65%
    12 months = 5.91%
    18 months = 7.68%
    20 months = 8.81%
    24 months = 9.72%
    30 months = 11.69%
    36 months = 13.51%

    subsidy cost in the case of a 12month term would be 5.91% of £1000
    In the sheet COlumn J is loan value and column O is percentage subsidy (taken from lookup table above) so simply J15*O15 (£1000*5.91%)

    Looking at this, I think all I need is for column O(subsidy %) to be a formula that enters the correct % from the lookup table depending on the Term chosen in Column I which is partly what you did last time.
    That way, I could then just have subsidy cost using the simple formula above J15*O15


    Thanks again

  17. #17
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    The formula for Percentage Subsidy is: =INDEX(LookupTable[Interest],MATCH(I15,LookupTable[IFC Terms],0)).

    How did you get £300 Subsidy Cost in your example?

  18. #18
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    THanks again for your help but I think ive found the answer


    =VLOOKUP(I15, 'IFC Terms'!B:C, 2, FALSE)

    This appears to work, would you agree this is correct based on the above and the sheet I attached



    Thanks

  19. #19
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    Yes, VLOOKUP can be used instead of INDEX+MATCH. You have to watch out though that no columns should be added between columns B and C, otherwise VLOOKUP will fail.

  20. #20
    Registered User
    Join Date
    10-06-2021
    Location
    Lancashire
    MS-Off Ver
    365
    Posts
    18

    Re: Show ERROR if result is not within 0.05% of any of 8 percentage points

    Thanks again

    I will also try your way, hopefully learn a bit

    The £300 figure was just a manually entered one which I used to test the other formulas, sorry if it confused things


    Cheers

+ 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] How can I change the result of a #REF error to show a dash (-) instead of a 0 value?
    By marcb1974 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2022, 03:03 PM
  2. [SOLVED] How can I change the result of a #REF error to show a dash (-) instead of a 0 value?
    By marcb1974 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2022, 12:19 PM
  3. Show Tasks as Lines and Show Time Points' bars on X-Axis
    By pjvyas in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 09-29-2019, 05:14 AM
  4. [SOLVED] Formula to show percentage difference for one column and then items needed based on result
    By rhett7660 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2016, 01:14 PM
  5. Replies: 5
    Last Post: 08-05-2015, 06:18 PM
  6. Color chart data points/marker points vba error
    By nmckever in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-12-2014, 07:10 AM
  7. ACCESS query result show "#ERROR',How can i replace it with 0
    By andrewyang in forum Access Tables & Databases
    Replies: 2
    Last Post: 12-05-2012, 06:18 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