Keeping date format while using in a sequence formula

PuntingJawa

Board Regular
Joined
Feb 25, 2021
Messages
162
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I'm trying to keep a date format while using a sequence formula.
A2 has the date as M/DD/YYYY
A6 is the line count
F2 is where this primary formula will be. "=A2&TEXT(SEQUENCE(A6),"")" is the formula I am currently using for my usual sequencing of specific information from other cells. In this case I figured using "=A2&TEXT(SEQUENCE(A6),"dd-mmm-yyyy")" would work, and it does in a way, as far as a partial format.
Example below: Under B2 is where my formula should go. A6 is the line count for the sequence part of the formula. A2 where the date should come from. I would like it to pull the current format in A2 and change it to "DD-MMM-YYYY".
Book1
AB
1DateManufacturing:
26/20/20234509701-Jan-1900
3Start #4509702-Jan-1900
434509703-Jan-1900
5Count4509704-Jan-1900
6504509705-Jan-1900
Sheet1
Cell Formulas
RangeFormula
B2:B51B2=A2&TEXT(SEQUENCE(A6),"dd-mmm-yyyy")
Dynamic array formulas.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
If A2 is an actual date & not text, try
Excel Formula:
=A2+SEQUENCE(A6)
and format the column to show the date as you want.
 
Upvote 0
If A2 is an actual date & not text, try
Excel Formula:
=A2+SEQUENCE(A6)
and format the column to show the date as you want.
I should have been more specific, and I am sorry. I'm trying to keep the same date through all of the lines.
 
Upvote 0
In that case use
Excel Formula:
=A2+SEQUENCE(A6,,,0)
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,830
Messages
6,181,228
Members
453,025
Latest member
Hannah_Pham93

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