+ Reply to Thread
Results 1 to 6 of 6

Formula to count # emp with carry over days by function / location

Hybrid View

  1. #1
    Registered User
    Join Date
    04-04-2017
    Location
    LEMONT
    MS-Off Ver
    Office 13
    Posts
    50

    Question Formula to count # emp with carry over days by function / location

    Hello,

    I have attached a small example of worksheet.
    Two worksheets: summary and detail. I can not add any columns or calculations on the detail worksheet.

    On summary worksheet, I need to count the number of employees that still have remaining carryover days from last year by function (sales, operation, etc) & by location.

    Cost center on detail wrksht is the function; first 4 characters 3811 is sales.
    Detail worksheet has 2 other columns named Carryover & Used.
    I can not find a calculation that works for me.
    Any help would be appreciated.

    TIA
    Regards,
    Jan
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: Formula to count # emp with carry over days by function / location

    In B3 enter
    =SUMPRODUCT(--(TRIM(detail!$A$5:$A$18)=TRIM(summary!A3)) * --(LEFT(detail!$B$5:$B$18,4)="3811") * detail!$E$5:$E$18)

    copy down
    then change "3811" to the CS and OPS designation for those in the corresponding cells.

    You cannot include the blank row 4 on the Detail sheet in this formula.

  3. #3
    Registered User
    Join Date
    04-04-2017
    Location
    LEMONT
    MS-Off Ver
    Office 13
    Posts
    50

    Re: Formula to count # emp with carry over days by function / location

    Hi,

    That is not the answer and may be due to me not explaining correctly. It evens me the total number of carry over days.
    Column E on detail is the number of vacation carry over days at beginning of 2017.
    Column F on detail worksheet is the number of carry over days that have been used in 2017 as of date of report.
    I need to find out the number of employees that still have carry over days that have not been used so it would be a calculation between E-F.

    TIA,
    Jan

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,952

    Re: Formula to count # emp with carry over days by function / location

    See if this formula works for you:
    Formula: copy to clipboard
    =SUMPRODUCT((TRIM(detail!A$4:A$25)=A3)*(LEFT(detail!B$4:B$25,4)="3811")*(detail!E$4:E$25-detail!F$4:F$25>0))
    1) Select cell B3 on the summary sheet,
    2) Paste the formula into the formula bar and press the Enter key,
    3) Copy by dragging the fill handle down to cell B7.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    04-04-2017
    Location
    LEMONT
    MS-Off Ver
    Office 13
    Posts
    50

    Re: Formula to count # emp with carry over days by function / location

    Hi JeteMc,

    Thank you. That was the formula I needed.

    Regards,
    Jan

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,952

    Re: Formula to count # emp with carry over days by function / location

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

+ 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. Count if formula to count absent days
    By salsi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2017, 02:07 AM
  2. Replies: 13
    Last Post: 09-22-2016, 09:18 AM
  3. Trying to create a formula to count days based on 8 hour days
    By meadnl89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-03-2016, 06:41 PM
  4. [SOLVED] Formula to count days since, using today function?
    By Johnny247 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-11-2014, 03:27 PM
  5. Replies: 5
    Last Post: 08-29-2012, 05:25 PM
  6. Carry Values Right Of Decimal Pt to Another Location
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2011, 04:04 PM
  7. Function to count days of year
    By lehainam in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2005, 04:34 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