Problems with CELL("filename") when using multiple workbooks (1 Viewer)

kengooch

Member
Local time
Today, 06:28
Joined
Feb 29, 2012
Messages
137
We collect data on patient transfer in a worksheet name 2022-11-01 Patient Transfer one sheet for each day. We use the CELL("filename") function to read the file name and parse off the date from the file name. From that date we calculate How many days spent in the hospital. We did this because if we use the Today() function, then when you open an existing sheet, it changes the date on the sheet and then the Days spent in the hospital is not correct.

If we have multiple days open, evaluating transfers on these days and the sheet recalculates, it changes the date for all open workbooks to the filename of the active sheet. I need some way (other than vba which doesn't seem to work in Share Point) to set a sheet date automatically that won't change when the sheet is opened in the future.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 08:28
Joined
Feb 28, 2001
Messages
27,186
Perhaps define with an IIF such that if the cell is blank then use TODAY() otherwise do nothing?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 21:28
Joined
May 7, 2009
Messages
19,245
to set a sheet date automatically that won't change when the sheet is opened in the future.
no guarantee (non-vba) that you will find one.
mistakenly striking a key will trigger that the workbook has been "modified".
 

Users who are viewing this thread

Top Bottom