用工作表 1 自动填充工作表 2 [英] Autofill sheet 2 with sheet 1

查看:34
本文介绍了用工作表 1 自动填充工作表 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有第 1 页,其中包含:

I have sheet 1 which contains:

我只是把Y"写成通过",琼的第二条信息还没有完成,因为它还没有完成.

I'll just put "Y" as "Passed", the 2nd information of Joan is not yet complete because it's not yet finish.

Name | Attendance | Final Grade | Result
Juan |     Y      |      Y      | Passed
Joan |     Y      |             | 

我创建了第二张工作表,其中只有 1 列写着毕业生".我现在想要的是,当工作表 1 上的列结果 (D2) 表示学生通过时.它将使用通过的学生的姓名填充工作表 2 (A2) 上的列.

I create a 2nd sheet with only 1 column saying "Graduates". What I want here now is when the Column Result (D2) on Sheet 1 says that the students Passed. It will fill the Column on Sheet 2 (A2) with the name of the student that passed.

像这样:

Graduates |
Juan      |

到目前为止,我尝试通过将 =Sheet1!D2 放在工作表 2 (A2) 上的单元格上使用工作表 1 自动填充工作表 2,但是如何将数据放在列名称下(在工作表 1 上)在列毕业生上(在工作表 2 上)如果工作表 1 上的人在结果列下有值?

So far, I tried auto-filling the Sheet 2 using Sheet 1 by putting =Sheet1!D2 on my cell on sheet 2 (A2), but how can I put the data under Column Name (on sheet1) on Column Graduates (on sheet2) if the Person on sheet1 has a value under the column Result?

推荐答案

在 sheet2 的 A2 中使用以下公式:

In sheet2's A2 use the following formula:

=IFERROR(INDEX(Sheet1!A$2:A$9999, SMALL(INDEX(ROW($1:$9998)+(Sheet1!D$2:D$9999<>"passed")*1E+99, , ), COUNTA(A$1:A1))), "")

填写大量等于 sheet1 中学生人数的行.您的结果应类似于以下内容.

Fill down for a large number of rows equal to the number of students in sheet1. Your results should resemble the following.

一旦 Joan Passed 通过键入或公式输入到 D 列,sheet2 上的结果将更改为:

As soon as Joan has Passed put into column D through typing or formula, the results on sheet2 will change to something like:

IFERROR 函数 为您填写的每个无法产生匹配值的单元格显示空字符串(例如").

The IFERROR function shows empty strings (e.g. "") for every cell you filled down that cannot produce a matching value.

这篇关于用工作表 1 自动填充工作表 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆