Trying to capture certain dates

kojak43

Active Member
Joined
Feb 23, 2002
Messages
270
With the great help of several people yesterday, I got most of what I want to work. I modified the formulas to show job on a list for 30 days or less and those jobs that have been on the list for more than 90 days.
I use =SUMPRODUCT((DATES<=TODAY()-90)*(STATUS<>"D")) for the over 90 day reference and =SUMPRODUCT((DATES>=TODAY()-30)*(STATUS<>"D"))for the 30 days or fewer formula.

Where I am getting tripped up is that period of time that is 31 days to 89 days.
Any advice?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
On 2002-04-17 07:41, kojak43 wrote:
With the great help of several people yesterday, I got most of what I want to work. I modified the formulas to show job on a list for 30 days or less and those jobs that have been on the list for more than 90 days.
I use =SUMPRODUCT((DATES<=TODAY()-90)*(STATUS<>"D")) for the over 90 day reference and =SUMPRODUCT((DATES>=TODAY()-30)*(STATUS<>"D"))for the 30 days or fewer formula.

Where I am getting tripped up is that period of time that is 31 days to 89 days.
Any advice?

Enter in e.g., F1: =TODAY()

1. LessThan or Equal to 30:

=SUMPRODUCT(($F$1-DATES<=30)*(STATUS<>"D"))

2. Between 30 and 90 exclusive:

=SUMPRODUCT(($F$1-DATES>30)*($F$1-DATES<90)*(STATUS<>"D"))

3. 90 and above:

=SUMPRODUCT(($F$1-DATES>=90)*(STATUS<>"D"))

Do these meet your requirements?

Aladin
 
Upvote 0
You could put your criteria in cells and name the cells. You may then find the formulas easier to read.

Today 17/04/2002
30 18/03/2002 name rT_30
90 17/01/2002 name rT_90

Formulas
30 =SUMPRODUCT((DATES>=rT_30)*(STATUS<>"D"))
31 - 89=SUMPRODUCT((DATES>rT_90)*(DATES<rT_30)*(STATUS<>"D"))
90> =SUMPRODUCT((DATES<=rT_90)*(STATUS<>"D"))
This message was edited by Dave Patton on 2002-04-17 08:23
 
Upvote 0
Enter in e.g., F1: =TODAY()

1. LessThan or Equal to 30:

=SUMPRODUCT(($F$1-DATES<=30)*(STATUS<>"D"))

2. Between 30 and 90 exclusive:

=SUMPRODUCT(($F$1-DATES>30)*($F$1-DATES<90)*(STATUS<>"D"))

3. 90 and above:

=SUMPRODUCT(($F$1-DATES>=90)*(STATUS<>"D"))

Do these meet your requirements?

Aladin
[/quote]

Suave! That "Dates" stuff reference is cool.
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,916
Members
448,533
Latest member
thietbibeboiwasaco

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