Determine if date is within specific date range

JansiJansi

New Member
Joined
Jun 22, 2022
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Yo. I want a formula that does the same thing as this:
Excel Formula:
=IF(AND(A1>=start,A1<=end),"x","")

Buuut, I want it to use the same functionality as this when it comes to determining the "date":
Excel Formula:
=AND(D3>=(TODAY()-90),D3<TODAY())

Basically, I have a client who wants to know when the last time they received in inventory is. It can't be a static date, but instead needs to be a date range based off of the date it's being run, because the report is gonna be run regularly.

They have a Last Received date. Using the Last Received date, I want to determine which receive date was received within the last 0-90 days, 91-180 days, 181-270 days, etc.

For example, this is the spreadsheet I'm developing:

1657312794856.png


Is this something I can do? Or would I have to use VBA to define a start and end date based on today's date and use the second formula posted above?

Thank you, everyone! Happy Friday!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Your formula is exactly what you want for the 0-90 days column. You just need to add the "x".

Excel Formula:
=IF(AND(D3>=(TODAY()-90),D3<TODAY()),"X","")

Similar for the other columns.
Excel Formula:
=IF(AND(D3>=(TODAY()-180),D3<(TODAY()-90)),"X","")

etc.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,806
Messages
6,121,667
Members
449,045
Latest member
Marcus05

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