Spaces in Year

rodsin76

New Member
Joined
May 30, 2023
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
Hi,

Can you help me on this?

DateResult
05-29-20242 0 2 4
I want the year have space every number.


Moderator note: Split from Asterisk in Spellnumber, as this is an entirely new question.
 
Last edited by a moderator:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Is that date actually entered as a date with special formatting, or is it being entered as text?
 
Upvote 0
Is that date actually entered as a date with special formatting, or is it being entered as text?
The date is entered as date format...but i want the year have space between number (another command maybe on that matter)
 
Upvote 0
It appears you cannot do that using a Custom Format since Excel automatically changes any single y to yy, so you cannot insert spaces between the y's in the formatter. Do your dates have to remain as real dates? If not, can the formatted date be in a different cell than the real date?
 
Upvote 0
Not the most graceful solution, but it works.
If you have a date in A1, this will formula will return just the year with spaces between each of the numbers:
Excel Formula:
=LEFT(YEAR(A1),1)&" "&MID(YEAR(A1),2,1)&" "&MID(YEAR(A1),3,1)&" "&RIGHT(YEAR(A1),1)
 
Upvote 0

Forum statistics

Threads
1,221,644
Messages
6,161,019
Members
451,682
Latest member
ogoreo

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