New Member
November 8, 2018
I need help with finding the correct formulas to use to help extract data based on specific information so I don't have to manually count the information out when I dump the raw data. I am trying to count how many times a specific "work center" that an operator clocks to goes over the planned hours. Then in two separate cells, calculate the sum of the "planned hours" and the "actual hours" for the specific work center the operator went over on. I have attached an example file of the data I collect and am trying to speed up the process of looking at each work centers performance.
Example data I gather:
I have "Termo" work center that exceeded the planned hours 55 times. This is manually counted in excel and entered into cell "B2".
The total planned hours for "Termo" work center that exceeds planned hours is 186.6 hours. This is manually counted in excel and entered into cell "C2".
The actual hours for "Termo" work center that exceeds planned hours is 272.85 hours. This is manually counted in excel and entered into cell "D2".
The data I am looking at is in the following cell locations:
"Termo" is in cell "G" with other work centers
Planned hours is in cell "J"
Actual hours is in cell "K"
I have tried =COUNTIFS(G:G,"termo",J:J,"<"&K:K ) formula with no luck and have searched far and wide to find a solution with no luck.
Oh, and I am using Microsoft Office Professional Plus 2013.
VIP
Trusted Members
June 25, 2016
Active Member
July 26, 2013
An alternative is to create a new data column to calculate any excess hours. I used Column O with the formula "=IF(K18>J18,K18-J18,0)" copied down.
i.e. Are there excess hours? If so, calculate those else enter 0.
B2 could then be: =COUNTIFS($G$18:$G$722,$A2,$O$18:$O$722,">"&0)
i.e. Count the number of instances where the Work center matches the name in Column A and where there are excess hours.
VIP
Trusted Members
June 25, 2016
If you can add a helper column like what Paul suggested, that would be the best as it avoids all the complications of an ARRAY formula.
My formula would be =IF(K18>J18,1,0) in cell O18 since you only wanted to count the instances.
The formula in cell B2 would then be =COUNTIFS($G$18:$G$722,A2,$O$18:$O$722,1)
Sunny
1 Guest(s)