简体   繁体   English

Google 表格:根据两个相邻单元格的值自动将数据输入单元格

[英]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:有以下三个重要的值:

  1. The course (Beginner, Elementary, Intermediate, Upper-Intermediate or Advanced).课程(初级、初级、中级、中高级或高级)。 I'm entering this information in column C.我在 C 列中输入此信息。
  2. The lesson number (1-20).课号 (1-20)。 Each course contains 20 lessons.每门课程包含 20 节课。 So, for example, once students complete all 20 lessons in the Beginner course, they move on to the Elementary course.因此,例如,一旦学生完成了初级课程的所有 20 节课,他们就会继续学习初级课程。 I'm entering this information in column D.我在 D 列中输入此信息。
  3. The lesson title.课程标题。 So for example, Beginner lesson 1 is called 'Introduction to English', and Intermediate lesson 15 is called 'Making phone calls'.例如,初级课程 1 称为“英语简介”,中级课程 15 称为“打电话”。 I'm entering this information in column E.我在 E 列中输入此信息。

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!AD=Sheet1!BE=Sheet1!C )那么你只需在第 2 行中使用它:

=INDEX(IFNA(VLOOKUP(C2:C&"×"&D2:D, {Sheet1!A:A&"×"&Sheet1!B:B, Sheet1!C:C}, 2, 0)))

update:更新:

=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.

相关问题 如何根据 Google 表格中其他两个单元格的比较,使单元格返回值列表中的一个? - How do you make a cell return one of a list of values based on a comparison of two other cells in Google Sheets? 如何比较两行Google表格中的数据,并输出第1行中大于第2行中的单元格的单元数? - How to compare data in two rows of Google Sheets and output number of cells in row 1 that are > the cell in row 2? 谷歌工作表中的两个活动工作表基于单元格比较更新错误 - two active sheets in google sheets update error based on cell comparison 如何根据单元格值将地址传递给 Vlookup(Google 表格) - How to pass addresses to Vlookup based on cell values (Google Sheets) 根据Google表格中的字符串返回多个单元格值 - return multiple cell values based on string in Google sheets 基于 Google 表格中的下拉列表填充单元格 - Populating Cells Based on Dropdowns in Google Sheets Google 表格:条件格式 - 根据另一个单元格的值在一个范围内为一行中的所有非空单元格着色? - Google Sheets: Conditional Formatting - color all non-empty cells in a row within a range based on the value of another cell? Google Sheets - 当单元格不为空时自动插入文本 - Google Sheets - Insert text automatically when cell is not empty 根据Google表格中的条件提取唯一值 - Extract Unique Values Based On Criteria In Google Sheets 在Google表格中输入文字数组时,如何创建空值(跳过单元格)? - How do I create a null value (skip a cell) when entering a literal array in Google Sheets?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM