简体   繁体   English

在Google表格中输入文字数组时,如何创建空值(跳过单元格)?

[英]How do I create a null value (skip a cell) when entering a literal array in Google Sheets?

I would like to create a master template that only contains one formula by using the following in B2: 我想通过在B2中使用以下内容来创建仅包含一个公式的主模板:

=arrayformula({left(A2:A),right(A2:A)})

Where the user only enters data in column A. 用户仅在A列中输入数据的地方。

Suppose I would like the user to enter data in column A, perform calculations in columns B and C, have the user enter other data in column D, and then perform one more calculation in column E. 假设我希望用户在A列中输入数据,在B和C列中执行计算,让用户在D列中输入其他数据,然后在E列中再执行一次计算。

How do I write a literal array to skip column D, so that the user can enter data there without causing: "Array result was not expanded because it would overwrite data in D2"? 如何编写文字数组以跳过列D,以便用户可以在其中输入数据而不会导致:“数组结果未展开,因为它将覆盖D2中的数据”? The following is my futile attempt at skipping column D: 以下是我跳过D列的徒劳尝试:

=arrayformula({left(A2:A),right(A2:A),,mid(D2:D,2,1)})

This obviously yields a formula parse error. 显然这会产生公式解析错误。

How do I write a literal array to skip column D, so that the user can enter data there without causing: "Array result was not expanded because it would overwrite data in D2"? 如何编写文字数组以跳过列D,以便用户可以在其中输入数据而不会导致:“数组结果未展开,因为它将覆盖D2中的数据”?

Instead of using a single formula, use two formulas, one to fill columns B and C and another to fill column E. 而不是使用一个公式,而是使用两个公式,一个用于填充列B和C,另一个用于填充列E。

Using a single formula will cause the error that you described. 使用单个公式将导致您描述的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何根据 Google 表格中另一个单元格中的值填充一个单元格(高级?) - How do I populate a cell based on the value in another cell in Google Sheets (advanced?) 如何在Google表格中使用大括号在数组中描绘空白单元格? (aka为什么我不能在Google表格中使用“ {;”“”)?) - How do I delineate an empty cell in an array using curly brackets in Google Sheets? (aka Why can't I use “{ , ; ”“ , ”" } In Google Sheets?) 如何在 Google 表格中反转数组? - How do I reverse an array in Google Sheets? Google 表格:固定单元格值的数组公式 - Google Sheets: Array formula for fixed cell value Google表格:如何在1x2数组的开头添加值,然后将所有内容右移? - Google Sheets: How do I add a value at the start of a 1x2 array and shift everything right? 如何解决 Google 表格中的“ARRAY_LITERAL”错误 - How to resolve an "ARRAY_LITERAL" error in Google Sheets 如果为null,则跳过数组值 - Skip Array value if null 如何从Java中的数组中删除元素? 以及如何跳过空数组元素? - How do I remove an element from an array in Java? And how do I skip null array elements? 在 Google 表格的单个单元格中使用 CSV 创建新的数组/行 - Create new array/rows using CSV in single cell in Google Sheets 如何在 Google 表格中创建占位符数组? - How to create a placeholder array in Google Sheets?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM