简体   繁体   English

复杂的Excel公式

[英]Complicated Excel Formula

I'm hoping that this is possible and that this community can help. 我希望这是可能的,并且这个社区可以为您提供帮助。

I've got cell D19 that I need to calculate. 我有需要计算的单元格D19。 This calculation will be based on the following: 该计算将基于以下内容:

  • Cell D18 contains an otherwise calculated formula that outputs a percentage. 单元格D18包含以其他方式计算得出的输出百分比的公式。
  • Cell G8 contains a 4 digit code. 单元格G8包含4位代码。 That cell matches some or all of the text contained in a matrix of cells on a different worksheet -- that matrix includes cells B5:B143. 该单元格与另一个工作表上的单元格矩阵中包含的部分或全部文本匹配-该矩阵包含单元格B5:B143。
  • On that different worksheet, columns BN through BU contain percentage figures that are the ultimate output goal that needs to end up in cell D19. 在该不同的工作表上,BN到BU列包含百分比数字,这些数字是最终需要输出到单元格D19中的目标。 BN4 through BU4 contain percentages starting from 5% and increasing in increments of 5% until reaching 40%. BN4至BU4包含的百分比从5%开始,并以5%的增量递增,直到达到40%。 Beneath each column header, there is a column full of different percentages. 在每个列标题的下面,都有一列充满不同百分比的列。
  • I need the entry in cell G8 to inform D19, based on what is included in cell D18 (which is the percentage figure mentioned in the first bullet point, above) being rounded down to the nearest 5%, which will activate a lookup in the BN through BU matrix and populate D19 with a percentage figure. 我需要将单元格G8中的条目告知D19,根据单元格D18中包含的内容(上面第一个项目符号中提到的百分比数字)四舍五入到最接近的5%,这将激活BN到BU矩阵,并用百分比数字填充D19。

For example, D18 says 21.6%. 例如,D18说21.6%。 G8 says S700. G8说S700。 Somewhere in B5:B143 there is the text S700, and in column BQ (with a heading of "20%") in cell BQ54, it says 2.72%. 在B5:B143中的某个地方有文本S700,在单元格BQ54的BQ列(标题为“ 20%”)中,它表示为2.72%。 I want the 2.72% to show up in cell D19. 我希望在单元格D19中显示2.72%。

Sorry for the complicated question! 很抱歉这个复杂的问题! I hope someone can help! 我希望有人能帮帮忙!

=INDEX(differentworksheet!BN4:BU143,MATCH("*"&G8&"*",differentworksheet!B4:B143,0),MATCH(D18,differentworksheet!BN4:BU4,1))

用您的工作表名称替换differentworksheet。

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

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