date

afdmello

Board Regular
Joined
Oct 19, 2010
Messages
104
Hi Folks,

I have a date october 12, 2016 written as 12-10-16 . Which formula will give me a date 6 months ahead?

Afd
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Is it entered as Text, or as a Date with a Custom Format?
If you aren't sure, use this formula to test.

If the value is in cell A1:
=ISNUMBER(A1)

If it returns FALSE, it is Text
If it returns TRUE, it is a Date
 
Last edited:
Upvote 0
If it is a Date, simply use this formula, and the same Custom Format you are using on that cell (dd-mm-yy):
=EDATE(A1,6)

If it is Text, use this formula:
=TEXT(EDATE(DATE("20" & RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2)),6),"dd-mm-yy")
 
Upvote 0
Code:
=DATE(YEAR(H6), MONTH(H6)+6, DAY(H6))

dave
 
Upvote 0
=DATE(YEAR(H6), MONTH(H6)+6, DAY(H6))
That is a another alternative to using EDATE. Just note that it will only work on Date entries, and not Text ones (see my first reply).
 
Upvote 0

Forum statistics

Threads
1,214,570
Messages
6,120,296
Members
448,954
Latest member
EmmeEnne1979

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