Need to create a formula for date management that has different sets of parameters

HedyES

New Member
Joined
Jan 11, 2018
Messages
7
I have a date column - cell L5, and in cell M5 I would like to have values 0, 1, 2, 3, or 4 appear based on L5, the current date/today's date, and the following parameters:

0 would appear if the date value in L5 is "COMPLETED," "NEEDED" or "N/A"

1 would appear if the date value in L5 is between 0 to 7 days from the current date (EX today is 1/11/18 and the date in column L5 is 1/4/18, so a value of 1 would appear in cell M5)

2 would appear if the date value in L5 is between 8 to 14 days from the current date (EX today is 1/11/18 and the date in column L5 is 12/26/17, so a value of 2 would appear in cell M5)

3 would appear if the date value in L5 is 15 days or more prior to today's date (EX today is 1/11/18 and the date in column L5 is 12/15/17, so a value of 3 would appear in cell M5)

4 would appear if the date value in L5 is greater than (in the future) today's date (EX today is 1/11/18 and the date in column L5 is 2/1/18, so a value of 4 would appear in cell M5)

I hope that I have explained this well. Thank you
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi,

How about this:


Book1
LM
51/4/20181
612/28/20172
712/15/20173
82/1/20184
9COMPLETED0
Sheet15
Cell Formulas
RangeFormula
M5=IF(ISTEXT(L5),0,IFERROR(LOOKUP(TODAY()-L5,{0,8,15},{1,2,3}),4))
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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