+ Reply to Thread
Results 1 to 8 of 8

Function/Formula that will exclude a worker on a day.

  1. #1
    Registered User
    Join Date
    03-27-2020
    Location
    Philippines
    MS-Off Ver
    MS Office 2016
    Posts
    8

    Function/Formula that will exclude a worker on a day.

    Good day experts! I have an excel problem that I need help with.

    Case:

    I have four workers that work from Monday to Sunday, but sometimes not all of them are present on a day. There are times only two works, sometimes 3, etc.

    Let's take a look at Monday Sheet, E8. That is the total quantity of the product with a rate of 0.7 per piece. It needs to be divided to my workers from B10 to B13 with a 0.7 rate per piece (E8 * 0.7 / 4*). *My problem now is, what if M1 is absent on Monday? Now I need to divide E8 into three workers instead of 4. I'm thinking of a checkbox or any besides A10 to A13 that will disable that worker's cell so they are not included on that day, and E8 will now be divided depending on who works on that day.

    Any help or guide is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Function/Formula that will exclude a worker on a day.

    Where do you record the number of workers that are present on each day?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    03-27-2020
    Location
    Philippines
    MS-Off Ver
    MS Office 2016
    Posts
    8

    Re: Function/Formula that will exclude a worker on a day.

    We record the attendance of workers manually—a notebook. My business is not computerized. I only created an excel to compute their salary faster.
    Last edited by bjayetnap; 11-30-2021 at 04:46 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Function/Formula that will exclude a worker on a day.

    Yes. fine. But Excel needs to know what the denominator is going to be??!! Look at Monday, for example. How will Excel KNOW whether to divide by 1, or 2, or 3, or 4???

  5. #5
    Registered User
    Join Date
    03-27-2020
    Location
    Philippines
    MS-Off Ver
    MS Office 2016
    Posts
    8

    Re: Function/Formula that will exclude a worker on a day.

    I don't know if I did it right. I added remarks on A11 to A14 using data validation. An updated worksheet is attached.
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Function/Formula that will exclude a worker on a day.

    Perfect. Use this:

    =IF(A11="A",0,$E$8*0.7/(COUNTIF($A$11:$A$14,"P")))

    copied down.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-27-2020
    Location
    Philippines
    MS-Off Ver
    MS Office 2016
    Posts
    8

    Re: Function/Formula that will exclude a worker on a day.

    Quote Originally Posted by Glenn Kennedy View Post
    Perfect. Use this:

    =IF(A11="A",0,$E$8*0.7/(COUNTIF($A$11:$A$14,"P")))

    copied down.
    Thank you!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Function/Formula that will exclude a worker on a day.

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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] Next Worker from List
    By rwaugh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-22-2021, 01:59 PM
  2. [SOLVED] Formula to exclude weekends from function but then to "catch-up" function on next day
    By jayidhh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2021, 05:09 PM
  3. Replies: 4
    Last Post: 04-21-2020, 09:13 AM
  4. Print Worker if between
    By Squall13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2011, 04:34 PM
  5. Replies: 5
    Last Post: 08-02-2010, 07:25 PM
  6. Exclude the lowest value in a SUM function
    By 5nicole5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2010, 04:23 PM
  7. Help with a formula:co-worker designed
    By Ltat42a in forum Excel General
    Replies: 3
    Last Post: 11-27-2007, 04:18 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