I am creating a nprinting excel template (see below 1.template).
I use a excel formula in column E. And this only works sometime.
The search area "A4:B16" in the template changes in the generated report. The "A" part is correct, and do follow a rule,
but the "B" part changes "random". Half of the rows cover the table, half of it dose not. I say it is random, because I can not see the rule for the "B" part. It can jump like in my example below from "B16" to "B25" (2. generated report). And for different reports, sometimes, if the table has less rows, then first row of the "B" part can cover the whole table. But if the table is bigger, the "B" part for the first few rows can not cover the whole table, then it can not get the value of the "Total" column.
As I use the row number of the <Name_Level> and </Name_Level> in the template. I thought the "B" part should be the end of the report, but it seems not the case. Dose any one has any idea?
I finally make it work after use big enough value for "B" part in the template, like "A4:B300", but not use the row number of <Name_Level> and </Name_Level> in the template. As my VLOOKUP() formula only need to use the value from the first match, so it dose matter if there are multiple match, so I do not need to control the search area of VLOOKUP(). But still have no idea the rule for the "B" part here.