Keeping date format while using in a sequence formula

PuntingJawa

Board Regular
Joined
Feb 25, 2021
Messages
158
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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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