CALC - Formula to Text

Hi, I want to use the calculated result of a cell formula as part of another formula.

So for example a cell calculates the reference of a cell containing a value (for example the calculation would display A4 as the result. I then want to use this value in another Formula, for example = COUNTIF(A4:A1,“S”)

I don’t want to manually copy and Paste Special but need a way to convert the formula in the first cell to a value and then use this as part of a second formula.

Hi,

For example if the result of a formula in C3 is A4 you can do:

CONCATENATE("=COUNTIF(";C3;":A1,‘S’)")

Maybe this could help…
But I can’t seem to make libreoffice process the result as a formula…:frowning:

Take a look at the INDIRECT function, for your example it would be something like =COUNTIF(INDIRECT("A1:" & somecalculationthatreturnsa4asstring),"S")