简体   繁体   English

Excel 复杂的交叉单元格

[英]Excel complicated intersecting cell

I'm struggling with a report.我正在为一份报告而苦恼。 Is there any way to do this task?有什么办法可以完成这个任务吗?

As you look at the picture there is an intersection which value I would like to know.当你看图片时,有一个交叉点,我想知道它的值。

The problem is that it's not a single value, there are around 400 cells.问题是它不是单个值,大约有 400 个单元格。 So excel would need to analyze the entire sheet by "Suma" and "L. godz.pozostalych do odebrania"所以 excel 需要通过“Suma”和“L. godz.pozostalych do odebrania”来分析整张表

What I would like to achieve:我想达到的目标:

  1. I would like to get values of all red intersections (I highlighted them only to make them visible, normally they have no color)我想获取所有红色交叉点的值(我突出显示它们只是为了让它们可见,通常它们没有颜色)
  2. If their value is more than than 0 I would like to have them printed on the next sheet with the ID number.如果它们的值大于 0,我希望将它们与 ID 号一起打印在下一张纸上。

Also It would be a repeated process, the sheets need to be done every month so I would like to create something that would work for all of them.此外,这将是一个重复的过程,每个月都需要完成这些工作表,所以我想创建一些对所有人都适用的东西。 Thank you for your help!谢谢您的帮助!

Seems to me, based on your comments, that all you really need is the last numeric value in the row that contains the word suma in column J. The vertical header would seem to be irrelevant (except perhaps as a marker for that column if needed).在我看来,根据您的评论,您真正需要的只是 J 列中包含单词suma的行中的最后一个数值。垂直 header 似乎无关紧要(除非需要时作为该列的标记).

Given that you have Excel 2019, I am assuming that you do NOT have the FILTER or SEQUENCE functions which would simplify the formulas, but the following should work:鉴于您有 Excel 2019,我假设您没有FILTERSEQUENCE函数来简化公式,但以下应该有效:

  • I selected a range that included all the data and NAME 'd it myRng .我选择了一个包含所有数据的范围,并将其myRng NAME

The following formula will then return the last numeric value in the row that has the word "suma":然后,以下公式将返回包含单词“suma”的行中的最后一个数值:

=IFERROR(LOOKUP(2,1/ISNUMBER(INDEX(myRng, AGGREGATE(15,6,1/(INDEX(myRng,0,2)="suma")*ROW(myRng),ROWS($1:1)),0)),INDEX(myRng, AGGREGATE(15,6,1/(INDEX(myRng,0,2)="suma")*ROW(myRng),ROWS($1:1)),0)),"")

In the portion of the formula INDEX(myRng,0,2) you will need to change the 2 to reflect the column of myRng that represents column J .在公式INDEX(myRng,0,2)的部分中,您需要更改2以反映myRng中代表列J的列。 (or you could just define myRng to start at column I ) (或者您可以将myRng定义为从I列开始)

在此处输入图像描述

You should be able to figure out a formula or procedure to show the relevant values on another worksheet.您应该能够想出一个公式或程序来在另一个工作表上显示相关值。

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

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