I’d like to put a formula into a cell that contains the name of the sheet that contains the cell.
After looking through an earlier discussion, I came up with the following formula:
=MID(CELL(“filename”),FIND(“]”,CELL(“filename”))+1,100)
However, the CELL() function refers to properties of the active cell rather than the cell containing the formula. So for example if:
Sheet2!A1 contains
=MID(CELL(“filename”),FIND(“]”,CELL(“filename”))+1,100)
Sheet1!A1 contains
=Sheet2!A1
Then when Sheet1 is active, it will display “Sheet1” not “Sheet2”. If the calculations in Sheet2 depend on its name (which is why I want the name there) they will be incorrect.
Any suggestions?
Ian.