简体   繁体   English

多种动态范围进行打印

[英]Multiple dynamic ranges for printing

So I got this table: 所以我得到了这张桌子:

geo_table

I need Excel to print different ranges on different sheet of papers. 我需要Excel在不同的纸上打印不同的范围。 Ranges will always be different. 范围永远是不同的。 I need A1 (range A2:B3) routes to print on one page and A2 (range A4:B5) routes print on second sheet of paper. 我需要A1(范围A2:B3)路线打印在一页上,而A2(范围A4:B5)路线打印在第二张纸上。 And so on. 等等。

I'm thinking about creating another table on the right and defining the ranges of the route for example: 我正在考虑在右侧创建另一个表并定义路线范围,例如:

在此处输入图片说明

Then after I would use Name Manager to to give names to ranges in reference of for A1 route B13 cell. 然后,我将使用“名称管理器”为A1路由B13单元格的引用范围提供名称。

But how do I return ranges where route matches? 但是,如何返回路线匹配的范围?

Please advise if that is even a considerable idea? 请告知这是否是一个不错的主意? Or maybe there is something more efficient? 也许还有更有效的方法?

Assuming that your data is on columns A and B (I moved the second table to columns G and H) then in H2 you can place the array formula ( CTRL + SHIFT + ENTER ): 假设您的数据在A和B列上(我将第二个表移到G和H列),那么在H2中,您可以放置​​数组公式( CTRL + SHIFT + ENTER ):

="A"&MIN(IF(G2=$A:$A,ROW($A:$A),""))&":B"&MAX(IF(G2=$A:$A,ROW($A:$A),""))

This is also dependent on your data being all consecutive for each route (ie all A1's are together). 这还取决于您的数据对于每个路由而言都是连续的(即所有A1都在一起)。

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

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