Problems with SUMIFS formula

julia55

Board Regular
Joined
Dec 2, 2010
Messages
73
I have a SUMIFS formula that I am using to count 5 different criteria before providing a sum. The problem I am running into is one of the columns of criteria is a number, and I need to be able to sometimes use a wildcard to count that criteria. Obviously the * wildcard isn't working. Does anyone know of a good workaround for this?

Here is my formula: =SUMIFS(PostPrePxData!$J:$J,PostPrePxData!$G:$G,"151-180BFR",PostPrePxData!$E:$E,"="&$B$3,PostPrePxData!$C:$C,"="&$G$3,PostPrePxData!$F:$F,"="&$L$3,PostPrePxData!$A:$A,"="&$Q$3)

The data in column PostPrePxData!$C:$C is a number. In some cases it will be compared to a number and in others it will need to be compared to a wildcard. There is a drop down in cell G3 that the user can select to either look at all of the data from column PostPrePxData!$C:$C or just a portion of the data.

idsy84.jpg
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,196,483
Messages
6,015,463
Members
441,898
Latest member
kofafa

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