gpt4 book ai didi

excel - 使用另一列中的值填充空白 Excel 单元格?

转载 作者:行者123 更新时间:2023-12-03 03:27:25 24 4
gpt4 key购买 nike

类似于Fill non-contiguous blank cells with the value from the cell above the first blank但使用相邻的列。

我有这样的东西:

enter image description here

对于 A 列中的所有空白值,我希望用 C 列中的匹配值填充它。因此,A2 将填充 C2,A4 将填充 C4。

最佳答案

创建一个新列。在单元格 B2 中,写入公式 =IF(A2<>"",B2, D2) 。如果存在旧值,则这会将 A2 设置为等于旧值;如果 C 列缺少值,则将其设置为等于旧值(当您插入新列时,该值已移至 D)。将该公式向下拖动。然后,复制该列,粘贴 > 仅粘贴特殊 > 值,并保留新列。然后,删除旧的。

关于excel - 使用另一列中的值填充空白 Excel 单元格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46519161/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com