简体   繁体   English

公式Excel的通用行数

[英]generic number of rows for formula excel

I am going to import different rows on the same structure from a server or manually via copy and paste to a specific work sheet. 我将从服务器或通过复制和粘贴到特定工作表手动导入同一结构上的不同行。 THe problem is that number of rows should be able to vary from lets say 1-100. 问题是,行数应该可以从1-100个变化。

Here is a screenshot: 这是屏幕截图:
http://img13.imageshack.us/img13/8990/f6w.png http://img13.imageshack.us/img13/8990/f6w.png http://img13.imageshack.us/img13/8990/f6w.png http://img13.imageshack.us/img13/8990/f6w.png

As number of rows varies I want to calculate a KPI for every row (the second "box") and then later make a Weighted average in the end. 随着行数的变化,我想为每行(第二个“框”)计算KPI,然后在最后进行加权平均。 How do enter this into the formulas so they calculate so many rows that i have copied into the sheet? 如何将其输入公式中,以便它们计算出我已复制到工作表中的太多行?

The row number that contains CAPEX values per site (USD) can be found with =MATCH . 可以使用= MATCH找到包含CAPEX values per site (USD)的行号。 Subtract from this the number of rows up to FixCoverage (could be with another =MATCH but in the example is 4) and add 1 for what may be the start row for your weighted average formulae. 从中减去最多FixCoverage的行数(可以与另一个= MATCH一起使用,但在示例中为4),然后为加权平均公式的起始行加1。

From this deduct however many rows there are above kUSD etc and deduct 3. This should give you the number of imported rows. 但是,从此扣除中,有很多行都在kUSD等上方并扣除3。这应该为您提供了导入行的数量。

Add that to the previous result for the row number for the end row for your weighted average formula. 将其添加到加权平均公式的最后一行的前一个结果中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM