Convert date to text with criterias

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi guys..

i hope you could help me to figure it out this my problem,
please check this below :

data
after formula
26/12/2008
2008.12.000026
05/01/1997
1997.01.000005
etc...

<tbody>
</tbody>

criterion :
max len = 14 char
adding/insert mark "."
adding zero number..

for anyone assistance, much appreciated..

m.susanto
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi,

Why is it max len = 14 chars? That would indicate that it can also be less than 14?

In your two examples the number of characters is precisely 14. Can you clarify your statement by giving some examples where the length is less than 14?

Regards
 
Upvote 0
hi XOR, thanks your attention..i'am sorry i mean the characters equal 14..
 
Upvote 0
If you have a real dates in columna A you can use this:

=TEXT(A2,"yyyy.mm.")&"0000"&TEXT(A2,"dd")
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,212
Members
448,874
Latest member
b1step2far

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