Help with an Automatic Calculation Formula

HaemoAdam

New Member
Joined
Nov 9, 2016
Messages
4
Hello all,

I have a spreadsheet that I use as an ongoing day-to-day task list. Every time I get a new task, I input the date received into Column A, the type of task (I have around five possible tasks that I can receive) into column C, a summary of the task into Column E, My current status in the task in Column F, and a "Completed" box in column G (for this column I have a VBA code that automatically enters a check mark into the cell when I double click and then highlights that row). After a task has been completed, I want to add the completion date into Column B and then custom sort the cells so that all of the highlighted (completed) rows go to the bottom of the list and all of the blank rows (pending) remain at the top of the list.

I am wondering if there is anyway to have a formula that will have an ongoing calculation that takes the average of the difference between the completion date (column B) and the received date (column A) for each different type of task (column F). I would like to stray away from having a formula that I have to drag down every day to do an average calculation for each individual cell. Each day I will add more lines to the list so I do not want a formula that I have to drag down to, say, the 2000th row just so I know that the calculation will run every time I add data.

I do not know on any given day how many requests there will be but I want to be able to look back at any time and see the average number of days that it takes me to complete a certain type of task. If there is a way to see how many requests of a certain task type that I get in any given amount of time that would be awesome too.

Thank you all!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
datetask typestartedcompletedDAYS TAKENDAYS SINCE RECEIPTTODAY'S DATE =12/01/2016
01/01/2016A01/01/201602/01/2016111
01/01/2016B01/01/201603/01/2016211
01/01/2016C02/01/201603/01/2016111
02/01/2016D02/01/201605/01/2016310
02/01/2016E03/01/201607/01/2016410
02/01/2016A03/01/201607/01/2016410
03/01/2016B04/01/2016ON_GOING9
04/01/2016C04/01/2016ON_GOING8
04/01/2016D04/01/201608/01/201648
04/01/2016B05/01/2016ON_GOING8
05/01/2016B05/01/2016ON_GOING7
05/01/2016C06/01/201609/01/201637
07/01/2016B07/01/2016ON_GOING5
07/01/2016B08/01/2016ON_GOING5
08/01/2016A09/01/2016ON_GOING4
status summary
TOTALCOMPLETEDON_GOINGTOTAL UNFINISHED TIMEAVE UNFINISHED TIME
A32144
B615346.8
C32188
D2200n/a
E1100n/a
would an analysis table like this
meet your requirements
you could add columns for finished times also

<colgroup><col><col><col span="2"><col><col><col><col><col span="2"><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Thanks for the response oldbrewer!

The only issue I have with this type of solution is that I would have to drag down the formula for "DAYS TAKEN" and "DAYS SINCE RECEIPT" every time I add a new line to the list, wouldn't I? I am trying to avoid doing this if possible.

Thank you!
 
Upvote 0
NO YOU WOUDN'T !

use this principle

in A1 enter 99
in B1 enter =if(A1="","",A1*2)
now drag down B1
B2 is blank
in A2 put 88
B2 now shows 176
 
Upvote 0
Right but that means I have to either drag the formulas (the days taken and days since receipt formulas) down really far to account for all the future lines I will add or I will have to drag it down every time I add a line, right? Am I missing something here?!
 
Upvote 0
Yes - drag the whole row of formulas - all at once - down really far - one operation - it will take you only seconds. Then the job is done - as you add new data ovder the coming months, the formulas will " come alive" and produce your results. I feel I am missing something - I cannot see your issue.
 
Upvote 0
My issue is that when I drag the formulas down the whole worksheet recognizes those rows as active cells which means that when I sort the worksheet by color to send the green (completed) tasks to the bottom of the list and keep the pending tasks at the top of the list, all of the empty rows with the formulas in them will go to the top... does that make sense?
 
Upvote 0
taskdue datedate starteddate completedjob statustoday =11/11/2016
T101/11/201628/10/201631/10/20161 complete on time
T202/11/201629/10/201601/11/20161 complete on time
T303/11/201630/10/201603/11/20161 complete on time
T404/11/201631/10/201605/11/20162 Complete late
T505/11/201601/11/201605/11/20161 complete on time
T606/11/201602/11/201607/11/20162 Complete late
T707/11/20165 not started
T808/11/201604/11/201609/11/20162 Complete late
T909/11/201605/11/201609/11/20161 complete on time
T1010/11/201606/11/20163 started
T1111/11/201607/11/20163 started
T1212/11/20166 not started and overdue
T1313/11/20166 not started and overdue
T1414/11/20166 not started and overdue
table above is pre-sorting and has 5 blank rows with formulas at the bottom of column E
the table below has been sorted DESCENDING so that not started and overdue are listed first, then started overdue, then started, then complete late, then complete on time
taskdue datedate starteddate completedjob status
T1212/11/20166 not started and overdue
T1313/11/20166 not started and overdue
T1414/11/20166 not started and overdue
T707/11/20165 not startednote the blank rows with formulas
T1010/11/201606/11/20163 startedremain at the bottom
T1111/11/201607/11/20163 started
T404/11/201631/10/201605/11/20162 Complete latewaiting for you to add more tasks
T606/11/201602/11/201607/11/20162 Complete late
T808/11/201604/11/201609/11/20162 Complete late
T101/11/201628/10/201631/10/20161 complete on time
T202/11/201629/10/201601/11/20161 complete on time
T303/11/201630/10/201603/11/20161 complete on timethe formula in col E giving the job status is below
T505/11/201601/11/201605/11/20161 complete on time
T909/11/201605/11/201609/11/20161 complete on time
=IF(A2="","",IF(D2<>"",IF(D2<=B2,"1 complete on time","2 Complete late"),IF(C2<>"",IF(B2<=$K$1,"3 started","4 started / overdue"),IF(B2<=$K$1,"5 not started","6 not started and overdue"))))

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,881
Messages
6,122,074
Members
449,064
Latest member
MattDRT

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