简体   繁体   中英

Google Sheets Coding by column NAME not letter/number?

Google Sheets :

Is it possible to code a cell in a sheet to pull in information from another cell in another sheet, inside the same workbook, by the title of the column that I give it, instead of using something like :

=Sheet1!A2

so that it looks for the Column Header Text to bring in the info no matter where it is in Sheet 1? I have csv files that vary with some columns, the most important columns, so they won't always be at the same LetterNumber location.

OFFSET in conjunction with MATCH might suit.

=offset(Sheet1!A1,1,match("name1",Sheet1!1:1,0)-1)

A formula such as above should return a value from Row2 ( 1 lower/higher number than the row of the reference cell A1 ) of Sheet1 from the column defined by the match function. name1 (a column label) might be anywhere in the first row of Sheet1.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM