Data value for formulas?

I have a large text string, with lots of tagged text, where I’d like to use settagdata with datavalue( to change the contents to the value of fields, variables or formulas. Works great, except for the formulas. I can go to replace(, but I’m wondering if there’s another function or method equivalent to datavalue( for formulas, or perhaps a different way to use it?

I may not be clear on your exact situation but it seems just using the formula directly with settagdata would be the obvious solution. Using the datavlue( function to get a value is also using a formula.

Like Gary, I’m a bit fuzzy on what you are asking, but I’m wondering if the formulavalue( function might be what you are looking for.