When you need to multiply a cell by a countif - yeah, that.

I have set up countif formula that calculates the number of vacancies as 1 each for ML, or UPL or LTSL or SL for each week. However I want the actual temporary vacancy figure to be reflective of the actual hours e.g. H15 is .92 hours but my current formula is calculating that as 1. How can I factor the Actual hours rating into my formula. My desired answer for the first week is in K9 (2.85) as opposed to the 3.0 I have.
EE_ML_Sample.xlsx
LVL 1
agwalshAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LET (Learn Excel in Tamil)Reporting Automation ExpertCommented:
Your current formula calculating H15 is 0.92 hours not as 1.
0
Rob HensonFinance AnalystCommented:
Rather than just COUNTIF on the date column; use SUMIFS summing the hours column with criteria same as COUNTIF on Date column:

=SUMIF(WTE_Calendar[[#All],[01/01/2018]],$C$1,Grade_Hours[[#All],[Actual Hours]])+SUMIF(WTE_Calendar[[#All],[01/01/2018]],$D$1,Grade_Hours[[#All],[Actual Hours]])+SUMIF(WTE_Calendar[[#All],[01/01/2018]],$F$1,Grade_Hours[[#All],[Actual Hours]])+SUMIF(WTE_Calendar[[#All],[01/01/2018]],$G$1,Grade_Hours[[#All],[Actual Hours]])
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob HensonFinance AnalystCommented:
Your manual result of 2.85 includes row 24 but the table does not have ML/UPL/LTSL/SL on that row; should it be row 25? This then gives result of 2.92 as per the SUMIF suggested.
0
agwalshAuthor Commented:
Sigh, great solution that has saved me loads of time - AGAIN! Thanks to both of you particularly @Rob Henson :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.