Can I create a formula from text in several cells?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have something in mind like combining cell references and operands and such
from several different cells to concatenate a formula, but I end up with just
text strings. Any ideas how to make them into recognizable formulas?
 
By using INDIRECT you can convert strings into cell references, do a google
search
for INDIRECT and text strings


regards,

Peo Sjoblom
 
You can use VBA to convert the string formula into a formula. Select the
cell, and run this:

Sub ConvertStringToFormula()
ActiveCell.Formula = ActiveCell.Text
End Sub

That will work as long as the formula returns a string that is a valid
formula (including the leading = sign).

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top