Calculate if staff are still enrolled in tasks

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
209
Office Version
  1. 365
Platform
  1. Windows
Was trying to do this via a pivot table. Need to work out who is still enrolled in at least 1 task. There may be better ways to work this out, just after the simplest method. Will most likely need to report on the Dept status of completion but for now just after the desired result which is highlighted in yellow. Just for context, there are about 30,000 rows in the actual data with approx. 5,000 unique staff so that is why I opted for pivot tables. Can you please solve for Office 2019?

Book9
ABCDEFGH
2NameTaskResultDeptNameEnrolled in at least 1 taskPercentage enrolled
3JoeAEnrolledAdminJoeY100%
4MaryBDropped outSalesMaryY50%
5JoeBEnrolledAdminPeteN0%
6PeteADropped outFinanceSallyY100%
7SallyCEnrolledSalesHarryN0%
8PeteBDropped outFinance
9HarryADropped outFinance
10PeteCDropped outFinance
11HarryBDropped outFinance
12MaryCEnrolledSales
Sheet1
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Was trying to do this via a pivot table. Need to work out who is still enrolled in at least 1 task. There may be better ways to work this out, just after the simplest method. Will most likely need to report on the Dept status of completion but for now just after the desired result which is highlighted in yellow. Just for context, there are about 30,000 rows in the actual data with approx. 5,000 unique staff so that is why I opted for pivot tables. Can you please solve for Office 2019?

Book9
ABCDEFGH
2NameTaskResultDeptNameEnrolled in at least 1 taskPercentage enrolled
3JoeAEnrolledAdminJoeY100%
4MaryBDropped outSalesMaryY50%
5JoeBEnrolledAdminPeteN0%
6PeteADropped outFinanceSallyY100%
7SallyCEnrolledSalesHarryN0%
8PeteBDropped outFinance
9HarryADropped outFinance
10PeteCDropped outFinance
11HarryBDropped outFinance
12MaryCEnrolledSales
Sheet1
Copy range from string until reach another string.xlsm
ABCDEFGH
1NameTaskResultDeptNameEnrolled in at least 1 taskPercentage enrolled
2JoeAEnrolledAdminJoeY100%
3MaryBDropped outSalesMaryY50%
4JoeBEnrolledAdminPeteN0%
5PeteADropped outFinanceSallyY100%
6SallyCEnrolledSalesHarryN0%
7PeteBDropped outFinance
8HarryADropped outFinance
9PeteCDropped outFinance
10HarryBDropped outFinance
11MaryCEnrolledSales
Sheet30
Cell Formulas
RangeFormula
G2:G6G2=IF(COUNTIFS($A$2:$A$11,F2,$C$2:$C$11,"Enrolled")>0,"Y","N")
H2:H6H2=COUNTIFS($A$2:$A$11,$F2,$C$2:$C$11,"Enrolled")/COUNTIF($A$2:$A$11,$F2)
 
Upvote 0
Thanks High and Wilder, you've hard-coded the names, how would you do it with a formula? This is great but as I know I'll be asked to do further analysis on this, can it be done with a pivot table?
 
Upvote 0

Forum statistics

Threads
1,223,753
Messages
6,174,303
Members
452,554
Latest member
Louis1225

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top