+ Reply to Thread
Results 1 to 14 of 14

If Function

  1. #1
    Registered User
    Join Date
    04-18-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    92

    If Function

    Anyone kind enough to tell me how top do this. Done it loads of times but now seem to have forgotten!

    Tax Rate

    0-145,000 = 0%
    145,001-250,000 = 2%
    250,001-325,000 = 5%
    325,001-750,000 = 10%
    Over 750,001 = 12%

    sales price is in cell k3



    thanks in advance

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

    Re: If Function

    Are you still using XL2003? If not, please update your profile.

    Here's one approach:

    =IF(K3<=145000,0,IF(K3<=250000,(K3-145000)*2%,IF(K3<=325000,(K3-250000)*5%+(K3-145000)*2%,IF(K3<=750000,(K3-325000)*10%+(K3-250000)*5%+(K3-145000)*2%,(K3-750000)*12%+(K3-325000)*10%+(K3-250000)*5%+(K3-145000)*2%))))

    but there are other ways that are not so tedious.

    Hope this helps.

    Pete

    EDIT: No, I don't think that's right - scrub that.

    Pete
    Last edited by Pete_UK; 02-01-2017 at 06:31 AM.

  3. #3
    Registered User
    Join Date
    04-18-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: If Function

    thanks . looks good

    its easy to forget this stuff even after 6 months !

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: If Function

    This should work... =LOOKUP(K3,{0,145001,250001,325001,750001},{0,0.02,0.05,0.1,0.12}) and format as percent.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

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

    Re: If Function

    Did you not see my EDIT? - I don't think the formula is correct, but I have to go out now, so I'll pick this up later.

    Pete

  6. #6
    Registered User
    Join Date
    04-18-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: If Function

    Correct . Both not working !

    The tax bands are not mutually exclusive ie need to be added up ie if the sales price is over 250,001 ie 300,000

    the tax would be zero on 0-145k and 5pc on 250k to 300k = 50k*5pc or 2,500
    Attached Files Attached Files

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: If Function

    If you want it as a total I'd change mine then to ... =K3*LOOKUP(K3,{0,145001,250001,325001,750001},{0,0.02,0.05,0.1,0.12})
    if I'm understanding your table correctly.

    EDIT: I see what Pete gave you and what I'm giving you are two very different formulas that would return different results. In his he is saying that you only tax the amount over 145000 and less than 250000 (or the difference of 105000) at 2% and you leave the first amount of 145000 alone (no tax) and he is doing that in each series. I'm simply giving you a tax value on each level so that when you have less than 145001 it is 0 but if it is less than 250001 your tax value is 2%. So at 250001 it is taxing everything down to 0 at 2%. I hope that makes sense. I didn't see anything in your post saying you were carving out the values.
    Last edited by Sam Capricci; 02-01-2017 at 07:38 AM.

  8. #8
    Registered User
    Join Date
    04-18-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: If Function

    sorry your understanding is incorrect

    taxation bands mean you pay the tax rate applicable to EACH band not at a single rate . thats why they use bands ! otherwise they would just use tax rates over x.

    so it needs to be calculated for each band then added up.

  9. #9
    Registered User
    Join Date
    04-18-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: If Function

    anyone know how to do this please ?

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

    Re: If Function

    Yes, I'm back now - I understood the problem, but I just didn't have time to give you the correct solution. Try this instead:

    =IF(K3<=145000,0,IF(K3<=250000,(K3-145000)*2%,IF(K3<=325000,(K3-250000)*5%+(250000-145000)*2%,IF(K3<=750000,(K3-325000)*10%+(325000-250000)*5%+(250000-145000)*2%,(K3-750000)*12%+(750000-325000)*10%+(325000-250000)*5%+(250000-145000)*2%))))

    It might be better to put those values and corresponding tax rates in a small table somewhere and refer to the appropriate cell references, so that if the tax thresholds or tax rates change in the future then you only have to update the table rather than change the formula.

    Hope this helps.

    Pete

  11. #11
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: If Function

    I used Match and Index formulas and came to the same results as Pete_UK
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  12. #12
    Registered User
    Join Date
    04-18-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: If Function

    thanks

    bang on

  13. #13
    Registered User
    Join Date
    04-18-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: If Function

    thanks also correct

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

    Re: If Function

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post and mark this thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    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. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  2. VBA code for custom function that returns detail results of array function
    By onechipshot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2015, 06:30 PM
  3. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  4. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  5. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. Replies: 2
    Last Post: 03-20-2009, 01:29 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