Possible to simplify this formula?

loopa1

Board Regular
Joined
Sep 3, 2006
Messages
156
Is it possible to simplify this formula so it's not as 'big'? I'd like to combine this formula with another similar one but the text length is too large writing it the way I am.

=SUMPRODUCT(ISNUMBER('DTPs'!$A$2:$A$10000)*('DTPs'!$D$2:$D$10000>=DATE(YEAR($H$8),MONTH($H$8)-6,1))*('DTPs'!$D$2:$D$10000<=DATE(YEAR($H$8),MONTH($H$8)-5,0))*('DTPs'!$N$2:$N$10000="")*('DTPs'!$I$2:$I$10000="Review")*('DTPs'!$H$2:$H$10000<='DTPs'!$F$2:$F$10000))
+
SUMPRODUCT(ISNUMBER('DTPs'!$A$2:$A$10000)*('DTPs'!$D$2:$D$10000>=DATE(YEAR($H$8),MONTH($H$8)-6,1))*('DTPs'!$D$2:$D$10000<=DATE(YEAR($H$8),MONTH($H$8)-5,0))*('DTPs'!$N$2:$N$10000="")*('DTPs'!$I$2:$I$10000<>"Review")*('DTPs'!$L$2:$L$10000="Review")*('DTPs'!$K$2:$K$10000<='DTPs'!$F$2:$F$10000))

The part I've put in bold is exactly the same in both halves. I've tried adding an 'OR' statement, but this doesn't return the correct result.
Thanks.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi

Try:

=SUMPRODUCT(ISNUMBER(DTPs!$A$2:$A$10000)*(DTPs!$D$2:$D$10000>=DATE(YEAR($H$8),MONTH($H$8)-6,1))*(DTPs!$D$2:$D$10000<=DATE(YEAR($H$8),MONTH($H$8)-5,0))*(DTPs!$N$2:$N$10000="")*((DTPs!$I$2:$I$10000="Review")*(DTPs!$H$2:$H$10000<=DTPs!$F$2:$F$10000)+(DTPs!$I$2:$I$10000<>"Review")*(DTPs!$L$2:$L$10000="Review")*(DTPs!$K$2:$K$10000<=DTPs!$F$2:$F$10000)))
 
Upvote 0
Is it possible to simplify this formula so it's not as 'big'? I'd like to combine this formula with another similar one but the text length is too large writing it the way I am.

=SUMPRODUCT(ISNUMBER('DTPs'!$A$2:$A$10000)*('DTPs'!$D$2:$D$10000>=DATE(YEAR($H$8),MONTH($H$8)-6,1))*('DTPs'!$D$2:$D$10000<=DATE(YEAR($H$8),MONTH($H$8)-5,0))*('DTPs'!$N$2:$N$10000="")*('DTPs'!$I$2:$I$10000="Review")*('DTPs'!$H$2:$H$10000<='DTPs'!$F$2:$F$10000))
+
SUMPRODUCT(ISNUMBER('DTPs'!$A$2:$A$10000)*('DTPs'!$D$2:$D$10000>=DATE(YEAR($H$8),MONTH($H$8)-6,1))*('DTPs'!$D$2:$D$10000<=DATE(YEAR($H$8),MONTH($H$8)-5,0))*('DTPs'!$N$2:$N$10000="")*('DTPs'!$I$2:$I$10000<>"Review")*('DTPs'!$L$2:$L$10000="Review")*('DTPs'!$K$2:$K$10000<='DTPs'!$F$2:$F$10000))

The part I've put in bold is exactly the same in both halves. I've tried adding an 'OR' statement, but this doesn't return the correct result.
Thanks.
The quick and easy thing to do is to take the DATE functions out of the formula and put them in cells.

A1: =DATE(YEAR($H$8),MONTH($H$8)-6,1)
B1: =DATE(YEAR($H$8),MONTH($H$8)-5,0)

=SUMPRODUCT(ISNUMBER('DTPs'!$A$2:$A$10000)*('DTPs'!$D$2:$D$10000>=A1)*('DTPs'!$D$2:$D$10000<=B1)*('DTPs'!$N$2:$N$10000="")*('DTPs'!$I$2:$I$10000="Review")*('DTPs'!$H$2:$H$10000<='DTPs'!$F$2:$F$10000))
+
SUMPRODUCT(ISNUMBER('DTPs'!$A$2:$A$10000)*('DTPs'!$D$2:$D$10000>=A1)*('DTPs'!$D$2:$D$10000<=B1)*('DTPs'!$N$2:$N$10000="")*('DTPs'!$I$2:$I$10000<>"Review")*('DTPs'!$L$2:$L$10000="Review")*('DTPs'!$K$2:$K$10000<='DTPs'!$F$2:$F$10000))
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,256
Members
452,901
Latest member
LisaGo

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top