Forum Discussion
Sorting and Formatting Dates Formula
Not sure what the resistance to adding columns is, but if you will recall, dates in Excel are actually serial numbers. So the sorting isn't actually done by year, month and day anyway. It's done by serial number. If you want to ignore the year, you're going to have to extract month and day from the serial number into "helper columns" and then do the sorting.
That works, but when I inserted a column, it changed the formatting for another column. It is a date in the original sheet (and it's being used for calculations in another column), but now, on the sheets where I am extracting the array, it shows the serial numbers. Is there a way to lock the formatting for that column so the dates show as dates on the other sheets?
- mathetesJan 04, 2024Silver Contributor
Just reset the format to the desired date format on the sheet where you're extracting. What's extracted is the serial number; it's up to you to format as desired.
- r_wallaceJan 04, 2024Copper Contributor
Okay, I was hoping there was a way to automate it. Thank you, though!