excel - Adding a string for a parameter in a GETPIVOTDATA function -


i'm hoping has solution this. have getpivotdata function works well, want add string formatted added getpivotdata. here example of getpivotdata function:

=getpivotdata("sum of "&$o$62,$b$65,"class",b69,"scenario",$c$67,"capital/operating",$t$64) 

here string want add end of getpivotdata function.

"project","(c0000000046) professional development","task","(300) certifications" 

project , task fields , "(c0000000046) professional development" , "(300) certifications" items want add getpivotdata function before evaluated.

does know how make happen?

updated

here example file.

if want add new parameter exiting formula:

=getpivotdata("sum of " & $o$62, $b$65,"class", b69, "scenario", $c$67, "capital/operating", $t$64, _ "project","(c0000000046) professional development","task","(300) certifications") 

here suggestion split:

dim strinput string dim strsplit() string dim strgetpivot string dim intcount integer strinput = "project,(c0000000046) professional development,task,(300) certifications" strgetpivot = "=getpivotdata(""sum of "" & $o$62, $b$65,""class"", b69, ""scenario"", $c$67, ""capital/operating"", $t$64," strsplit = split(strinput, ",") intcount  = 0 ubound(strsplit) - 1    strgetpivot = strgetpivot & ", """ & trim(strsplit(intcount)) & """ next strgetpivot = strgetpivot & ")"   

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -