Sei sulla pagina 1di 6

Convert cell's text to formula

http://www.mrexcel.com/forum/excel-questions/61090-convert-cells-text-...

Register

Forum

Search New Posts


Quick Links

Zero Reply Posts

Subscribed Threads
Advanced Search

FAQ Forum Actions

Forum

Question Forums

Excel Questions

Convert cell's text to formula

Results 1 to 10 of 11

Page 1 of 2 1 2

Last

Convert cell's text to formula


This is a discussion on Convert cell's text to formula within the Excel Questions forums, part of the Question Forums category; Is there a quick way, other than VBA , to put the contents of a cell that has the text ... LinkBack Thread Tools Display

Sep 17th, 2003, 04:13 PM

#1

dsl224
New Member Join Date: Posts: Sep 2003 5

Convert cell's text to formula


Is there a quick way, other than VBA, to put the contents of a cell that has the text of a formula into a second cell, but as a real formula? What I mean is, if A1 has as text: abs(-1), I would like cell B1 to read the contents of A1 and evaluate it and put the results into B2. TIA, David

QuickBooks Online
www.quickbooksonline.in

Track, Organise & Manage Accounts. Access Anywhere, Try It For Free!

Share Reply With Quote

Sep 17th, 2003, 04:15 PM

#2

Aladin Akyurek

1 of 6

11/28/2012 11:44 AM

Convert cell's text to formula

http://www.mrexcel.com/forum/excel-questions/61090-convert-cells-text-...

MrExcel MVP

Re: Convert cell's text to formula


=EVAL(A1)
Join Date: Location: Posts: Feb 2002 The Hague, NL 53,823 Share
Assuming too much and qualifying too much are two faces of the same problem.

Reply With Quote

Sep 17th, 2003, 04:36 PM

#3

dsl224
New Member Join Date: Posts: Sep 2003 5

Re: Convert cell's text to formula


I am getting #NAME? Could it be version related? Thanks again, David

Share Reply With Quote

Sep 17th, 2003, 04:50 PM

#4

Yogi Anand
MrExcel MVP Join Date: Location: Posts: Mar 2002 Michigan USA 11,452

Re: Convert cell's text to formula


Hi dsl224: EVAL in Aladin's post is a function available in MoreFunc Add-in that is available for free. So, to be able to use EVAL, you need to have the MoreFunc Add-in installed -- otherwise you need to write another UserDefined function in place of EVAL.

Share

Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com
Reply With Quote

Sep 17th, 2003, 05:10 PM

#5

dsl224
New Member Join Date: Sep 2003

Re: Convert cell's text to formula


Thanks. I don't want to start using Add-ins. Do you know of any

2 of 6

11/28/2012 11:44 AM

Convert cell's text to formula

http://www.mrexcel.com/forum/excel-questions/61090-convert-cells-text-...

Posts:

other solution or UDF?

Share Reply With Quote

Sep 17th, 2003, 08:36 PM

#6

Yogi Anand
MrExcel MVP Join Date: Location: Posts: Mar 2002 Michigan USA 11,452

Re: Convert cell's text to formula


Originally Posted by dsl224

Thanks. I don't want to start using Add-ins. Do you know of any other solution or UDF?
Hi dsl224: You can use the following UDF ... Code:
Function yEval(entry As String) yEval = Evaluate(entry) End Function

and its usage is illustrated in the following ... ******** ******************** **************************************************** ********************> Microsoft Excel - y030917h1.xls
___Running: xl97 : OS

(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout

C1

A 1 2 3 4 Sheet4 abs(-1) 5*4 vlookup("b",$E$1:$F$4,2,0) * *

B * * * *

C 1 20 5 *

[HtmlMaker 2.20] To see the formula in the cells just click on the cells hyperlink or click the Name box PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

3 of 6

11/28/2012 11:44 AM

Convert cell's text to formula

http://www.mrexcel.com/forum/excel-questions/61090-convert-cells-text-...

I hope this helps. If I have misunderstood your question -- my apologies!

Share

Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com
Reply With Quote

Sep 18th, 2003, 09:23 AM

#7

dsl224
New Member Join Date: Posts: Sep 2003 5

Re: Convert cell's text to formula


Thank you very much. David

Share Reply With Quote

May 10th, 2007, 09:04 AM

#8

TVanStone
New Member Join Date: Location: Posts: May 2007 Waterbury, CT 2

Does anybody have a VB solution for doing the opposite? Daily, I must format the flatfile result of a days worth of web form inquiries. Names, addresses and cities are WRITTEN LIKE THIS or tHiS, etc. =proper(D2) returns the proper result. Using Notepad and a series of Copies/Pastes I can copy the resulting values over the original data. Is there a way to capture the results of the formula so as to copy it over the original, incorrectly cased data?

Share Reply With Quote

May 10th, 2007, 09:56 AM

#9

klb
Board Regular Join Date: Location: Posts: Apr 2002 Minnesota

How about: Sub ProperCase()

4 of 6

11/28/2012 11:44 AM

Convert cell's text to formula

http://www.mrexcel.com/forum/excel-questions/61090-convert-cells-text-...

821

Dim c As Range For Each c In Selection c.Value = Application.WorksheetFunction.Proper(c.Value) Next c End Sub

Share

Curiosity may have killed the cat but... satisfaction brought it back. >^;^<
Reply With Quote

May 10th, 2007, 10:01 AM

#10

TVanStone
New Member Join Date: Location: Posts: May 2007 Waterbury, CT 2

^ brilliant - thanks!

Share Reply With Quote

Page 1 of 2 1 2

Last

Previous Thread | Next Thread

New Tata Docomo Photon +


for Rs750 for your Dell & get benefits worth Rs 2650
tatadocomo.com/DellOffer

Ads by Google

Excel 2007 Web

Excel

Excel Formula What

Cell Number Lookup

5 of 6

11/28/2012 11:44 AM

Convert cell's text to formula

http://www.mrexcel.com/forum/excel-questions/61090-convert-cells-text-...

All times are GMT -4. The time now is 02:13 AM. Powered by vBulletin Version 4.2.0 Copyright 2012 vBulletin Solutions, Inc. All rights reserved. All contents Copyright 1998-2012 by MrExcel Consulting.

6 of 6

11/28/2012 11:44 AM

Potrebbero piacerti anche