A
Ann Scharpf
I apologize if this question has already been answered. I
am having trouble searching for this in the archives
because the search is interpreting the word AND as a
boolean operator instead of allowing me to do a search
that looks for references to the AND() worksheet function.
Is it possible to include an AND() function inside a SUMIF
() function? Here is my stab at what I was trying to do:
=SUMIF(IF(AND(System="difms-c",LaborType="maintenance")
=TRUE),Reg)
System, LaborType and Reg are all named ranges.
I want to total the value of the Reg (hours) when both the
System and LaborType meet specific conditions. The only
way I have figured out to make this work is to add another
column that contains just the AND() statement and then I
do the SUMIF on that new column and add up the numbers
when the new column is TRUE. There are several different
AND() type combinations I need to get SUMIF() totals for,
though and it hardly seems elegant to have all these
extraneous columns.
Is there a more straightforward way to do this? I'd
appreciate any help you can give me.
Thanks.
Ann Scharpf
am having trouble searching for this in the archives
because the search is interpreting the word AND as a
boolean operator instead of allowing me to do a search
that looks for references to the AND() worksheet function.
Is it possible to include an AND() function inside a SUMIF
() function? Here is my stab at what I was trying to do:
=SUMIF(IF(AND(System="difms-c",LaborType="maintenance")
=TRUE),Reg)
System, LaborType and Reg are all named ranges.
I want to total the value of the Reg (hours) when both the
System and LaborType meet specific conditions. The only
way I have figured out to make this work is to add another
column that contains just the AND() statement and then I
do the SUMIF on that new column and add up the numbers
when the new column is TRUE. There are several different
AND() type combinations I need to get SUMIF() totals for,
though and it hardly seems elegant to have all these
extraneous columns.
Is there a more straightforward way to do this? I'd
appreciate any help you can give me.
Thanks.
Ann Scharpf