You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Sheet name in a cell

How can I put the name of the sheet in a cell automatically?


Thank you!

iMac 27″ 5K, macOS 10.15

Posted on Jun 25, 2022 8:16 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 25, 2022 8:36 AM

If by "automatically" you mean by formula, then, yes, you can put a name in a cell that will change automatically when you change the name of the table or sheet.




For a sheet name in cell A2:


=TEXTBEFORE(REFERENCE.NAME(A2,2,reference-style),"::")


For a table name in cell A3:


=TEXTBETWEEN(REFERENCE.NAME(A3,2,reference-style),"::","::")



(use ; instead of , in the formulas if your region uses , as a decimal separator)


SG

2 replies
Question marked as Top-ranking reply

Jun 25, 2022 8:36 AM in response to ekirt5

If by "automatically" you mean by formula, then, yes, you can put a name in a cell that will change automatically when you change the name of the table or sheet.




For a sheet name in cell A2:


=TEXTBEFORE(REFERENCE.NAME(A2,2,reference-style),"::")


For a table name in cell A3:


=TEXTBETWEEN(REFERENCE.NAME(A3,2,reference-style),"::","::")



(use ; instead of , in the formulas if your region uses , as a decimal separator)


SG

Sheet name in a cell

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.