Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel更新列、单元格值_Excel - Fatal编程技术网

Excel更新列、单元格值

Excel更新列、单元格值,excel,Excel,下面是我想做的: 1) Look-up A2 value in Column C. 2) The rows in Column C where A:2 value exists, then the respective cell in D will get the value of B. If it does not exists then D will have a value of 0. the formula im using in D2 is something like =L

下面是我想做的:

1) Look-up A2 value in Column C.
2) The rows in Column C where A:2 value exists, then the respective cell in D will get the value
   of B.  If it does not exists then D will have a value of 0.

the formula im using in D2 is something like =LOOKUP(A2,C:C,REPLACE WITH B) and if not exists then b2 = 0
我可以使用匹配,但不知道如何替换为正确的值


如果我正确理解输入-您需要一组从某个数字开始递增10的数字。有两种方法:

  • A1
    中输入起始编号,例如
    10000000
    。在
    A2
    中键入公式:
    =A1+10
    并根据需要自动填充(或复制粘贴)任意多行
  • 10000000
    放入
    A1
    ,然后将
    1000010
    放入
    A2
    ,选择两个单元格,并使用鼠标拖动右下角的选择角-这将产生递增的值
  • 希望这是有帮助的

    编辑:

    在聊天室中讨论后,解决方案如下(假设上传的屏幕示例):

  • 在当前数据上方添加了一行,其中A、B和C为零
  • C列:
    1
    在C3中,在C4中,
    =C3+10
    并自动填充,或者只是从1:1、11、21、
  • D列:
    =VLOOKUP(B2,A:C,3,0)
    位于D2和D2以下。这将从列C返回新生成的值,该值对应于同一行中A中的值,即对于D5,它是11,因为B5等于1100000000,这是A4,C4中对应11
  • 总而言之,它看起来是这样的:


    示例文件随附:

    我想这是给superuser.com的)如果我把问题贴错了地方,我很抱歉。我会去那里试试的,谢谢。别担心——我已经标记好了,如果摩登人和我一样想的话——他们会安全转移的。我还提供了一个答案。你能从你的问题中删除代码格式吗?这使得阅读整个内容变得非常困难。这是有效的,我能够从第一列中的1开始增加值。这就是我该如何更新第二列。查看是否将100000替换为A2中的1。在使用100000的B中,我如何用新ID 1更新B。@tamtam您能用所需输出的样本更新您的问题吗?我刚刚用所需输出更新了问题。如果要正确地指出问题,我是否应该发布工作簿?如果我理解正确,您只需复制生成的ID并将其作为值粘贴到目标列。是的,这是正确的。但一旦我用增量值更新了第一列,b列就不知道应该用什么替换旧值。对不起,如果不清楚的话