date

afdmello

Board Regular
Joined
Oct 19, 2010
Messages
101
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
57,034
Office Version
  1. 365
Platform
  1. Windows
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:

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
57,034
Office Version
  1. 365
Platform
  1. Windows
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")
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
57,034
Office Version
  1. 365
Platform
  1. Windows
=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).
 

Watch MrExcel Video

Forum statistics

Threads
1,130,310
Messages
5,641,450
Members
417,210
Latest member
rins

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
Top