+ Reply to Thread
Results 1 to 2 of 2

counting penalties in an array

  1. #1
    Registered User
    Join Date
    04-23-2019
    Location
    Virginia
    MS-Off Ver
    365
    Posts
    3

    counting penalties in an array

    Folks,
    I have a problem in which a have a number of assets are going to a number of locations. When the number of cumulative number of assets exceeds the number of assets available they are assessed a penalty associated with the previous location they serviced. In the attached example the first instance this happens is Location 5 (cumulative number of assets is 40, they are 30 available - therefore the entity should be charge 5 units (location 5 + 2 penalty associated from the last location in this case 3).

    vr
    Ricexample.xlsx

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: counting penalties in an array

    Hi,

    an attempt: in E8 to be copied to the right.

    =IF(MAX(E4:E5)>30,E7+LOOKUP(2,1/($D7:D7),$D7:D7),0)

    Example: under location 8, formula returns 9 (5+4)

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

+ 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. Calculating Penalties
    By Nikunp in forum Excel General
    Replies: 6
    Last Post: 07-03-2017, 12:42 PM
  2. [SOLVED] Need formula to calculate meal penalties
    By Calc7827 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-18-2015, 10:40 AM
  3. Calculating Hours For Shift Penalties
    By Cam_M in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2014, 12:39 PM
  4. Late payment penalties (Calculation)
    By tric_maq in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-08-2013, 02:30 PM
  5. Penalties
    By lukadrugo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2012, 03:20 PM
  6. Weekly roster costing with penalties
    By GORDOGK in forum Excel General
    Replies: 2
    Last Post: 08-04-2012, 07:32 PM
  7. Excel 2007 : Penalties for cross country
    By Spike0907 in forum Excel General
    Replies: 5
    Last Post: 09-13-2010, 06:15 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