English 中文(简体)
Excel电子表格:如何在同一行文中找到两组别之间的区别
原标题:Excel spreadsheet: how to find the difference between two sets of columns in the same row

也许有人知道如何做到这一点。 我有6栏(A-F)。 头三栏是一栏,最后三栏是另一栏。 我想总结两套,然后发现数额之间的差别。 例如,如果增长是:

A1 A2 A3 A4 A5 A6
4  5  6  7  8  9

我想增加4+5+6和7+8+9,然后发现这两个数额之间的差别。

问题回答

我想到的是:=SUM(A1:A3)-SUM(A4:A6)

如果你只关心这一规模,你可以将其放在绝对值上:=ABS(SUM(A1:A3)-SUM(A4:A6)

[适合订正员额]

而且,既然我更仔细地阅读了你的职位,你也想在一栏内增加项目。 在此情况下,除你改动外,其公式相同:

本着先前的回答的精神,它提出了意见。

=SUM($A$1:$A$3)-SUM($A$4:$A$6)

另一种解决办法是:

=$A$1+$A$2+$A$3-$A$4-$A$5-$A$6

这笔钱是不必要的,但如果你利用 mo子来建立这一公式,你就会拿到这些钱,而不要这样做。

您可按顺序排列,并使用<代码>=SUM()。 阁下还提到,A-F有6栏,A-C和D-F有2组,因此应该如此:

=SUM(A1:C1)-SUM(D1:F1)

=SUM(A1, B1, C1)-SUM(D1, E1, F1)




相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签