Share via

Excel keeps breaking the data formatting

Lucas Caiã Hahn 20 Reputation points
2026-05-20T13:29:01.4066667+00:00

I'm looking for a way to have a text and, at the end of it, having the current date, such as "20/02/2026 09:25".
Unfortunately my cell just won't budge, and it's presenting the formula as you can see in the attached image.

I tried everything I could find online, to no avail. No cell formatting worked, neither attempting to hide formulas.

Any idea what could be going on? It's probably somehing silly...User's image

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

Answer accepted by question author

Jess-Q 11,070 Reputation points Microsoft External Staff Moderator
2026-05-20T14:29:43.5366667+00:00

Hi @Lucas Caiã Hahn.

Please understand that our forum is a public platform, and we will modify your question to cover your personal information including your organization name in the description. Please notice to hide these organization information next time you post error or some information to protect personal data. 


Regarding your issue, when you use the & operator to concatenate text with a date/time function like AGORA() (or NOW() in English), Excel doesn't carry over the date formatting instead, it returns the raw serial number that Excel uses to store dates internally. That's why you're seeing something like 46162,3912282407 instead of a formatted date. 

The solution is to wrap AGORA() inside the TEXTO() function (or TEXT() in English) to format the date before it gets concatenated.  

For English Excel: 

="Sample Text "&TEXT(NOW(),"DD/MM/YYYY HH:MM") 

Or in Portuguese Excel:

="Sample Text "&TEXTO(AGORA();"DD/MM/AAAA HH:MM") 

This converts the date/time into the formatted text first and then joins it with the rest of the string.

Note: Since your Excel is in Portuguese, make sure to use semicolons (;) as the argument separator. If AAAA doesn't work for the year, try YYYY instead it may vary depending on your Excel version. 

Hopefully it will help work with your issue and if you have any other questions or need further assistance, feel free to ask.   


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".     

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.   

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.