Sumifs or Sumproduct

VbaHell

Well-known Member
Joined
Jan 30, 2011
Messages
1,220
Hi All

I am having an issue with trying to get a formula to work and hope that someone tell point me in the right direction please


Worksheets "Supplier Dashboard" Column "A:A" has supplier names
Worksheets "Supplier Dashboard" Column "BB:BB" has number values

D5 is a drop down box (Qtr1, Qtr2, Qtr3 or Qtr4)
V1 is the supplier name

[=SUMIFS('Supplier Dashboard'!BB:BB,'Supplier Dashboard'!A:A,V1,D5,"Qtr1")]

At the moment all I get is #Value but if I remove the last part of formula [D5,"Qtr1"] then it works fine.

Any idea's please
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
which column are the Qtr1, Qtr2 etc reside?
 
Upvote 0
BB:BB is the column to sum if you choose "Qtr1"
D5 is where you would choose "Qtr1" or "Qtr2" etc
 
Upvote 0
If BB are all for the Qtr1, then where are the numbers for Qtr2, 3 etc
 
Upvote 0
What do you sum if D5 = Qtr2?

The logic can run like this...

=SUMIFS(INDEX('Supplier Dashboard'!BB:EE,0,MATCH(D5,{"Qtr1","Qtr2","Qtr3","Qtr4"},0)),'Supplier Dashboard'!A:A,V1)]
 
Upvote 0
have you got a column similar to C below?


Excel 2013/2016
ABCDEF
1supplier namesvaluesQtr?
2Name3900Qtr1Name2Qtr11400
3Name1200Qtr4
4Name3300Qtr3
5Name2700Qtr1
6Name2200Qtr4
7Name2700Qtr1
8Name3500Qtr1
9Name1500Qtr1
10Name21000Qtr2
11Name1800Qtr4
Sheet1
Cell Formulas
RangeFormula
F2=SUMIFS(B2:B11,A2:A11,D2,C2:C11,E2)
 
Last edited:
Upvote 0
This is very crude but is working

I added additional columns for each "Qtr1, 2, etc and then added up each column

[=SUMIFS('Supplier Dashboard'!BB:BB,'Supplier Dashboard'!A:A,V1,'Supplier Dashboard'!BF:BF,D5)+SUMIFS('Supplier Dashboard'!BG:BG,'Supplier Dashboard'!A:A,V1,'Supplier Dashboard'!BK:BK,D5)+SUMIFS('Supplier Dashboard'!BL:BL,'Supplier Dashboard'!A:A,V1,'Supplier Dashboard'!BP:BP,D5)+SUMIFS('Supplier Dashboard'!BQ:BQ,'Supplier Dashboard'!A:A,V1,'Supplier Dashboard'!BV:BV,D5)]

Thanks everyone for your help on this
 
Upvote 0
care to show a small sample of your data here?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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