# How Should i add a range to my SUMPRODUCT function

#### Dark0Prince

##### Active Member
=SUMPRODUCT(--(JOET!\$H\$1:\$H\$4999>=O29),--(JOET!\$H\$1:\$H\$4999<=P29),--(JOET!\$A\$1:\$A\$4999=8568),--(JOET!\$G\$1:\$G\$4999>=1000))

at the end of this formula it will count all cells with amounts >=1000
I just need that to say 1000-14999.99, but don't know how to write a range of amounts to look for.

### Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

#### Joe4

Just repeat the last part, which also check to see if it is less than the other number, i.e.
Code:
``[COLOR=#333333]=SUMPRODUCT(--(JOET!\$H\$1:\$H\$4999>=O29),--(JOET!\$H\$1:\$H\$4999<=P29),--(JOET!\$A\$1:\$A\$4999=8568),--(JOET!\$G\$1:\$G\$4999>=1000),[/COLOR][COLOR=#ff0000]--(JOET!\$G\$1:\$G\$4999<=14999.99)[/COLOR][COLOR=#333333])[/COLOR]``

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,279
Messages
5,836,367
Members
430,424
Latest member
ALHK022

### 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