Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
bmac
 
Posts: n/a
Default Can I create a formula from text in several cells?

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?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

By using INDIRECT you can convert strings into cell references, do a google
search
for INDIRECT and text strings


regards,

Peo Sjoblom

"bmac" wrote:

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?

  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

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


"bmac" wrote in message
...
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?



  #4   Report Post  
bmac
 
Posts: n/a
Default

Thank you both for your suggestions. I'll give them a shot!

"Bernie Deitrick" wrote:

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


"bmac" wrote in message
...
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?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro or Formula to remove Text from Cells smck Excel Worksheet Functions 6 May 11th 05 03:22 AM
concatenated text to formula Bill Elerding Excel Discussion (Misc queries) 6 May 5th 05 01:11 AM
How to create specific formula STS Excel Worksheet Functions 4 May 2nd 05 01:44 AM
How do i get a formula for word recognition in cells Kenya Excel Discussion (Misc queries) 6 April 4th 05 08:45 PM
How to create a formula for a range of cells Marathonrealty Excel Worksheet Functions 3 February 17th 05 03:55 PM


All times are GMT +1. The time now is 06:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"