I want to replace the sheet name with gid number in Google Sheets.


How can I replace the Sheet1! with its gid number?

1 Answer 1


At this time, IMPORTRANGE doesn't use GID, only the sheet name.

If you want to use GID instead of using a built-in function, you should use a custom function, a script or an add-on.

For further details see

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.