SUMIFS Value Error trying to work with multiple columns range

jlawrence

New Member
Joined
Jan 27, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi, I am trying to automate a spreadsheet to calculate gross sales for each month, the are multiple brands I need to include that are on different rows. The months go by column so the range includes multiple columns which is why I think I am getting an error. The formula I am currently using is =SUMIFS('PL Updated'!$BT$8:$CI$28,'PL Updated'!$BT$7:$CI$7,$D$1). D1 refers to a cell with the month, so I was hoping that each month I could just put the new month into this cell and then the SUM would draw from the next column on the sheet with the sales. Do I need to use a different formula or an array? Thank you in advance!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi JLawrence,

Are $BT$7:$CI$7 really months names (e.g. "February") or are they actually dates which are formatted as month?

SUMIFS will give you a #VALUE error because the range dimensions don't match. You could use SUMPRODUCT instead.

Book2
DBRBSBTBUBVBWBXBYBZCACBCCCDCECFCGCHCI
1October-21Total Sales
287
3
4
5
6
7ProductJanuary-21February-21March-21April-21May-21June-21July-21August-21September-21October-21November-21December-21January-22February-22March-22April-22
8ACME Widgets14710131619222528313437404346
9Smith Bits25811141720232629323538414447
10Brandx36912151821242730333639424548
PL Updated
Cell Formulas
RangeFormula
BS2BS2=SUMPRODUCT(('PL Updated'!$BT$8:$CI$28*('PL Updated'!$BT$7:$CI$7=$D$1)))
BU7:CI7BU7=EOMONTH(BT7,0)+1
 
Upvote 0
Solution
Hi JLawrence,

Are $BT$7:$CI$7 really months names (e.g. "February") or are they actually dates which are formatted as month?

SUMIFS will give you a #VALUE error because the range dimensions don't match. You could use SUMPRODUCT instead.

Book2
DBRBSBTBUBVBWBXBYBZCACBCCCDCECFCGCHCI
1October-21Total Sales
287
3
4
5
6
7ProductJanuary-21February-21March-21April-21May-21June-21July-21August-21September-21October-21November-21December-21January-22February-22March-22April-22
8ACME Widgets14710131619222528313437404346
9Smith Bits25811141720232629323538414447
10Brandx36912151821242730333639424548
PL Updated
Cell Formulas
RangeFormula
BS2BS2=SUMPRODUCT(('PL Updated'!$BT$8:$CI$28*('PL Updated'!$BT$7:$CI$7=$D$1)))
BU7:CI7BU7=EOMONTH(BT7,0)+1
I am using dates formatted as months similar to what you have shown. I will try this out, thanks for responding!
 
Upvote 0
You're welcome!
Then as long as the date match is exact it will work.
 
Upvote 0

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

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