English 中文(简体)
如何在外壳两栏之间找到补差公式
原标题:How to get the recursive difference formula between two columns in excel

I am stuck on the recursive calculation on excel. Now I have two columns like below: enter image description here

Now I need to calculate two results from these two columns: 1/ In every 4 rows, the left column recursively subtracts the right column from the 4 rows number, which means, xt1-xbar1, xt2-xbar2, xt3-xbar3, xt4-xbar4, xt5-xbar1, xt6-xbar2,... The left column will be called each row, but every 4 rows after, it will subtract the 1st row back from the left column.

2 另一种计算方法是,从两行各栏的差额中收回产品,在三行中重新计算。 这意味着(xt2-xbar2)(xt1-xbar1),(xt3-xbar3)(xt2-xbar2),(xt4-xbar4)(xt3-xbar3),(xt5-xbar1)(xt4-xbar4),(xt6-xbar2)*(xt5-xbar1),......

Could anyone help me work out the formula above? Thanks.

问题回答

Different Sized Columns Difference feat. a Running Product

http://www.ohchr.org。 (减):

=LET(xt,A2:A15,xbar,B2:B5,
    xt-CHOOSEROWS(xbar,MOD(SEQUENCE(ROWS(xt))-1,ROWS(xbar))+1))

在<代码>D2(复制):

=LET(data,C2#,data*VSTACK(1,DROP(data,-1)))

“entergraph

Excel 2021

=LET(xt,A2:A15,xbar,B2:B5,
    xt-INDEX(xbar,MOD(SEQUENCE(ROWS(xt))-1,ROWS(xbar))+1))
=LET(data,C2#,
   s,SEQUENCE(ROWS(data))-1,
   data*IF(s=0,1,INDEX(data,s)))




相关问题
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 ...

热门标签