Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm wanting to convert a date to a related symbol string.
Example: 7/16/21 to "210716" 12/17/21 to "212217" Note that when month has a single digit, a "0" must be added before it in the string. Can't figure out how to do it using Excel functions. Any ideas would be greatly appreciated. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Am Mon, 5 Apr 2021 14:28:14 -0700 (PDT) schrieb programmernovice: I'm wanting to convert a date to a related symbol string. Example: 7/16/21 to "210716" 12/17/21 to "212217" Note that when month has a single digit, a "0" must be added before it in the string. try: =RIGHT(YEAR(A1),2)&TEXT(MONTH(A1),"00")& TEXT(DAY(A1),"00") Regards Claus B. -- Windows10 Microsoft 365 for business |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() try: =RIGHT(YEAR(A1),2)&TEXT(MONTH(A1),"00")& TEXT(DAY(A1),"00") Perfect! Many thanks for your help, Klaus. If memory serves, you've always been helpful to me and I appreciate it. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date Conversion Help | Excel Programming | |||
date conversion | Excel Discussion (Misc queries) | |||
Date conversion | Excel Discussion (Misc queries) | |||
Date conversion | Excel Discussion (Misc queries) | |||
date conversion | Excel Worksheet Functions |