0

I have two columns, one has text values and another with has corresponding Yes/No text values.

In another column I'd like to list the values of the first column if the answer in the adjacent column is "no". How would I go about doing this without spaces being in the "Yes" items? I can't figure out the IF/then logic.

This is for a form so I need it to do this automatically.

Example:

| Item |   | Is Fruit? |                       | List of Fruit |

 Apples        Yes                                  Apples
 Oranges       Yes                                  Oranges
 Broccoli      No                                   Peaches
 Carrots       No
 Peaches       Yes

I do not want:

| Item |   | Is Fruit? |                       | List of Fruit |

 Apples        Yes                                  Apples
 Oranges       Yes                                  Oranges
 Broccoli      No                                   [BLANK]
 Carrots       No                                   [BLANK]
 Peaches       Yes                                  Peaches
4

1 回答 1

0

布局如图所示:

在此处输入图像描述

这个公式有效:

{=IF(IFERROR(INDEX(B:B,SMALL(IFERROR(1/SIGN((C:C=A$1))*ROW($1:$5),6),ROWS(B$1:B1)),1),"")=0,"",IFERROR(INDEX(B:B,SMALL(IFERROR(1/SIGN((C:C=A$1))*ROW($1:$5),6),ROWS(B$1:B1)),1),""))}  

6要应用的总行数在哪里)但它很慢而且不是我推荐的。我的偏好是首先接受空白,将该列复制到备用表,过滤以删除空白并复制回来。

如果您真的希望将其更改Yes为.A1no

于 2013-07-31T17:26:05.497 回答