Forestq

Active Member
Joined
May 9, 2010
Messages
482
hi,

I have 4 selected criteria (data validation list):
column A1 = Region
column C1 = Country
column E1 = Owner
column G1 = Service.

In my data rows region is in column AN, country in column AJ, owner in column AM and service in column AR.

AN - RegionAJ - CountryAM - OwnerAR -ServiceAA - COSTAB - COST TYPE
EUNLNicolaAFT200F
EUESPTomAT150F
AFCONSimomAFT180P
AZJPChiAFTX230F

<tbody>
</tbody>
example:
user can select only region = EU, region = EU and country = ESP, country = NL and Owner = Nicola etc....for me it`s 14 diffrent cases.

Always I want to get sum (COST, column AA) where COST TYPE= F.

How can I do that?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Maybe something like this

=SUMIFS(AA:AA,AB:AB,"F",AN:AN,IF(A1="","*",A1),AJ:AJ,IF(C1="","*",C1),AM:AM,IF(E1="","*",E1),AR:AR,IF(G1="","*",G1))

Assumes the user leaves A1, C1, E1 or G1 blank when no criteria for the respective field.

M.
 
Upvote 0
Hi Marcel!,

many, many thanks! Works perfect! That it`s what I was looking for.

Also, I found SIGN method

=SUMPRODUCT(SIGN((AN:AN=A1)+(AJ:AJ=C1)+(AM:AM=E1)+(AR:AR=G1))*AA:AA)

but its not working.


Once again: Thank you!
 
Upvote 0
Hi Marcel!,

We have just one criteria ("F"):
=SUMIFS(AA:AA,AB:AB,"F",AN:AN,IF(A1="","*",A1),AJ:AJ,IF(C1="","*",C1),AM:AM,IF(E1="","*",E1),AR:AR,IF(G1="","*",G1))

How can I add other criteria? example: "F" and "FA" ?


 
Upvote 0
Maybe this...

=SUMIFS(AA:AA,AB:AB,{"F";"FA"},AN:AN,IF(A1="","*",A1),AJ:AJ,IF(C1="","*",C1),AM:AM,IF(E1="","*",E1),AR:AR,IF(G1="","*",G1))

M.
 
Upvote 0
unfortunately it didn't work

I did as below:

=SUMIFS(AA:AA,AB:AB,"F",AN:AN,IF(A1="","*",A1),AJ:AJ,IF(C1="","*",C1),AM:AM,IF(E1="","*",E1),AR:AR,IF(G1="","*",G1))+SUMIFS(AA:AA,AB:AB,"FA",AN:AN,IF(A1="","*",A1),AJ:AJ,IF(C1="","*",C1),AM:AM,IF(E1="","*",E1),AR:AR,IF(G1="","*",G1))
 
Upvote 0
unfortunately it didn't work

I did as below:

=SUMIFS(AA:AA,AB:AB,"F",AN:AN,IF(A1="","*",A1),AJ:AJ,IF(C1="","*",C1),AM:AM,IF(E1="","*",E1),AR:AR,IF(G1="","*",G1))+SUMIFS(AA:AA,AB:AB,"FA",AN:AN,IF(A1="","*",A1),AJ:AJ,IF(C1="","*",C1),AM:AM,IF(E1="","*",E1),AR:AR,IF(G1="","*",G1))

Sorry, my bad.

Try this

=SUMPRODUCT(SUMIFS(AA:AA,AB:AB,{"F";"FA"},AN:AN,IF(A1="","*",A1),AJ:AJ,IF(C1="","*",C1),AM:AM,IF(E1="","*",E1),AR:AR,IF(G1="","*",G1)))

M.
 
Upvote 0
I've been working on a golf spreadsheet that calculates my statistics but ran into a problem. I'm trying to solve is the sum of cells in row 39 that meet the following criteria:
1) row 36 contains the letter F
2) row 37 is less than 125

right now I have it correct for only when solving for less than 125
=SUMIFS(E39:W39, E36:W36, "F", E37:W37, "<125")

how would I solve for greater than or equal to 125 and less than 150?


I tried =SUMIFS(E39:W39, E36:W36, "F", E37:W37, ">=125<150") but I’m guessing that’s incorrect since it comes up with a value of 0.


Example data:

row 36: F F MR
row 37: 101 135 145
row 39: 45 65 17
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,825
Members
449,096
Latest member
Erald

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