Add 1 year to date and display text MMYYYY

LaKartoffelita

New Member
Joined
Apr 8, 2015
Messages
13
Hi everybody,

I am new to this forum and it already helped me a lot just by using the search, but this time I can't find an already existing thread with a solution that fits my problem. I am quite new to excel and just started using more complex formulas (and don't know much about macros let alone VBA).

So here's my problem: I have a cell that contains a certain date and I need a way to add one year but instead of displaying a date I need the output to be a certain text according to the month. Here's an example:

A1 = 01.06.2015
B1 = 2016 P6 (The date behind this would be 01.06.2016)

Right now I managed the first part by using the following formula...
=DATE(YEAR(A1) + 1; MONTH(A1); DAY(A1))
...and was thinking to add a TEXT formula with it to display "062016" (not 100% what I need, but this would work as well), except I'm not sure how to combine those two.

I also searched the forum and found something that is very close to what I need...
http://www.mrexcel.com/forum/excel-questions/774759-date-range.html
...but can't make it work. In my Excel this is what I get "07YYYY" (Also this adds a months, not a year...)

Is there a way to make either one of these options work or is there another way to get what I need?

Thanks a lot
 
Last edited:

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Fantastic! Thank you! The second one worked and is the 100% solution I was looking for.

However the first suggestion doesn't work in my file - it returns 00yyyy.
How can I make sure I entered a valid date? (I'm guessing that might be the problem...?!)
(I'm trying to actively improve my excel knowledge and would like to understand and make this option work as well :) )
 
Upvote 0
However the first suggestion doesn't work in my file - it returns 00yyyy.

It must be related to your regional/language settings
You don't have d=day m=month y=year

Look in Windows Control Panel, regional and language.
What is shown as the Short Date format?

Take the formula, and replace the m's with whatever letter represents the Month, and the y's with whatever letter represents the Year.
=TEXT(EDATE(A1;12);"mmyyyy")
 
Upvote 0

Forum statistics

Threads
1,207,443
Messages
6,078,589
Members
446,350
Latest member
FrancieRech

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