[英]Google Sheets: Automatically entering data into a cell based on the values of two neighbouring cells
First of all, I am a complete novice at spreadsheets, so please explain things to me like I'm five years old.首先,我是电子表格的新手,所以请像我五岁一样向我解释。 Secondly, I've already searched this throughout the inte.net but the only help seems to be related to entering data based on the value of one cell, not two.
其次,我已经在整个 inte.net 中搜索过这个,但唯一的帮助似乎与基于一个单元格而不是两个单元格的值输入数据有关。
I'm a language teacher and I'm using a tracker to keep a record of all the lessons that I teach.我是一名语言老师,我正在使用跟踪器记录我教授的所有课程。 There are three important values:
有以下三个重要的值:
When I'm booked for a new lesson, I currently have to manually enter all this information.当我预订新课程时,我目前必须手动输入所有这些信息。 But I want to speed up the process so that I just have to enter the course name in column C and the lesson number in column D, and the third cell will automatically update in column E with the lesson title.
但我想加快这个过程,这样我只需在 C 列中输入课程名称,在 D 列中输入课程编号,E 列中的第三个单元格将自动更新课程标题。
At the moment this tracker is one sheet.目前这个追踪器是一张纸。 A table of all the levels, lesson numbers and lesson titles is on another sheet.
所有级别、课程编号和课程标题的表格在另一张纸上。
If anyone could help me accomplish this, I'd very much appreciate it!如果有人能帮我完成这个,我将不胜感激!
you can use VLOOKUP
where you join C&D and look that up in your other sheet where you have that table (let's say it's in Sheet1:A:C
where C=Sheet1!A
, D=Sheet1!B
and E=Sheet1!C
) then you just use this in row 2:您可以在加入 C&D 的地方使用
VLOOKUP
并在您拥有该表的其他工作表中查找它(假设它在Sheet1:A:C
中,其中C=Sheet1!A
、 D=Sheet1!B
和E=Sheet1!C
)那么你只需在第 2 行中使用它:
=INDEX(IFNA(VLOOKUP(C2:C&"×"&D2:D, {Sheet1!A:A&"×"&Sheet1!B:B, Sheet1!C:C}, 2, 0)))
=INDEX(IFNA(VLOOKUP(E2:E, 'UPDATED Lessons'!A2:J,
MATCH(D2:D, 'UPDATED Lessons'!A1:J1, ), )))
@player0 helped me out with the sheet in the end with this very clever formula. @player0 最后用这个非常聪明的公式帮助我完成了表格。 Thanks so much!
非常感谢!
=INDEX(IFNA(VLOOKUP(E2:E, 'UPDATED Lessons':A2,J: MATCH(D2,D: 'UPDATED Lessons',A1,J1, ), ))) =INDEX(IFNA(VLOOKUP(E2:E, '更新课程':A2,J: MATCH(D2,D: '更新课程',A1,J1, ), )))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.