Modify SUMIFS formula to sum all values in specific situation

RodneyC

Active Member
Joined
Nov 4, 2021
Messages
278
Office Version
  1. 2016
Platform
  1. Windows
Good morning,

These formulas:

=SUMIFS(RevenueALL!P$3:P$7238,RevenueALL!$B$3:$B$7238,$B$3,RevenueALL!$H$3:$H$7238,$C22)
=SUMIFS(RevenueALL!P$3:P$7238,RevenueALL!$B$3:$B$7238,$B$3,RevenueALL!$H$3:$H$7238,$C24)

and a few others like these all pull data from my RevenueALL tab based on a number of criteria including a refence to cell $B$3. That cell, $B$3 allows users to select a value from a drop down menu. These are working fine with one exception.

Whatever is selected in $B$3 references specific/individual markets we want to review data for. The exception is those times when we want to see the total for "All Markets", one of the drop down options in $B$3 as opposed to review data for a specific market. The problem is "there is no reference to "All Markets" on the RevenueALL tab. The column where it would go is being used to list an specific/individual.

I need to modify the formulas above so if "All Markets" is selected in $B$3 it will SUM all appropriate values. To explain further, look at the first formula. It needs to work exactly as it is now, but if All Markets is selected in $B$3 it should SUM all values in $P$3:$P$7238 in the RevenueALL tab where $H$3:$H$7238 = $C22 as opposed to only those for a specific market.

thanks in advance
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
How about
Excel Formula:
=SUMIFS(RevenueALL!P$3:P$7238,RevenueALL!$B$3:$B$7238,IF($B$3="All Markets","*",$B$3),RevenueALL!$H$3:$H$7238,$C22)
 
Upvote 0
How about
Excel Formula:
=SUMIFS(RevenueALL!P$3:P$7238,RevenueALL!$B$3:$B$7238,IF($B$3="All Markets","*",$B$3),RevenueALL!$H$3:$H$7238,$C22)
I think that has it. Thanks once again
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,575
Members
449,039
Latest member
Arbind kumar

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