Reputation: 1
I am trying to execute a concatenated string. I am using the following statement to concatenate the strings to be executed:
=(CONCATENATE("=SUM(","'Analytics 2017'!",K4,":",L4, ")"))
this works and the cell(c4) holds the concatenated string but when I use
=INDIRECT("C4")
as an "execute" formula I get an error.
Upvotes: 0
Views: 111
Reputation: 184
You need to do next:
From
=(CONCATENATE("=SUM(","'Analytics 2017'!",K4,":",L4, ")"))
you need to change to this
=(CONCATENATE("'Analytics 2017'!",K4,":",L4))
and then from this
=INDIRECT("C4")
you change to this
=SUM(INDIRECT("C4"))
Upvotes: 1