Hiding dates if they are before a certain date

chris_bosten

New Member
Joined
Aug 21, 2024
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hi,

I hope you can help

I have the following sheet "jobs due"

Job IDJob Last CompletedJob Due Date
MJID000115/01/202515/07/2025
MJID0002
MJID000331/12/1900
MJID000416/01/202516/02/2025
MJID000531/03/1900
MJID000631/12/1900
MJID000731/12/1901
MJID000831/01/1900

Job last completed is using a formula to look up the most recent date an event occured:
=MAX(IF('Jobs Completed'!$C$2:$C$10000='Jobs Due'!A3,'Jobs Completed'!$A$2:$A$10000)) - it is getting this information from a separate sheet "jobs completed"

Job DateDay of WeekJob ID / Route NumberCategoryTechnicianWO Number
15/01/2025WednesdayMJID0001RTC-IAlexWO456720001
16/01/2025ThursdayMJID0004RTC-IAlexWO456730004
17/01/2024FridayMJID0012RTFColmWO453080012
15/01/2025MondayMJID0021RTTAlexWO456720021
15/01/2024MondayRoute 1RTC-IAlexWO453061
21/01/2025TuesdayRoute 1RTC-IAlexWO456781
17/01/2025FridayMJID0012RTFColmWO456740012

I am using a custom date format dd/mm/yyyy;; to hide any dates with 0 value (01/01/1900)

In the jobs due sheet I want to add months to the date that can be found in column M of the jobs due sheet but only if the date in column B is after 1/1/25 (or not 00/01/1900 / blank)

Column M of the jobs due sheet:

Job Frequency (months)
6
0
12
1
3
12
24
1

The formula I am trying is: =IF(B3="00/01/1900","",DATE(YEAR(B3),MONTH(B3)+M3,DAY(B3)))

But this adds months to each row, even if it's 00/01/1900 - it adds only if the value in column M is > 0



Job IDJob Last CompletedJob Due DateJob Due Time PeriodRouteRoute Last CompletedRoute Due DateRoute Due Time PeriodRoutesJob Frequency (months)
MJID000115/01/202515/07/202506
MJID000200
MJID000331/12/1900012
MJID000416/01/202516/02/2025Route 121/01/2025Route 11
MJID000531/03/190003
MJID000631/12/1900012
MJID000731/12/1901024

Basically, I only want a job due date to populate if I can see a date in column B.

Can you help?

Best wishes
Chris
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi Chris,

Have you tried to change = by <> like so:

Excel Formula:
=IF(B3<>0,"",DATE(YEAR(B3),MONTH(B3)+M3,DAY(B3)))

or >

Excel Formula:
=IF(B3>0,"",DATE(YEAR(B3),MONTH(B3)+M3,DAY(B3)))

bests regards,

Vincent
 
Upvote 0
Sadly it didn't work!
1737015811489.png


Same if I use <>

..hmmm
 
Upvote 0
It's ok, I've worked out a workaround!

I tried the above with the original formula... but it's ok. I created a boolean logic to say if a date was after 1/1/25, then I created a formula to return values only if the boolean logic was true, and that worked. :-)
 
Upvote 0
Solution

Forum statistics

Threads
1,225,637
Messages
6,186,135
Members
453,340
Latest member
Stu61

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