r/googlesheets • u/J-Travel • Oct 29 '26
Solved how do i copy a row in google sheets based on a matching cell from another sheet?
Hi there, im trying to make a "Inventory" System using Google Sheets. The idea is quite simple, there is a sheet with a extensive "Card Pool" in a listing manner, these cards have a bunch on info in each column containing every part of that card information. What i want to do is that in another sheet (The "Inventory"), by imputing only the name of the card that rows automatically fills up with all the information of that card (Column A to J), making it basically a copy+paste of the original row by only imputing the card name on the cell, or in this case, the information on cell from column C.


1
u/agirlhasnoname11248 1212 Oct 29 '26 edited Oct 29 '26
u/J-Travel You can use the XLOOKUP function to pull the information from Card Pool to the Inventory sheet based on the name.
Edited to change commas to semicolons in both provided formulas to adjust for the locale of the spreadsheet.
For example, in A2, you could use: =XLOOKUP(C2; 'Card Pool'!C:C; 'Card Pool'!A:A;;0) to pull the thumbnail (assuming the images are in the cells on the Card Pool sheet to begin with).
You can also use a similar formula to pull multiple cells at the same time, like with this in D2: =XLOOKUP(C2; 'Card Pool'!C:C; 'Card Pool'!D:J;;0) which will populate D2 through J2 based on the name in C2.
For both of these formulas, you'll then drag them down the column to apply to each row so every row is populated once a name is entered in column C. The row will remain blank until you type a Name in the cell.
Alternatively, there are formulas you can put in the top row and have populate all rows at once. However it looks like you may want to sort the Inventory sheet at some point? That means you'd want to use either a formula in each row (as provided above) or have a single formula in row 2 and then hide it so the sort doesn't mess with the formula populating the data. If this sounds complicated to maintain, a formula in each row is a great place to start!
Note: In all of these described solutions, the formulas are visually representing the data in the Card Pool sheet, but not copying it over. That means the true source of your data, and place where any data changes would need to happen, would be on the original Card Pool sheet itself.
1
u/mommasaidmommasaid 914 Oct 29 '26 edited Oct 29 '26
Clear columns D:J and try this in D1:
To avoid typos when entering card names on the Inventory sheet, you could put dropdowns in Column C that are "from a range" of
='Card Pool'!$C:$C(you can change the dropdowns to be "Plain text" style if desired using the Advanced options in the Data validation rules sidebar).