Advancing year by +1 from a =text(a1,"YYYY") formula

shasbrooke

New Member
Joined
Aug 26, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I have a date formatted in cell A1 with a value of 01/31/2023. In cell B1 I have =text(a1,"YYYY") resulting in "2023" in cell B1. In cells C1:C50 I would like 2024, 2025, 2026, etc. similarly in a text string as B1. Can't seem to get it to work. The tries I have made so far keep returning "1905". Any help is appreciated.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
It works for me.

Book1
ABC
11/31/202320232024
22025
32026
42027
52028
62029
72030
82031
92032
102033
112034
122035
132036
Sheet1
Cell Formulas
RangeFormula
B1B1=TEXT(A1,"YYYY")
C1C1=B1+1
C2:C13C2=C1+1
Perhaps it is something else in my thread of dates/formulas. I tried to simplify the issue in the original post, but maybe it is something in the formulas leading up to what I stated was A1 previously. Here is the entire flow, with E3 being the date upon which I then calc =TEXT(E3,"YYYY") in F3, which results in 2023. I want to add one year to that in cell G3. Sorry that the initial post was incomplete information:
 

Attachments

  • Screenshot 2023-08-26 171207.jpg
    Screenshot 2023-08-26 171207.jpg
    32.8 KB · Views: 7
Upvote 0
Like this?
Book1
ABCDEFG
1
2
36/15/197419741975
Sheet1
Cell Formulas
RangeFormula
F3F3=YEAR(C3)
G3G3=F3+1
 
Upvote 0
Solution
Like this?
Book1
ABCDEFG
1
2
36/15/197419741975
Sheet1
Cell Formulas
RangeFormula
F3F3=YEAR(C3)
G3G3=F3+1
Thank you, Phuoc. I made some tweaks to some of the other formulas and incorporated your suggestion and all is working well now.
 
Upvote 0

Forum statistics

Threads
1,215,254
Messages
6,123,894
Members
449,132
Latest member
Rosie14

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