Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/26.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,我想对第一行之后的每一行进行求和 我想要的一个例子是 =sum(A:A) (but after the first cell) 尽管如此,它还是导致了一种循环逻辑 =sum(a:a) - a1 或 注意:65536是excel 2003的行限制,1048576是2010的行限制--请检查您的版本以确保 我发现 =sum(a2:a) 在Excel 2010中,如果我将下面的公式放在单元格A1中,上述两个答案都会给我一个错误: =SUM(A:A) - A1 //This gives a ci

我想对第一行之后的每一行进行求和 我想要的一个例子是

=sum(A:A) (but after the first cell)
尽管如此,它还是导致了一种循环逻辑

=sum(a:a) - a1

  • 注意:65536是excel 2003的行限制,1048576是2010的行限制--请检查您的版本以确保

    • 我发现

      =sum(a2:a)
      

      在Excel 2010中,如果我将下面的公式放在单元格A1中,上述两个答案都会给我一个错误:

      =SUM(A:A) - A1 //This gives a circular error
      

      相反,我喜欢做以下工作:

      • 在要跳过的行(即A1)中的字段中,输入将该行唯一描述为标题/跳过行的文本(即“标题跳过”)
      • 在不带循环引用的要求和的列(即B:B)中,输入一个“SUMIF”公式,使用标题文本作为要跳过的IF的一部分=SUMIF(A:A,“标题跳过”,B:B)
      比如说

      [   ][      A      ][                 B                 ]
      [ 1 ][ header-skip ][ =SUMIF(A:A, "<>header-skip", B:B) ]
      [ 2 ][             ][                9.5                ]
      [ 3 ][             ][                7.5                ]
      [ 4 ][             ][               25.0                ]
      
      []A][B]
      [1][header skip][=SUMIF(A:A,“header skip”,B:B)]
      [ 2 ][             ][                9.5                ]
      [ 3 ][             ][                7.5                ]
      [ 4 ][             ][               25.0                ]
      
      第1行上的公式现在应该正确显示“42”,而无需任何循环引用。这对我来说比使用偏移量、索引和间接项等更容易记住,也更快地放入工作表


      希望这对别人有帮助

      sum(A2:A99999)有什么问题?虽然您当然可以在Excel中编程,但它需要VBA,因此这个问题(关于特定单元格公式)并不真正合适。
      =SUM(A1:A) //This gives a #NAME? error
      
      [   ][      A      ][                 B                 ]
      [ 1 ][ header-skip ][ =SUMIF(A:A, "<>header-skip", B:B) ]
      [ 2 ][             ][                9.5                ]
      [ 3 ][             ][                7.5                ]
      [ 4 ][             ][               25.0                ]