smozgur
BatCoder
- Joined
- Feb 28, 2002
- Messages
- 2,656
SHEETNAME function returns the parent worksheet name of the reference cell.
Excel Formula:
=LAMBDA(reference,
LET(name, CELL("filename",reference),
RIGHT(name, LEN(name) - FIND("]", name))
)
)
Cell Formulas | ||
---|---|---|
Range | Formula | |
A2 | A2 | =SHEETNAME(A1) |
B2 | B2 | =SHEETNAME(Sheet2!A1) |
Upvote
1