How to transform a date into a text

Hello.

Can you please tell me if there is any way to get around the absence of Excel's TEXT function in Numbers?

My intention is to transform a date into text, for example, dd-mmm-yyyy into just mmm-yyyy.

My thanks in advance.

Manuel

Posted on Sep 5, 2024 9:17 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 5, 2024 10:59 AM

Are you looking to change the underlying value of the cell? or just the way it's presented?


Normally, if you want a date shown as mmm-yy you can do that through cell formatting, where you can define which elements of a datetime cell you want to show (and is, if I remember correctly), essentially what Excel's TEXT() function does - takes a value and a formatting string to define how to show the value.


Failing that, in the absence of the TEXT() function, you can construct it yourself using text functions like:


=LEFT(MONTHNAME(MONTH(A2)),3)&"-"&YEAR(A2)


(Assuming A2 has a date value)

Similar questions

2 replies
Question marked as Top-ranking reply

Sep 5, 2024 10:59 AM in response to Tugalike

Are you looking to change the underlying value of the cell? or just the way it's presented?


Normally, if you want a date shown as mmm-yy you can do that through cell formatting, where you can define which elements of a datetime cell you want to show (and is, if I remember correctly), essentially what Excel's TEXT() function does - takes a value and a formatting string to define how to show the value.


Failing that, in the absence of the TEXT() function, you can construct it yourself using text functions like:


=LEFT(MONTHNAME(MONTH(A2)),3)&"-"&YEAR(A2)


(Assuming A2 has a date value)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to transform a date into a text

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.