简体   繁体   English

Google表格按“ NAME”列编码不是字母/数字?

[英]Google Sheets Coding by column NAME not letter/number?

Google Sheets : Google表格:

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 工作表Sheet1 =!A2

so that it looks for the Column Header Text to bring in the info no matter where it is in Sheet 1? 以便无论表格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. 我的csv文件随某些列(最重要的列)而有所不同,因此它们将不会始终位于同一LetterNumber位置。

OFFSET in conjunction with MATCH might suit. 与MATCH配合使用OFFSET可能适合。

=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. 诸如此类的公式应从match函数定义的列返回Sheet1的Row2(比参考单元格A1的行低/高1数字)中的值。 name1 (a column label) might be anywhere in the first row of Sheet1. name1 (列标签)可能在Sheet1第一行的任何位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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