Sumifs formula criteria (add or remove)

Grimm127

Board Regular
Joined
Aug 17, 2011
Messages
132
The sumif formula has a sum range, criteria range1, criteria1 those are required fileds
you can insert more criterita ( or 3, etc)

i am wondering if it is possible that based on a combo selection if a sumif formula can have 2 criterials for on instance and based on a selection only have 1 criteria.

So
if i select 2, then sumifs(sum range, criteria range1, criteria1, criteria range2, criteria2)
if i select 1, then sumifs(sum range, criteria range1, criteria1)

is that posible???????
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Thank you for your reply:
On the surface its would seem to work but I think part of the issue is the criteria I am using is index based because of the selections need to sum in variable columns.

=SUMIFS(INDEX('2018A'!U:AF,0,$BG$8),INDEX('2018A'!A:H,0,$BG$11),$BF$11,INDEX('2018A'!A:H,0,$BG$12),IF(BG12=8,$BF$12,"?*"),'2018A'!J:J,$C$7)/1000

Could it be the text its returning that can be causing the #Value error?
What do you suggest?
 
Upvote 0
How are supposed to know whether BG8, BG11, BF11, BG12, BF12, and C7 are of appropriate kind?

Care to formulate what you need in words?
 
Last edited:
Upvote 0
BG8, BG11, BF11, BG12, BF12, and C7 are appropriate. Its based on a sumifs so is looks at those cells in the indexed columns.

Care to formulate what you need in words?[/QUOTE]
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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