Formula to return status

acg2636

New Member
Joined
Nov 16, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a functional spreadsheet for an HR department. There are several background checks that must be renewed each year, some every two years and others every 3 & 5 years.

In cell A1 is the date in which the most recent search was completed. Then I would like the formula to go into the next cell of B1. I need a formula that will return with "Current", "Due", or "Over Due" so that we can create a slicer and make the spreadsheet more manageable overall.

I'm not sure if that makes any sense or not.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
how does excel know to look up and see if the requirement is
each year, some every two years and others every 3 & 5 years

IF( A1 < Date(Year(today())-5,month(today()),day(today()) ) , "over 5 year" , IF( A1 < Date(Year(today())-3,month(today()),day(today()) ) , "over 3 year" ,IF( A1 < Date(Year(today())-2,month(today()),day(today()) ) , "over 2 year" , IF( A1 < Date(Year(today())-1,month(today()),day(today()) ) , "over 1 year" , "Current" )
 
Upvote 0
This is great. Right now, I don't have it built in to let excel to know what the requirement is.
 
Upvote 0
I don't have it built in to let excel to know what the requirement is.
Ok, so the formula I gave will just give the status of the years - to get the status Due or over , it needs to know if 1,2,3,4,5 years before it can flag as over or if Due
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,882
Members
449,097
Latest member
dbomb1414

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