Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I pulled this formula from the web somewhere - it returns the tab name
=MID(CELL("filename"), FIND("]",CELL("filename"))+1, LEN(CELL("filename"))-FIND("]", CELL("filename"))) But if I copy it to various sheets, F9 does not recalculate it correctly. I actually have to go to each sheet and do Shift+F9 or F9 to make it display the right name. Even if my workbook is set to Automatic Calculation, this cell will not update until I go to that tab and F9 it. Any advice? |
#2
![]() |
|||
|
|||
![]()
You need to reference a cell (anyone will do even the cell the formula is
in) =MID(CELL("filename",A1), FIND("]",CELL("filename",A1))+1,32) it can be simplied since a sheet name only can have a certain number of characters -- Regards, Peo Sjoblom "Daniel Bonallack" wrote in message ... I pulled this formula from the web somewhere - it returns the tab name =MID(CELL("filename"), FIND("]",CELL("filename"))+1, LEN(CELL("filename"))-FIND("]", CELL("filename"))) But if I copy it to various sheets, F9 does not recalculate it correctly. I actually have to go to each sheet and do Shift+F9 or F9 to make it display the right name. Even if my workbook is set to Automatic Calculation, this cell will not update until I go to that tab and F9 it. Any advice? |
#3
![]() |
|||
|
|||
![]()
Thanks Peo, but I don't quite understand (sorry!).
When I copy this formula into any cell, including A1, it just returns a #VALUE! error. I'm missing something, right? Daniel "Peo Sjoblom" wrote: You need to reference a cell (anyone will do even the cell the formula is in) =MID(CELL("filename",A1), FIND("]",CELL("filename",A1))+1,32) it can be simplied since a sheet name only can have a certain number of characters -- Regards, Peo Sjoblom "Daniel Bonallack" wrote in message ... I pulled this formula from the web somewhere - it returns the tab name =MID(CELL("filename"), FIND("]",CELL("filename"))+1, LEN(CELL("filename"))-FIND("]", CELL("filename"))) But if I copy it to various sheets, F9 does not recalculate it correctly. I actually have to go to each sheet and do Shift+F9 or F9 to make it display the right name. Even if my workbook is set to Automatic Calculation, this cell will not update until I go to that tab and F9 it. Any advice? |
#4
![]() |
|||
|
|||
![]()
Sorry, my fault, I didn't save the file. now it works.
Thanks Peo. "Peo Sjoblom" wrote: You need to reference a cell (anyone will do even the cell the formula is in) =MID(CELL("filename",A1), FIND("]",CELL("filename",A1))+1,32) it can be simplied since a sheet name only can have a certain number of characters -- Regards, Peo Sjoblom "Daniel Bonallack" wrote in message ... I pulled this formula from the web somewhere - it returns the tab name =MID(CELL("filename"), FIND("]",CELL("filename"))+1, LEN(CELL("filename"))-FIND("]", CELL("filename"))) But if I copy it to various sheets, F9 does not recalculate it correctly. I actually have to go to each sheet and do Shift+F9 or F9 to make it display the right name. Even if my workbook is set to Automatic Calculation, this cell will not update until I go to that tab and F9 it. Any advice? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF formula? | Excel Worksheet Functions | |||
writing a formula for a colored value | New Users to Excel | |||
referencing named formula using INDIRECT function | Excel Worksheet Functions | |||
Simplify formula | Excel Worksheet Functions | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) |