=MAX(INDIRECT("'"&TEXT(TODAY()-1,"mm-dd-yyyy")&"'!P14
38"))
make sure you have a correct date on your computer since it use the system
clock.
I personally wouldn't use it. A little more static way would be
=MAX(INDIRECT("'"&TEXT(--MID(CELL("filename",A1),FIND("]",CELL("filename",A1
))+1,32)-1,"mm-dd-yyyy")&"'!P14
38"))
Hi Peo,
Thanks. I don't know much so all I can do is copy and paste the above
suggestions. The first one works if I work on today's worksheet and the
computer date is correct. If however I open a sheet from a few days ago
(sheet name e.g. 10-25-3003) or if it's Monday and there was no sheet
created on Sunday (day off) it will not work.
The second formula didn't work for some reason.
Peo, what I'm trying to do is this: Monday to Friday (but sometimes also
Saturday and Sunday) I open a new worksheet. They are always named by the
current date (e.g. 10-31-2003). I have invoice numbers in each daily sheet
in cells from P14 to P38. Instead of manually entering a new invoice number
on a new daily sheet I would like a new sheet to know what was the last
(highest) invoice number on the previous sheet. (Or on any sheet in the
workbook in cells P14
38)
I spent several hours yesterday searching the Web how to reference "previous
sheet" in a workbook. So far no luck.