Thread: sumif with or
View Single Post
  #4   Report Post  
Alok
 
Posts: n/a
Default

Aladin,
Excellent. I have never seen that use of the Sumif before where it returns
an array of values.
Alok

"Aladin Akyurek" wrote:

=SUM(SUMIF(B5:B12,{"D*","?D*"},D5:D12))

C Glenn wrote:
I'm trying to do this:

=SUMIF(B5:B12,OR("=D*","=?D*"),D5:D12)

It returns zero each time.

(BTW,
=SUMIF(B5:B12,"=D*",D5:D12)
and
=SUMIF(B5:B12,"=?D*",D5:D12)
both work just fine and return non zero sums.)

So my question is,
Where do I put the OR, or is there another way to do this?