Please help

Melmillw82

New Member
Joined
Nov 14, 2017
Messages
27
Hi all,
I need help with a formula. I have reg date in column A, I would like to find out the next service date of the vehicle. I need a formula that will add 18 months to the reg date then keep adding 18 months untill a certain date. But only if its less than my end date.
Thins is driving me mad please help.

Thanks in advance
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
A complete explanation and an example would have been very useful.

Consider the following


Excel 2010
AB
1Reg DateExpiry
21-Oct-20181-Jan-2022
31-Apr-2020
41-Oct-2021
2b
Cell Formulas
RangeFormula
A3=IF(DATE(YEAR(A2),MONTH(A2)+18,DAY(A2))<$B$2,DATE(YEAR(A2),MONTH(A2)+18,DAY(A2)),"")
A4=IF(DATE(YEAR(A3),MONTH(A3)+18,DAY(A3))<$B$2,DATE(YEAR(A3),MONTH(A3)+18,DAY(A3)),"")
 
Last edited:
Upvote 0
Hi,

Depending on how your data is setup, the formula will be written differently, this is one way:


Book1
ABCD
1Reg Date11/4/2018End Date9/1/2030
2Service Dates5/4/2020
311/4/2021
45/4/2023
511/4/2024
65/4/2026
711/4/2027
85/4/2029
9
10
Sheet334
Cell Formulas
RangeFormula
B2=IFERROR(IF(EDATE(B1,18)>D$1,"",EDATE(B1,18)),"")


Formula copied down.
 
Last edited:
Upvote 0
Sorry should have given more detail.

A2 reg date 1st oct 2013
B2 I would like 18 months from this date and keep adding 18 months and give me the next date after todays date.

Hope this makes sense
 
Upvote 0
This should give you what you want, what about the End Date?


Book1
AB
1Reg Date
210/1/201310/1/2019
Sheet335
Cell Formulas
RangeFormula
B2=EDATE(A2,18*ROUNDUP(DAYS(TODAY(),A2)/(365*1.5),0))
 
Upvote 0
try one of


Excel 2010
ABCD
11Reg Date4-Nov-2018
121-Oct-20131-Oct-20191-Oct-20191-Oct-2019
13
2b
Cell Formulas
RangeFormula
B12=EDATE(A12,CEILING(DATEDIF(A12,D11,"m"),18))
C12=EDATE(A12,CEILING(DATEDIF(A12,TODAY(),"m"),18))
D12=EDATE(A12,CEILING((TODAY()-A12)/30.25,18))
 
Upvote 0
Hi, getting a name error? I don't need an end date just need the next service date after today
Thanks

Don't see why you would get a NAME error, does your region require ; (semicolon) rather than , (comma)?
If so, replace all commas in formula with semicolon.
 
Upvote 0
Did you mean
=EDATE(A2,18*ROUNDUP((TODAY()-A2)/(365*1.5),0)) ?
 
Upvote 0
This should give you what you want, what about the End Date?


Book1
AB
1Reg Date
210/1/201310/1/2019
Sheet335
Cell Formulas
RangeFormula
B2=EDATE(A2,18*ROUNDUP(DAYS(TODAY(),A2)/(365*1.5),0))

Did you mean
=EDATE(A2,18*ROUNDUP((TODAY()-A2)/(365*1.5),0)) ?

Thanks Dave, I think you might be correct, it's probably the DAYS function that OP may not have, so yes, just subtract the dates instead.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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