Not Due Until & (Over)due

jhum

New Member
Joined
Sep 26, 2022
Messages
2
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi there,

I want to create a worksheet that tells me how much time has past or is there until action is needed.

So there is an appointment which needs to be taken every 2 years.
I want to see how much time in months is left until they need to take it again or how many months day are overdue (likewise the red and green example i just made up myself).


NameTraining 1Training 2Training 3Training 4
John01.10.202223 Months until next training
Sarah01.08.201801.08.202001.08.2022-1Months overdue
Samira01.03.202015.05.202219


Thank you for you help!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
you probably need a macro to update the cell next to the training as shown
However you could use a function if you would have the cell next to name

will something like this - Dates are when the training was taken and then Column B gives the date of the next training and Column C number of months (rounded down) so may not be exactly what you wanted

and then the firs blank cell is colour coded , but you could highlight other cells if necessary

otherwise as i say, you may need VBA , which i do not provide solutions for

Book1
ABCDEFGHIJKL
1nametraining dueMonthstraining 1training 2training 3training 4training 5training 6training 7training 8training 9
2Emp110/12/242410/12/22
3Emp28/1/24221/1/201/1/218/1/22
4Emp31/1/2331/1/21
5Emp48/16/22-19/1/198/16/20
6Emp57/1/24217/1/22
7Emp6  
8Emp7  
9  
10  
11  
Sheet3
Cell Formulas
RangeFormula
B2:B11B2=IF(OR(D2="",A2=""),"",DATE(YEAR(MAX(D2:L2))+2,MONTH(MAX(D2:L2)),DAY(MAX(D2:L2))))
C2:C11C2=IF(OR(A2="",D2=""),"",IF(B2<=TODAY(),DATEDIF(B2,TODAY(),"m")*-1,DATEDIF(TODAY(),B2,"m")))
E5E5=DATE(YEAR(TODAY())-2,MONTH(TODAY())-1,DAY(TODAY())-10)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:L6Expression=AND($C2<0,C2<>"",D2="")textNO
D2:L6Expression=AND($C2>0,C2<>"",D2="")textNO
 
Upvote 0
Solution
Thank you
you probably need a macro to update the cell next to the training as shown
However you could use a function if you would have the cell next to name

will something like this - Dates are when the training was taken and then Column B gives the date of the next training and Column C number of months (rounded down) so may not be exactly what you wanted

and then the firs blank cell is colour coded , but you could highlight other cells if necessary

otherwise as i say, you may need VBA , which i do not provide solutions for

Book1
ABCDEFGHIJKL
1nametraining dueMonthstraining 1training 2training 3training 4training 5training 6training 7training 8training 9
2Emp110/12/242410/12/22
3Emp28/1/24221/1/201/1/218/1/22
4Emp31/1/2331/1/21
5Emp48/16/22-19/1/198/16/20
6Emp57/1/24217/1/22
7Emp6  
8Emp7  
9  
10  
11  
Sheet3
Cell Formulas
RangeFormula
B2:B11B2=IF(OR(D2="",A2=""),"",DATE(YEAR(MAX(D2:L2))+2,MONTH(MAX(D2:L2)),DAY(MAX(D2:L2))))
C2:C11C2=IF(OR(A2="",D2=""),"",IF(B2<=TODAY(),DATEDIF(B2,TODAY(),"m")*-1,DATEDIF(TODAY(),B2,"m")))
E5E5=DATE(YEAR(TODAY())-2,MONTH(TODAY())-1,DAY(TODAY())-10)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:L6Expression=AND($C2<0,C2<>"",D2="")textNO
D2:L6Expression=AND($C2>0,C2<>"",D2="")textNO
Thank you so much - that works just fine! I just don't know how I never gotten the idea to have the cell in front - that also makes it easier to put them in order as who's next!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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