Possible to show last file-save date in a cell?

I have a Numbers spreadsheet showing various account balances.


(I manually look up those account balances on banking websites, then copy & paste the values into the approriate cells.)


I'd like to include a cell that shows the date on which the file was most recently changed.


So that I can have something like this:

My Account Balances:
Note: This document was last modified on:Feb 27, 2014


Right now I manually enter the date when I update it. So that if I update the numbers today, and print it out next week, it still shows the correct data when it was last updated.


The problem with manually updating that date is that sometimes I update the account balances, but forget to manually change the date.


I can't use the "=TODAY()" function because that will automatically always show the current date, even if I haven't modified the file in a week.


Is there a date function that will always show the date when I last hit "Save"?

Numbers '09 (version 2.3)

Posted on Feb 27, 2014 8:40 AM

Reply
8 replies

Feb 27, 2014 12:53 PM in response to yourmacexpert

The script below will put the date last modified onto the clipboard for pasting into your cell, perhaps saving you a trip to Finder Get Info, Jerry's reliable method.


I don't know how to make it fully automatic so that it runs immediately upon opening a document, though there may be a way that the true AppleScript mavens would know.


You would need to run it before making any changes to a document you have just opened. (Or of course, if you remember, you can run it and paste the value in before closing.)


SG



--places date a document was last modified on the clipboard for pasting into Numbers 3

tell application "Numbers" to tell front document to set thePath to its file

tell application "Finder" to set modDate to modification date of file thePath

tell application "System Events" to set the clipboard to date string of modDate

--end of script

Feb 27, 2014 1:30 PM in response to yourmacexpert

The 'Today' Automator Service (actually a date-time stamp, i.e. both date and time, so that's a bit of a misnomer; it's really 'Now') can be downloaded here. (Dropbox download). Doubleclicking the .workflow package will move it to the Library>Services folder, making it show up in the Services menu (you may have to click 'download anyway' in System Preferences > Privacy & Security. Like any other menu item it can then be assigned a keyboard shortcut at System Preferences > Keyboard:


User uploaded file


To rename it or trash it or open it in Automator to modify it, in Finder hold down the option key and Go > Library > Services.


SG

Feb 27, 2014 1:08 PM in response to yourmacexpert

It's my opinion that you should annotate every log entry with the current date and time, for reasons separate from this flag for your wife. After that, it's a simple master to have the display cell find the MAX date entry in the log and display it. I do this with a document that tracks regular invoice payments such as credit card bills. Each vendor gets a log sheet, and I have a Top Sheet that summarizes when each vendor was last paid, how much, confirmation code, etc. To top sheet works by finding the rows with the MAX dates in the individual sheets and pulling them into the summary.


SG has written an Insert Date and Time Script which you can wrap in an Automator action and assign a Keyboard Shortcut to. This is the easiest way to time-stamp your individual entries.


Jerry

Feb 27, 2014 12:39 PM in response to Jerrold Green1

Thanks for that suggestion, Jerry.


I guess I left out this critical detail: The reason I need the date there is that I print this out for my wife, who isn't computer-savvy. I'm trying to avoid the situation where she looks at the printout, and the date, and wonders why the numbers seem out-of-wack.


Perhaps a different workflow is in order.


Perhaps I'll create a column next to each number to indicate when it was last updated?


Like this:

Visa credit card: $100 2-1-2014


Any any other suggestions?

Feb 27, 2014 1:34 PM in response to Jerrold Green1

Jerrold Green1 wrote:


It's my opinion that you should annotate every log entry…


It's not a log. It's just a 1-page summary of our current account balances. Every once in a while, my wife asks, "How much do we owe to our creditors?" And I print this out and show her.


It's just supposed to be a snapshot of our current account balances on a given day.

Feb 27, 2014 1:53 PM in response to yourmacexpert

Simplest method would be to alter your workflow.


Start by opening the template (saved with the cell into which the date is to be inserted selected),

Go Numbers > Services > Today.

Fill in the table using your current method.

Print.

(Save)

Close.


This requires creating (or editing) a template in which you have formatted the target cell as Date and Time displaying the date part in the format you want to see it (and the time part as you want it to appear, or not appear), then Selecting the file that will contain the date and Saving the file as a Template.


It also requires downloading and installing SG's "Today" service—a three or four click task with minor thumb-twiddling time while the download occurs.


Both of these are one-off processes, after which the workflow above will apply.


Regards,

Barry

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.

Possible to show last file-save date in a cell?

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