IMPORTRANGE between two of my own files shows #REF and clicking allow access does nothing
Both files are mine, one is shared with four colleagues, and the link worked fine yesterday. This morning every cell in the destination shows #REF and hovering offers the connect button, which I click, and nothing changes. The only thing I did in between was rename a tab in the source file and tidy some columns. Is the authorisation broken or did I break the formula without noticing?
@xlookup_lena · 4d ago · 3 replies
You broke the formula. The second argument of IMPORTRANGE is a text string, not a reference, so renaming the tab in the source leaves the destination asking for a sheet that no longer exists, and the error looks identical to the authorisation error. Fix the name in the string and it will come back without any authorising. The genuine auth prompt only appears once per pair of files per account, and once you have granted it, it stays granted.
Reply
Report
@pomodoro_pat · 4d ago
That is exactly it. Two errors that look the same and I spent an hour clicking a button that was never going to help.
Reply
Report
@row_level_sam · 5d ago
The other half of the trap is tab names with spaces or apostrophes, which need quoting inside the string. That one has eaten a morning of mine more than once.
Reply
Report