Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default sumif and or

Thank you Bob. This worked perfectly.

"Bob Phillips" wrote:

Sorry about that

=SUMPRODUCT(--(Input!A2:A20="PPAO"),--(((Input!B2:B20=1)+(Input!C2:C20=1)+(Input!D2:D20= 1)<0)))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"jimar" wrote in message
...
Thanks Bob but this is adding together the number 1s when they appear
along
with PPAO. What I need to count is the number of rows that contain PPAO
when
there is a number 1 in either col B or C or D. So if row 6 has PPAO in
Col A
and the number 1 in Col B and number 1 is also in C the answer to the
formula
should be 1 (not 2).

"Bob Phillips" wrote:

=SUMPRODUCT(--(Input!A2:A200="PPAO"),--((Input!B2:B200=1)+(Input!C2:C200=1)+(Input!D2:D20 0=1)))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"jimar" wrote in message
...
I have an input sheet which contains the data and a summary sheet. I
need
to
put a formula in the summary sheet to count the number of rows in which
the
following may occur "PPAO" is in Column A and the number 1 is in
either
columns B or C or D.
Any help appreciated.







 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
sumif #value dferguson Excel Worksheet Functions 4 April 28th 06 01:23 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 03:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"