# Sumproduct

#### texasalynn

##### Well-known Member
Ok what is wrong with this?

=+SUMPRODUCT(((BASE!\$M\$3:\$M\$47<12)*(BASE!\$M\$3:\$M\$47>50)*(BASE!\$M\$3:\$M\$47<>0.1))*(BASE!\$X\$3:\$X\$47))

I have in column various sizes and I need to add all sizes that are
NOT .1
> 50
< 12

We don't always have all those sizes but still need to get a total. Right now there is no size > 50, so I get 0. But why can't I get a total of the others?

### Excel Facts

Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi,

Hi texasalynn

You are trying to select values that are <12 and >50. Both conditions cannot be true at the same time.

HTH
PGC

Unless you mean OR instead of AND. In that case

HTH
PGC

=SUMPRODUCT(--ISNUMBER(BASE!\$M\$3:\$M\$47),(BASE!\$M\$3:\$M\$47<12)+(BASE!\$M\$3:\$M\$47>50),--(BASE!\$M\$3:\$M\$47<>0.1),BASE!\$X\$3:\$X\$47)

Hi again

In case you saw the formula in my post, looking at fairwinds' formula I realized see that my interpretation

(NOT .1 ) OR (<12) OR (>50) makes no sense

Fairwinds interpretation makes sense

((<12)) OR (>50)) AND (NOT .1 )

Sorry
PGC

whew! Thanks Fairwinds! I don't think I've ever had the , and + together in the same formula like that.

Edit:
why did you have the isnumber bit on column M without a condition?? I took it out so my results.

why did you have the isnumber bit on column M without a condition?

Just to be on the safe side. Else a blank cell in column M would qualify to be included in the sum.

Replies
7
Views
171
Replies
4
Views
221
Replies
40
Views
328
Replies
1
Views
86
Replies
10
Views
418

1,217,346
Messages
6,136,042
Members
449,981
Latest member
kjd513

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back