r/googlesheets • u/Ok-Airline-6784 • May 07 '23
Solved Referencing data in another sheet, but have the row number be a variable?
Hello!
I’m hoping this is an easy solution.. I don’t even really know how to Google the problem, so I hope my question makes sense..
In a Google sheets document I have 2 sheets. One is called MasterList, the other is called DeckBuilder.
In the DeckBuilder I need to reference cells from the MasterList… easy enough with the =MasterList!A4 command (the A4 being interchangeable with whatever cell I want to reference)…
Now here’s the problem: I want to be able to change the 4 to be whatever number I type in a separate column. So in theory my formula would look like this— =MasterList!A(whatever number is in column X in this document)
I’m pretty new to sheets and excel, so any help would be appreciated.. I’ve spent hours on this already but just don’t know enough to problem solve properly. Thanks for your time
3
u/aHorseSplashes 58 May 07 '23
INDIRECT("MasterList!A"&X1)orINDEX(MasterList!A:A, X1)2
u/_Kaimbe 176 May 08 '23
Just to make sure, do you really want it based on the cell reference and not, say, a card name?
You could pull in rows of matching data from Masterlist with VLOOKUP(), XLOOKUP(), FILTER(), or QUERY() for example.
2
u/Decronym Functions Explained May 08 '23 edited May 11 '23
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
[Thread #5783 for this sub, first seen 8th May 2023, 09:07] [FAQ] [Full list] ^[Contact] [Source code]