Incrementing cell value in time format

toufiqsap

New Member
Joined
Jan 6, 2022
Messages
5
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Hi Floks,

I am writing code for the incrementing the A1 cell value till the cell A2 and display it in A3(time format).

EX: I have a value of in cell A1= 2020.01 and in cell A2= 5 YEARS.

A3 cell should display like.

2021.01,2022.01,2023.01,2024.01,2025.01
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
TEXTJOIN.xlsm
A
12020
25
32021.1, 2022.1, 2023.1, 2024.1, 2025.1
Sheet4
Cell Formulas
RangeFormula
A3A3=TEXTJOIN(", ",1,A1+SEQUENCE(A2) &".1")
Press CTRL+SHIFT+ENTER to enter array formulas.
A2
Hey thanks for the reply,

But here my A1 and A2 are dynamic(User will enter input) it will be sometimes A1=2025.12 and A2= 10 years. So i want to achive this through dynamic(Macro).
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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