#VALUE error on a SUMIFS formula

Pauljj

Well-known Member
Joined
Mar 28, 2004
Messages
2,047
It might be the heat getting to me but for the life of me can't work out why this won't work

Code:
=SUMIFS(Sheet1!$D$2:$AR$1000,Sheet1!$A1:$A$1000,Sheet2!C$2,Sheet1!$D$1:$AR$1,Sheet2!$A13)

This produces a #VALUE error

I am summing everything in Sheet 1 D2:AR1000 if the location in Sheet A1:A1000 equals Sheet 2 C2 and if Sheet 1 D1:AR1 contains what is in Sheet 2 A13

Seems simple enough ?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try this:

Excel Formula:
=SUMPRODUCT((Sheet1!$A2:$A$1000=Sheet2!C$2)*(Sheet1!$D$1:$AR$1=Sheet2!$A13)*(Sheet1!$D$2:$AR$1000))
 
Upvote 0
Try this:

Excel Formula:
=SUMPRODUCT((Sheet1!$A2:$A$1000=Sheet2!C$2)*(Sheet1!$D$1:$AR$1=Sheet2!$A13)*(Sheet1!$D$2:$AR$1000))
Thanks so much, works a treat, should have realised that I was trying to check against rows and columns rather then just rows
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,636
Messages
6,125,961
Members
449,276
Latest member
surendra75

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