excel - Use of INDIRECT for multiple graph regions -


i have used indirect , offset dynamically update graphs in excel. have not been able find solution problem when graph region consists of multiple ranges. below example of graph reference multiple ranges:

  1. in graph dialog:

    (sheet1!$g$2:$g$22,sheet1!$h$2:$h$22,sheeet1!$i$2:$i$22) 

    [some people call , concatenation of ranges.]

  2. in formula bar:

    =series(,(sheet1!$a$2:$a$22,sheet1!$b$2:$b$22,sheeet1!$c$2:$c$22),          (sheet1!$g$2:$g$22,sheet1!$h$2:$h$22,sheeet1!$i$2:$i$22),1) 

using indirect when having single range works fine (the technique has been illustrated many times on so), fails when using ranges such ones above (invalid reference).

how can fix problem?

i have found solution problem.
used indirect() function entire expression (sheet1!$g$2:$g$22, sheet1!$h$2:$h$22, sheet1!$i$2:$i$22). if above expression present string in let's a1 of sheet1 defined named variable yvalues = indirect(sheet1!$a$1).

in graph dialog selected y values : sheet1!yvalues results in error.the solution define 3 named variables, 1 each region. assume a1 contains string sheet1!$g$2:$g$22, a2 string sheet1!$h$2:$h$22, , a3 string sheet1!$i$2:$i$22.

now define named variables yval1 = indirect (sheet1!$a$1), yval2 = indirect (sheet1!$a$1), , yval3 = indirect (sheet1!$a$3).

in graph dialog enter (sheet1!yval1, sheet1!yval2, sheet1!yval3). works, important remember type in brackets , commas in graph dialog box.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -