提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何在Google工作表中创建相关的下拉列表?

在Google工作表中插入正常的下拉列表对你来说可能是一件容易的事,但有时候,你可能需要插入一个依赖的下拉列表,这意味着第二个下拉列表取决于第一个下拉列表的选择。 你怎么能在Google工作表中处理这个任务?

在Google工作表中创建一个依赖下拉列表


在Google工作表中创建一个依赖下拉列表


以下步骤可能会帮助您插入相关的下拉列表,请按照以下步骤操作:

1。 首先,您应该插入基本的下拉列表,请选择要放置第一个下拉列表的单元格,然后单击 数据 > 数据验证,看截图:

2。 在弹出 数据验证 对话框中选择 从一个范围列表 从旁边的下拉列表中选择 标准 部分,然后单击 按钮选择要创建第一个下拉列表的单元格值,请参阅截图:

3。 然后点击 保存 按钮,第一个下拉列表已创建。 从创建的下拉列表中选择一个项目,然后输入此公式: =arrayformula(if(F1=A1,A2:A7,if(F1=B1,B2:B6,if(F1=C1,C2:C7,"")))) 放入与数据列相邻的空白单元格中,然后按 输入 键,所有基于第一个下拉列表项目的匹配值将立即显示,请参见屏幕截图:

注意:在上面的公式中: F1 是第一个下拉列表单元格, A1, B1 C1 是第一个下拉列表中的项目, A2:A7, B2:B6 C2:C7 是第二个下拉列表基于的单元格值。 您可以将它们更改为您自己的。

4。 然后,您可以创建第二个从属下拉列表,单击要放置第二个下拉列表的单元格,然后单击 数据 > 数据验证数据验证 对话框中选择 从一个范围列表 从旁边的下拉 标准 部分,然后点击按钮选择公式单元格,这是第一个下拉项目的匹配结果,请参见截图:

5。 最后,点击保存按钮,第二个从属下拉列表已成功创建,如下图所示:


Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Guest · 6 months ago
    Now is needed to use: =arrayformula(if(F1=A1;A2:A7;if(F1=B1;B2:B6;if(F1=C1;C2:C7;""))))
  • To post as a guest, your comment is unpublished.
    Nick · 7 months ago
    Hi,
    I was wondering if anyone could advise me with this? I've followed the above steps but on step 3 rather than getting:
    "...all the matching values based on the first drop down list item have been displayed at once," I am just seeing one value (the top one from the drop down list).
    My cells are placed slightly differently and the first drop down is filled from another sheet (from anywhere int eh column excluding the top row) so my formula is:

    =arrayformula(if(VLE!D2:D=B11,B12,if(VLE!D2:D=C11,C12:C14,if(VLE!D2:D=D11,D12:D14,if(VLE!D2:D=E11,E12:E16,if(VLE!D2:D=F11,F12:F16,""))))))

    It is correctly displaying the top drop down option for each of (using cell numbers from the step 3 example on this page) A1, B1, and C1 so, again using this page's example, if I select Asia form the F1 drop down, I would get China, but nothing further


    Any suggestions?

    Many thanks! Nick
  • To post as a guest, your comment is unpublished.
    Andrew · 9 months ago
    If the first drop own is on sheet 1 A1, will this work were I want the second drop down as sheet 1 A2, but to have its data range on a separate sheet?
  • To post as a guest, your comment is unpublished.
    Peter · 10 months ago
    Ich bekomm immer die Meldung "Fehler beim Parsen der Formel" wenn ich =arrayformula(if(F1=A1,A2:A7,if(F1=B1,B2:B6,if(F1=C1,C2:C7,"")))) eingebe. Was ist der "Weiter-Schlüsel"? Reicht es nicht wie bei Excel die Formel einzugeben?
    • To post as a guest, your comment is unpublished.
      Geyza · 7 months ago
      Ersetzen Sie den , zu ;
      es hat für mich funktioniert
  • To post as a guest, your comment is unpublished.
    Alexis · 1 years ago
    This is the best explanation I have found, so thank you for that!

    In my situation, I am working with over 200 rows with more being continuously added. Is there an easier/more efficient way to handle this many rows?
    • To post as a guest, your comment is unpublished.
      Lad · 10 months ago
      Yes, if you don't put number index to specify ending cell.
      Like instead of C2:C7 you put C2:C. This will automatically tell the array formula, that you want to consider all values in column "C" starting at "C2".
  • To post as a guest, your comment is unpublished.
    Xained · 1 years ago
    What happens if I want exactly the same dropdown list in F2 as you have in F1 ?
    I tried, and it doesn't overwrite D1:D7 .. meaning D1:D7 is only available once.
    I need something else, double dropdown, but on many-many lines .. guess I must use another system then .. not sure which ..
    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      Hi, Xained,
      This method can only applied to one cell, if you have some good ways for applying this to multiple cells, please comment here.

      Thank you!
      • To post as a guest, your comment is unpublished.
        Tram · 5 months ago
        Please, guide me how to do that.Thanks
      • To post as a guest, your comment is unpublished.
        Lucas.Gu · 9 months ago
        혹시, 하나의 셀이 아닌 여러셀에 할 수 있는 방법을 알 수 있을까요?