SUMIFS using Column and Row Criteria

I am attaching a spreadsheet that is tracking the affects of a cost reduction plan that has been put into place.  I shows the actual cost by site and the average cost and date the cost reduction plan was implemented by site.  I have it working using specific cells however I am talking about a number of spreadsheets that have anywhere from 2 sites to 30 and I was hoping to find a formula that would easier to maintain.  Any help with what I am doing wrong with my SUMIFS formula I would appreciate.
Who is Participating?
Patrick MatthewsConnect With a Mentor Commented:
In B31, enter this formula...


Copy that down and across to B31:E43
barry houdiniCommented:
SUMIFS requires all ranges to be the same size so the SUMIFS that references the top table will always return an error.

I'm not sure if your real data will be the same but in your example shown here all of the functions are picking up single values so it might be more appropriate to use VLOOKUP type formulas to do that, e.g. in B31 copied across and down this formula will give you the same result as shown in your results table


Note: if sites or dates are in the same order in the result table as the data you may be able to simplify that

regards, barry

Edit: I see Patrick beat me to it.......Snap!
How about?


copied down and across.
kscott61Author Commented:
Thank you very much and you were a winner by a few minutes, but the formula worked perfectly.
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.

All Courses

From novice to tech pro — start learning today.