+ Reply to Thread
Results 1 to 13 of 13

Reducing list of values by fixed amount until zero

  1. #1
    Registered User
    Join Date
    04-26-2020
    Location
    Japan
    MS-Off Ver
    Office Mac
    Posts
    17

    Reducing list of values by fixed amount until zero

    Hi,

    A fixed penalty of $16.78 is charged for every $50 in outstanding debt balances.
    E.g. If I want to clear a debt balance of $112 then I should be paying $16.78*3 in penalties.

    What formula can I use if I have a long list of different amounts of debt balances?
    I know I can use a long IF formula but i'm looking for a more compact, cleaner formula.

    Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Reducing list of values by fixed amount until zero

    It's unclear what your data looks like or how you would like it to look. Please upload an example spreadsheet as per the yellow banner at the top of the page.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Reducing list of values by fixed amount until zero

    Something like that?

    =ROUNDUP(112/50,0)*16.78

  4. #4
    Registered User
    Join Date
    04-26-2020
    Location
    Japan
    MS-Off Ver
    Office Mac
    Posts
    17

    Re: Reducing list of values by fixed amount until zero

    Hi ChemitB,

    Sorry for the oversight. Here it is.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Reducing list of values by fixed amount until zero

    If you round up the amounts then please check the formula for total amount:

    =+ROUNDUP(A2/50,0)*16.78

    And this one for the number of charges:
    =ROUNDUP(A2/50,0)


    Hope this is what you meant...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-26-2020
    Location
    Japan
    MS-Off Ver
    Office Mac
    Posts
    17

    Re: Reducing list of values by fixed amount until zero

    Worked like a charm! Thank you very much.

    If instead of a fixed charge, the charge was tiered based on the outstanding amount, how would the formula look?
    For example, first $50 incurs penalty of $16.78, second $50 incurs $25, etc.

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Reducing list of values by fixed amount until zero

    Hi,
    I used sumproduct/lookup array formula for this calculation.

    =SUMPRODUCT(LOOKUP(ROW(INDIRECT("1:"&B2)),{1,2,3,4;16.78,25,30,32}))

    For the example I took the below tiered rates for penalties, you can change it within the formula if needed:
    16.78
    25
    30
    32
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-26-2020
    Location
    Japan
    MS-Off Ver
    Office Mac
    Posts
    17

    Re: Reducing list of values by fixed amount until zero

    Belinda200,

    This is great. Again, many thanks.

    If you could just indulge me one final time:
    If the charge goes back to being a fixed charge i.e. $16.78, but we change the range from being fixed at $50 to a tiered basis.
    E.g. first $50 incurs penalty of $16.78, second $30 incurs $16.78, third $20 incurs $16.78.

  9. #9
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Reducing list of values by fixed amount until zero

    you upgrade the difficulty of your questions.......I feel like I'm in a test
    Well I have to think about it, maybe other memebers will know how to solve this faster than me.

  10. #10
    Registered User
    Join Date
    04-26-2020
    Location
    Japan
    MS-Off Ver
    Office Mac
    Posts
    17

    Re: Reducing list of values by fixed amount until zero

    lol. I was more of the opinion this last one was a downgrade. Thank you though. I hope someone else has the solution.

  11. #11
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Reducing list of values by fixed amount until zero

    OK, so I changed the # of charges according to the set of rules, but no instruction what is the rate charge for the remaining Amount surpasses $100
    so I left it empty...

    =IF(A2<=50,1,IF(AND(A2>50,A2<80),2,IF(AND(A2>=80,A2<=100),3,"")))

    The result is multiplied by 16.78
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    04-26-2020
    Location
    Japan
    MS-Off Ver
    Office Mac
    Posts
    17

    Re: Reducing list of values by fixed amount until zero

    Oh you did it! Youre the best! Arigatou gozaimasu!

  13. #13
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Reducing list of values by fixed amount until zero

    you're welcome.

    If your question is resolved, please mark it SOLVED using the thread tools

+ 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. Reducing the amount of CF code in a macro.
    By Graham Pall in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2015, 11:09 AM
  2. [SOLVED] Problem reducing a (sometimes) negative value by a fixed percentage
    By Dabooka in forum Excel General
    Replies: 3
    Last Post: 07-14-2015, 07:10 AM
  3. Replies: 2
    Last Post: 11-21-2014, 09:35 AM
  4. Reducing the amount of If/and statements to give a particular result
    By grandar in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 02-11-2014, 10:01 AM
  5. Replies: 5
    Last Post: 01-25-2014, 05:58 PM
  6. Tracking monthly payments and reducing the total by the amount of each payment.
    By easy365online in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-02-2012, 10:15 AM
  7. Replies: 13
    Last Post: 08-17-2008, 03:20 PM

Tags for this Thread

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