[Solved] Combine text and date in a cell

Discuss the spreadsheet application
Locked
Griff1982
Posts: 2
Joined: Thu Oct 31, 2024 7:59 pm

[Solved] Combine text and date in a cell

Post by Griff1982 »

I keep track of my money using a spreadsheet. I wanted to keep track of when I update it I currently have to over 2 cells, one saying "Updated " and the next cell with the formula =Today() but I wanted this in a single cell. I've tried =Updated " &Today(), but get the date serial (Updated 45569).

I've tried the Excel formula

="Updated " &TEXT(TODAY(), "DDMMMYY") but get Err:508

Any ideas?
Last edited by MrProgrammer on Fri Nov 01, 2024 6:01 pm, edited 3 times in total.
Reason: Edited topic's subject
Windows 11
OpenOffice version 4.1.15
User avatar
MrProgrammer
Moderator
Posts: 5099
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Adding the date to a cell

Post by MrProgrammer »

Griff1982 wrote: Thu Oct 31, 2024 8:24 pm ="Updated " &TEXT(TODAY(), "DDMMMYY")
="Updated " & TEXT(TODAY();"DDMMMYY")   (use a semicolon, not a comma; comma creates Err:508)

TODAY() is always the current date, so if you open the spreadsheet tomorrow the date will be different. To lock the cell so the value never changes, use F2, F9, Enter, Enter.

If this solved your problem please go to your first post use the Edit ✏️ button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.

[Tutorial] Ten concepts that every Calc user should know
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Griff1982
Posts: 2
Joined: Thu Oct 31, 2024 7:59 pm

Re: Adding the date to a cell

Post by Griff1982 »

The semi colon seemed to have fixed it. Perfect Thank you
Windows 11
OpenOffice version 4.1.15
Locked