SUMIFS - Based on Vendor & Date Criteria

HILLP

New Member
Joined
Sep 21, 2021
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Hi, I am looking to see why the formula below is returning a #Value response in the cell.

I am basically trying to sum a cost column based on 2 criteria-- 1- Date & 2- name of company.

If you see something missing from the formula I would appreciate a fix.



=SUMIFS('Planned-Manpower Cost'!YF$9:YF$142,'Planned-Manpower Cost'!$B$9:$B$142,'Summary- Roll Up'!$B5,'Planned-Manpower Cost'!$YF$5:$AYO$5,'Summary- Roll Up'!C$2)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi & welcome to MrExcel.
All the ranges in SUMIFS need to be the same size, try
Excel Formula:
=SUMPRODUCT(('Planned-Manpower Cost'!AY$9:YF$142)*('Planned-Manpower Cost'!$B$9:$B$142='Summary- Roll Up'!$B5)*('Planned-Manpower Cost'!$YF$5:$AYO$5,'Summary- Roll Up'!C$2))

Also if the formula is on the Summary- Roll Up sheet you should remove the sheet name from the formula for those cells.
 
Upvote 0
Your criteria ranges are not equal lengths
 
Upvote 0
Your criteria ranges are not equal lengths
So one criteria is puling from a the same row different columns (YF5: AYO5) this is the date portion. While the second criteria is pulling from the same column different rows (B9:B142) this is the vendor name column. Can this not work, or will the SUMIF formula not be able to do this?
 
Upvote 0
All the ranges in a SUMIFS need to be the same size. Did you try my suggestion?
 
Upvote 0
All the ranges in a SUMIFS need to be the same size. Did you try my suggestion?
Yes I did, and thank you for suggestion. I could not get the formula to work in this scenario. I am thinking a SUMIF with an VLOOKUP might be what is needed
 
Upvote 0
There's a typo in my formula, it should be
Excel Formula:
=SUMPRODUCT(('Planned-Manpower Cost'!YF$9:AYO$142)*('Planned-Manpower Cost'!$B$9:$B$142='Summary- Roll Up'!$B5)*('Planned-Manpower Cost'!$YF$5:$AYO$5,'Summary- Roll Up'!C$2))
 
Upvote 0
To anyone following the thread the formula below was the fix:

=SUMIFS('Planned-Manpower Cost'!YF$9:YF$141,'Planned-Manpower Cost'!$B$9:$B$141,'Summary- Roll Up'!$B4)
 
Upvote 0
So the YF5:AYO5 part is totally irrelevant?
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,397
Members
449,081
Latest member
JAMES KECULAH

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