Google Sheets filename in cell via formula instead of a script?
W

2

10

Is there a FORMULA that will display the name of the file in a cell?

I've found scripts that will do it, formulas that will display the sheet name, but no luck finding a formula that will show the filename.

If I have to resort to the script, so be it. But I'd like to use formula if possible.

If this has been asked before, please point me to the post and I will delete this one.

Who answered 11/8, 2019 at 19:3 Comment(1)
Does this answer your question? Is there a native function in Google Sheets that I can use to get the Spreadsheet name?Southwestward
S
1

No—unfortunately this is not possible with any built-in function.

The only way to do this with a function would be to use AppScript to write a custom one, which is essentially back to writing a script.

Southwestward answered 26/4, 2023 at 13:23 Comment(1)
@Who Mind accepting this answer so we can remove this as the most-viewed “unanswered” question in the [google-sheets-formula] tag? Sadly almost 4 years later the answer to your question is still “no” :(Southwestward
A
0

But adding this App Script will return the correct value (but slowly):

function GetGoogleSheetName() {
return SpreadsheetApp.getActiveSpreadsheet().getName();
}
Apatetic answered 23/8, 2023 at 16:7 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.