Formulas stored as text

sraasch

New Member
Joined
Aug 27, 2011
Messages
6
I'm trying to copy text-formatted cells containing formulas from a "template" sheet to another sheet where the formulas will be calculated.

I'm storing the formulas as text because I've been unable to stop Excel 2010 from corrupting the formulas (it seems to replace some of the formulas with "#Name" text). Changing the cells to text formatting fixes this.

Due to the large number of cells I'm copying and that I want to retain formatting from the template sheet, I'm using Range.copy to copy the formulas.

I've seen and tried a technique that uses TextToColumns after the copy operation, and this seems to work. I'm hoping for a "prettier" solution.

I understand that using the Evaluate macro may help with this, but I'm concerned about speed of operation during the COPY phase as well as the during the calculation.

Thanks for reading.
 
<grin>

I agree... it's complex, and I may not have done a good job explaining the "big picture".

As I said in the original post, I'm looking for a way to convert a formula in a text-formatted cell into a real formula in another, without resorting to cell-by-cell copying.

Thanks for your time!
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Let's say that you have the "Text" formula expression in cell C1, and want to make that an actual formula in cell D1. This code works for me:
Code:
    Range("D1").Formula = Range("C1").Text
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,476
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top