+ Reply to Thread
Results 1 to 8 of 8

Calculate amounts depending on working days

  1. #1
    Forum Contributor
    Join Date
    03-19-2020
    Location
    Greece
    MS-Off Ver
    office 365
    Posts
    125

    Calculate amounts depending on working days

    Hi to all,

    I have for example 10 people working in my company with different salaries, i need to calculate the total amount per day depending on the salaries of working staff (if 1 means he is working)
    On the example cell C13 should be 49950 as everyone is working. On D13 36321 as some of my staff is missing that day.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Calculate amounts depending on working days

    In C13 copied across:

    =SUMPRODUCT((C3:C12=1)*$L$3:$L$12)

    or just:

    =SUMPRODUCT(C3:C12*$L$3:$L$12)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,830

    Re: Calculate amounts depending on working days

    edit - answered as i was typing

    will the table and names line up as shown
    a simple
    =SUMPRODUCT(($L$3:$L$12)*(C$3:C$12=1))
    will work for that
    simply adds up the row value if there is a 1 in the row
    but if the names may be in any order and different then may need to rethink

    otherwise how will the data change
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    03-19-2020
    Location
    Greece
    MS-Off Ver
    office 365
    Posts
    125

    Re: Calculate amounts depending on working days

    Thank you both for your answers, it is working as mentioned, my mistake i didnt mention that what etaf wrote.... They names are in different order.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,830

    Re: Calculate amounts depending on working days

    try
    =SUMPRODUCT(($L$3:$L$12)*(C$3:C$12=1)*($B$3:$B$12=$K$3:$K$12))
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Calculate amounts depending on working days

    Seen, but no response ...

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  7. #7
    Forum Contributor
    Join Date
    03-19-2020
    Location
    Greece
    MS-Off Ver
    office 365
    Posts
    125

    Re: Calculate amounts depending on working days

    Thank you very much, it is working perfectly

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,830

    Re: Calculate amounts depending on working days

    you are welcome

+ 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. Formula to calculate days overdue depending on the status
    By jenbug15 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2021, 10:11 AM
  2. How to calculate a shift cell depending on number of days
    By didierkassas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2020, 06:26 AM
  3. [SOLVED] Formula to calculate working days and calendar days per month-year ?
    By donny007 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-05-2018, 06:23 PM
  4. Returing working days depending on two dates
    By Szwadron6 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2017, 10:20 AM
  5. Calculate total working days and excepted leave days
    By megaiooo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2013, 09:29 AM
  6. [SOLVED] Calculate number of days depending on some date criteria
    By rickyilas in forum Excel General
    Replies: 5
    Last Post: 05-23-2012, 10:07 PM
  7. Grouping amounts based on working days
    By obionenairobi in forum Excel General
    Replies: 9
    Last Post: 10-02-2010, 05:00 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