Sumif with a or condition.

M

Mike

I have the equation below which tallies the number of records that meet the
criteria Server Hardware, Internal Issue and Limited Functionality. This
works great with the following formula:

=SUM(IF(('Total Outages'!R2:R300=C48)*('Total Outages'!Q2:Q300=H2)*('Total
Outages'!S2:S300=C7),1,0))

But I need a formula to include an OR condition to tally the number of
records that are either Server Hardware or Server Software in R2:R300.

C48 = Server Hardware
C49 = Server Software
H2 = Limited Functionality
C7 = Internal Issue

I have tried using a wildcard ‘ser*’, no luck, I have tried *OR, no luck,
also tried using SUMPRODUCT no luck.

Any help is appreciated.

Thanks,

Mike
 
M

Marcelo

what version of MS Excel are you use? 2003 or 2007?

2007 = sumifs

2003 = sumproduct should runs.

hth
--
pleae click yes if it was helpfull
regards from Brazil
Marcelo



"Mike" escreveu:
 
D

Dave Peterson

One way:
=sumproduct(--((('total outages'!r2:r300=c48)+('total outages'!r2:r300=c49))>0),
--('Total Outages'!Q2:Q300=H2),
--('Total Outages'!s2:s300=c7))
 
M

Mike

I believe I got it to work,,,had to add an additional column (V) with values
of 1....


=SUMPRODUCT(--('Total Outages'!Q2:Q300=H2),--('Total
Outages'!S2:S300=C7),--(ISNUMBER(MATCH('Total
Outages'!$R$2:$R$300,C48:C49,0))),'Total Outages'!V2:V300)



Thanks,
 
M

Marcelo

great
--
pleae click yes if it was helpfull
regards from Brazil
Marcelo



"Mike" escreveu:
 
B

Bob Phillips

You don't need that additional column

=SUMPRODUCT(--('Total Outages'!Q2:Q300=H2),
--('Total Outages'!S2:S300=C7),
--(ISNUMBER(MATCH('Total
Outages'!$R$2:$R$300,C48:C49,0))))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top