Link to home
Start Free TrialLog in
Avatar of Candace Hagood
Candace HagoodFlag for United States of America

asked on

Excel formula help

Hello, I have an excel spreadsheet with a great deal of data.  I'm looking for a few clean formulas to make the process better/work.  

there overall report is about 8000 line items detailing task assignment.  The current spreadsheet includes: Department, Task assignment date, task compeltion date.  Please note the task is due 20 days after open.  

So, What i need to pull is a report/sheet with the following columns of information:

Department  
-Number of Task by Department  
-Number completed by due date  
-Number still open (no completion date)  
-Number NOT competed on time (includes those that were compelted after the 20day due date and those not completed at all(no completion date))
-Percentage of tasks completed late (includes not compelted)
Avatar of Wayne Taylor (webtubbs)
Wayne Taylor (webtubbs)
Flag of Australia image

Can you post an example workbook showing the layout of your data to enable us to better understand your requirements?
Howdy Wayne! :)
Here's a cobbled-together summary of what I think you're after.

I've done the Department Count
Not Completed count, and
Completed On Time count.

presumably for the Not Completed On Time count, you'd want to EXCLUDE projects that were still within their 20-day limit?

I also made an assumption that you only work Mon-Fri in all date calcs.
M--Personal-ee---task-schedule.xlsx
Will try and stop by later, but gotta go now...
I also set all dates in a UK format - ddd dd-mm-yy

 - you may want to change this if your location's different...
ASKER CERTIFIED SOLUTION
Avatar of Danny Child
Danny Child
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi, is there any update on this?  Thought I'd covered all the bases here, pretty much???
This is purely database task so if you connect your sheet to any SQL database then you may execute a few simple queries:

-Number of Task by Department
SELECT Department, COUNT(*) FROM YourDataTable GROUP BY Department

Open in new window

-Number completed by due date
SELECT CompletionDate, COUNT(*) FROM YourDataTable GROUP BY CompletionDate

Open in new window

-Number still open (no completion date)
SELECT COUNT(*) FROM YourDataTable WHERE CompletionDate IS NULL

Open in new window

-Number NOT competed on time (includes those that were completed after the 20day due date and those not completed at all(no completion date))
SELECT COUNT(*) FROM YourDataTable WHERE CompletionDate IS NULL OR CompletionDate-StartDate > 20

Open in new window

-Percentage of tasks completed late (includes not compelted)
You may simply divide the number of tasks from the previous step by total number of tasks. 
I would also recommend to exclude not completed tasks before 20 days period

Open in new window


Of course, some of the above calculations would need clarification or fine tuning. Not all SQL engines support simple date subtraction. Etc.

If you need to report everything by Department simply add Department to the command as you can see in the first SQL example.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.