Sumifs only displaying #value in table lookup

lost_in_the_sauce

Board Regular
Joined
Jan 18, 2021
Messages
128
Office Version
  1. 365
Platform
  1. Windows
Have a data pull for financials, trying to make a repeatable store summary. $ values are on "Data" tab. Trying to collect by 3 categories - month, store name.

=SUMIFS(Data!$J$2:$P$1214,Data!$B$2:$B$1214,Sheet1!$B3,Data!$J$1:$P$1,Sheet1!C$2,Data!$F$2:$F$1214,Sheet1!B2)

Values are in cells J2:P1214, categories are F1:P1, months are B, store is F. So from the table, is should sumifs numbers that have the same store in F, the same month in B, and the same category in row 1. Keep getting the #value error though.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You cannot use sumifs like that, try
Excel Formula:
=SUMPRODUCT((Data!$B$2:$B$1214=$B3)*(Data!$J$1:$P$1=C$2)*(Data!$F$2:$F$1214=B2)*(Data!$J$2:$P$1214))
 
Upvote 0
Solution
In case you're wondering exactly what it is that you have done wrong by trying to use sumifs, the criteria ranges (Data!$B$2:$B$1214, Data!$J$1:$P$1, and Data!$F$2:$F$1214) must all contain the exact same number of rows and columns as the sum range (Data!$J$2:$P$1214), not the same number of rows or columns.
 
Upvote 0
In case you're wondering exactly what it is that you have done wrong by trying to use sumifs, the criteria ranges (Data!$B$2:$B$1214, Data!$J$1:$P$1, and Data!$F$2:$F$1214) must all contain the exact same number of rows and columns as the sum range (Data!$J$2:$P$1214), not the same number of rows or columns.
am I not? 2-1214 rows and columns J-P?
 
Upvote 0
In case you're wondering exactly what it is that you have done wrong by trying to use sumifs, the criteria ranges (Data!$B$2:$B$1214, Data!$J$1:$P$1, and Data!$F$2:$F$1214) must all contain the exact same number of rows and columns as the sum range (Data!$J$2:$P$1214), not the same number of rows or columns.
nevermind, reread it
 
Upvote 0
You cannot use sumifs like that, try
Excel Formula:
=SUMPRODUCT((Data!$B$2:$B$1214=$B3)*(Data!$J$1:$P$1=C$2)*(Data!$F$2:$F$1214=B2)*(Data!$J$2:$P$1214))
it looks like it's working, I just try to avoid sum product, I suck at reverse engineering it if I forgot what I was trying to do
 
Upvote 0
could I index match with the J2:P1214 array of values and multiple matches?
If you mean that you only need to sum 1 column from J:P and want to choose that column with INDEX then yes, you could try something like
Excel Formula:
=SUMIFS(INDEX(Data!$J$2:$P$1214,0,MATCH(Sheet1!C$2,Data!$J$1:$P$1,0))Data!$B$2:$B$1214,Sheet1!$B3,Data!$F$2:$F$1214,Sheet1!B2)

If you can have multiple rows and columns that meet the criteria then you need sumproduct.
 
Upvote 0
If you mean that you only need to sum 1 column from J:P and want to choose that column with INDEX then yes, you could try something like
Excel Formula:
=SUMIFS(INDEX(Data!$J$2:$P$1214,0,MATCH(Sheet1!C$2,Data!$J$1:$P$1,0))Data!$B$2:$B$1214,Sheet1!$B3,Data!$F$2:$F$1214,Sheet1!B2)

If you can have multiple rows and columns that meet the criteria then you need sumproduct.
yeah, columns are like revenue, cost of good sold, payroll, etc - so I'm just trying to pull a single vale based on the criteria in the top row and columns B and F
 
Upvote 0

Forum statistics

Threads
1,215,268
Messages
6,123,969
Members
449,137
Latest member
yeti1016

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