+ Reply to Thread
Results 1 to 7 of 7

Select the newest dates sum corresponding rows up to a cumulative value in a 3rd column

Hybrid View

  1. #1
    Registered User
    Join Date
    10-09-2020
    Location
    Calgary, Canada
    MS-Off Ver
    365
    Posts
    4

    Select the newest dates sum corresponding rows up to a cumulative value in a 3rd column

    I have a list of employees and I want to sum rows associate with a few values in those rows based on title and and least senior. Where this get a little more complicated is some employees are Part time (0.4, 0.53, or something less than 1 but larger than 0) and some are full time (1.00) and there are Casuals that are 0.

    The calculation needs to add up liability to a cumulative FTE amount such as 7.1 of the lowest employees seniority with a specific job title.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Select the newest dates sum corresponding rows up to a cumulative value in a 3rd colum

    I don't understand the rationale how the 8 employees were selected. Can you explain your logic. Why 8 and not 5?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-09-2020
    Location
    Calgary, Canada
    MS-Off Ver
    365
    Posts
    4

    Re: Select the newest dates sum corresponding rows up to a cumulative value in a 3rd colum

    The number is based on a reduction of staffing associated to services. The problem is the models asked by leadership keeps changing on how many to reduce. So tomorrow they may ask what about the impact of 5 or 10 or 22.5 does that answer your question .

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Select the newest dates sum corresponding rows up to a cumulative value in a 3rd colum

    In that case suggest you use the =Rank function to rank by date. Then you can use the sumifs function.

    v K L M
    1 Payout contracting
    2 78817.5 =RANK(E2,$E$2:$E$18,1) =SUMIFS($K$2:$K$18,$B$2:$B$18,20,$L$2:$L$18,">3")
    3 70155 =RANK(E3,$E$2:$E$18,1)
    4 72382.5 =RANK(E4,$E$2:$E$18,1)
    5 72382.5 =RANK(E5,$E$2:$E$18,1)
    6 87952.5 =RANK(E6,$E$2:$E$18,1)
    7 15414.21 =RANK(E7,$E$2:$E$18,1)
    8 42187.5 =RANK(E8,$E$2:$E$18,1)
    9 41015.625 =RANK(E9,$E$2:$E$18,1)
    10 25554.375 =RANK(E10,$E$2:$E$18,1)
    11 10837.5 =RANK(E11,$E$2:$E$18,1)
    12 20508.375 =RANK(E12,$E$2:$E$18,1)
    13 0 =RANK(E13,$E$2:$E$18,1)
    14 17320.875 =RANK(E14,$E$2:$E$18,1)
    15 14449.875 =RANK(E15,$E$2:$E$18,1)
    16 5779.95 =RANK(E16,$E$2:$E$18,1)
    17 9195.375 =RANK(E17,$E$2:$E$18,1)
    18 8361 =RANK(E18,$E$2:$E$18,1)

  5. #5
    Registered User
    Join Date
    10-09-2020
    Location
    Calgary, Canada
    MS-Off Ver
    365
    Posts
    4

    Re: Select the newest dates sum corresponding rows up to a cumulative value in a 3rd colum

    In the sample it is solve however the column F is not used in the function so when it changes or 3 is no longer the threshold/criterion then what. Ideally I would be able to have a way to enter a number in a field like 7 for the accumulated sum of the column F with maybe the other criteria for columns and it would figure out that 3 is the criterion for the rank and this formula would work but it seems that would be circular referencing.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Select the newest dates sum corresponding rows up to a cumulative value in a 3rd colum

    The way I figured it was you have 12 people in the Accounting Dept. You want to save X dollars. You insert a number to test, ie. 3 thus eliminating 8 bodies and determine your savings. If the number does not meet managements desire, change the number and test again. Note the math on the head count is always off by one. Really, can't think of another way to do this except trial and error.

    Maybe someone else has some thoughts here.

  7. #7
    Registered User
    Join Date
    10-09-2020
    Location
    Calgary, Canada
    MS-Off Ver
    365
    Posts
    4

    Re: Select the newest dates sum corresponding rows up to a cumulative value in a 3rd colum

    The question I get asked is what if we close these 3 divisions, how many accountants would we eliminate and what would that save if we were to only select the least senior of all our accountants across the organization.
    Thanks for you assistance and have a wonderful Covid free weekend!!!.

+ 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] Modification to the Newest file in a folder function - Getting a list of 'n' Newest files
    By yoursamrit2000 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2019, 07:22 AM
  2. Can't sort by newest to oldest if I have more blank cells than dates in a column
    By icordeiro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2017, 06:28 PM
  3. Replies: 3
    Last Post: 01-18-2017, 02:02 PM
  4. Replies: 2
    Last Post: 01-18-2017, 01:55 PM
  5. Replies: 1
    Last Post: 09-01-2016, 08:01 AM
  6. [SOLVED] Sort dates in column from oldest to newest...
    By ILoveYouExcel in forum Excel General
    Replies: 2
    Last Post: 06-11-2014, 02:11 PM
  7. Arranging Pivot table data from Newest to oldest to Newest does not appear
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2014, 06:53 AM

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