Question about greater than and less than in 1 statement

shdawson

Active Member
Joined
Jan 6, 2007
Messages
381
Hi,


I am running a SUMPRODUCT formula. All was well (key-word "was"), but found a failing in the logic today.

Need to edit the formula.


I currently have Parameters!C$24 set to my run date. So, if the date in 'Project Task'!M$2:M$18000 is less than this date....it is late.

I then do some other columns to do a date range. Well, sad to say....found the logic is not solid.

Code:
=(SUMPRODUCT(--('Project Task'!C$2:C$18000=C32),--('Project Task'!O$2:O$18000<>1),--('Project Task'!I$2:I$18000="POR"),--('Project Task'!M$2:M$18000<=(Parameters!C$24))))-(SUMPRODUCT(--('Project Task'!C$2:C$18000=C32),--('Project Task'!O$2:O$18000<>1),--('Project Task'!I$2:I$18000="POR"),--('Project Task'!M$2:M$18000<=(Parameters!C$24-7))))


So, I have the date ranges figured out in my parameters sheet now. All I "think" I need to do is simplify the date thing in an arithmetic statement of some kind.


Code:
=(SUMPRODUCT(--('Project Task'!C$2:C$18000=C32),--('Project Task'!O$2:O$18000<>1),--('Project Task'!I$2:I$18000="POR"),--('Project Task'!M$2:M$18000<=(Parameters!C$24   AND GREATER THAN Parameters!C$23))))



This part always confused me in arithmetic. I need to hammer out the...."AND GREATER THAN Parameters!C$23" part.

Please advise.


Thanks.......
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Try

Code:
=SUMPRODUCT(--('Project Task'!C$2:C$18000=C32),--('Project Task'!O$2:O$18000<>1),--('Project Task'!I$2:I$18000="POR"),--('Project Task'!M$2:M$18000<=Parameters!C$24),--('Project Task'!M$2:M$18000>Parameters!C$23))
 
Upvote 0
Even an easier answer.

Wow, I love this SUMPRODUCT thing. It can most likely fry chicken and clean the pan afterwards as well.

Thank you, kind sir, for your assistance. Have a great day!


S
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,703
Members
452,938
Latest member
babeneker

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