简体   繁体   English

在 Excel 中用上述值填充单元格失败

[英]Fill cell with the above value in Excel fails

In Excel I find all the blank cells in a column using F5 > Special > Blanks).在 Excel 中,我使用 F5 > 特殊 > 空白找到列中的所有空白单元格。 I then fill the blanks with the value above using "= up arrow then CTL Enter."然后,我使用“= up arrow then CTL Enter”用上面的值填充空白。 Usually works without a hitch.通常工作顺利。 But, occasionally it fails.但是,偶尔会失败。

For instance today I was able to fill in column C (date), then D (24-hour time) without issue, but then I tried to fill in column H (text).例如,今天我能够毫无问题地填写 C 列(日期),然后是 D(24 小时制),但后来我尝试填写 H 列(文本)。 If cell H3 is the first blank cell, instead of the text from the cell above (H2), Excel puts =H2 not just in H3, but also in every blank cell in column H. What could be the cause?如果单元格 H3 是第一个空白单元格,而不是上面单元格 (H2) 中的文本,则 Excel 不仅将 =H2 放在 H3 中,还会放在列 H 中的每个空白单元格中。可能是什么原因?

I have tried: copying and pasting just the values back into column H, copying and pasting to a new column, pasting the data into a different spreadsheet.我试过:将值复制并粘贴回 H 列,复制并粘贴到新列,将数据粘贴到不同的电子表格中。

Nothing seems to work.似乎没有任何效果。

When you format a cell as text, Excel doesn't respect the "=" as the start of a formula.当您将单元格格式化为文本时,Excel 不会将“=”作为公式的开头。 Basically, anything you type gets entered in the cell verbatim.基本上,您键入的任何内容都会逐字输入到单元格中。

I assume MS made this design decision because formulas either return text or a number and the formatting the destination cell doesn't really affect that.我假设 MS 做出了这个设计决定,因为公式返回文本或数字,而目标单元格的格式并没有真正影响它。

The answer is to format the column as General and repeat your process.答案是将该列格式化为常规并重复您的过程。 It should work then.它应该工作。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM