ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Cell Formula (https://www.excelbanter.com/excel-worksheet-functions/79404-cell-formula.html)

Tony

Cell Formula
 
I got few worksheets in a workbook. Each worksheet has it name. I try to
write a formula to extra the worksheet name into a cell. The formula is "
=RIGHT(CELL("filename"),4) " . It works, however, if I change worksheet from
one to another one. This formula doesn't change (calculate) itself. I have
to re-calcuate by press "F9", sometime I forgot to re-calculate before I
prite out the report. It got the wrong worksheet name. Can anyone help me
to improve my formula and make it works automatically. Thank you very much.

Marijus

Cell Formula
 
Hello i think you disabled auto calculation.
So you have to enable it doing this
TOOLS | OPTIONS | CALCULATION and select AUTOMATIC.
But be careful if your sheets contain huge formulas.

--
M.A.
"Tony" wrote in message ...

I got few worksheets in a workbook. Each worksheet has it name. I try to
write a formula to extra the worksheet name into a cell. The formula is "
=RIGHT(CELL("filename"),4) " . It works, however, if I change worksheet from
one to another one. This formula doesn't change (calculate) itself. I have
to re-calcuate by press "F9", sometime I forgot to re-calculate before I
prite out the report. It got the wrong worksheet name. Can anyone help me
to improve my formula and make it works automatically. Thank you very much.

chillihawk

Cell Formula
 
If you add the second argument to the CELL function you should achieve
your aim. For example: enter the formula in cell A1 of each sheet like
this =RIGHT(CELL("filename", A1),4).

If you don't enter the second argument you will only get information
for the last cell that was changed, not for the specific cell you are
interested in.

HTH



All times are GMT +1. The time now is 10:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com