Support with IF Function with Dates

Kyle Hawes

New Member
Joined
Apr 13, 2023
Messages
2
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi,

I'm working on a Work Instructions tracking sheet, I've got everything working bar getting the Status to say Requires Update which is dependent on the 'Days To Update' being less than 7. I understand because of how Excel stores and displays dates than it's not as simple as putting IF(H4<7),"Requires Update","") etc. Would anyone be able to advise me what I'd need to put for it to count under 7 days remaining.

The Formula for Status is;

=IF(H4<X, "Requires Update", IF(F4<>"","Updated",IF(E4=1,"Created",IF(A4="","","Identified"))))
(X being what I'm needing to clarify)

The Formula in H4 is;
=IF(F4="","",((F4+365)-TODAY()&" Days"))

F4 is just TODAY

Mini-sheet;

Testing WI Tracker.xlsm
ABCDEFGH
3Work InstructionSiteOwnerDate CreatedVersionLatest UpdateStatusDays To Update
4ScanningNetworkN/A13/04/2023118/04/2022Updated5 Days
5
6
Sheet1
Cell Formulas
RangeFormula
G4G4=IF(H4<7, "Requires Update", IF(F4<>"","Updated",IF(E4=1,"Created",IF(A4="","","Identified"))))
H4H4=IF(F4="","",((F4+365)-TODAY()&" Days"))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H4Other TypeColor scaleNO
 

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 & welcome to MrExcel.
In H4 use
Excel Formula:
=IF(F4="","",((F4+365)-TODAY()))
and then use a custom cell format of
Excel Formula:
0" Days"
That way the formula in G4 will work.
 
Upvote 0
Thankyou very much, simple fix, works exactly as needed.
Hi & welcome to MrExcel.
In H4 use
Excel Formula:
=IF(F4="","",((F4+365)-TODAY()))
and then use a custom cell format of
Excel Formula:
0" Days"
That way the formula in G4 will work
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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