Thread: SUM(IF(OR
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default SUM(IF(OR

Thank you for the equation. It works fine. I'd like to add one more IF
variable to the statement: IF J2:J500="W"...but I am not sure where to place
it in the current formula. Also, I am not sure what the function of the two
dashes are (--). Can you please explain?

"T. Valko" wrote:

Try this...

=SUMPRODUCT(--(B2:B500=A2),(E2:E500="CT")+(E2:E500="NT"),H2:H500 )

--
Biff
Microsoft Excel MVP


"bob" wrote in message
...
Using an array, I need a formula for the following:

If B2 through B500 = A2
and
If E2 through E500 = "CT" or "NT"
then SUM H2 through H500

Thank you!

Bob