A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculation by inserting = sign at the start of equaton



 
 
Thread Tools Display Modes
  #1  
Old November 18th, 2009, 07:53 AM posted to microsoft.public.excel.misc
Rechie
external usenet poster
 
Posts: 59
Default Calculation by inserting = sign at the start of equaton

I have column in a sheet that contains below:
8+4+8
8+4+4
4+8+4
4+8+2
Equation might be text as I exported this from other application.
I have to insert = sign at the start of the equation to calculate. e.g =8+4+8
and press enter to get the results of 20. How can I get the results in a
quicker way? I have thousand lines in the file.
Thanks
  #2  
Old November 18th, 2009, 08:11 AM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Calculation by inserting = sign at the start of equaton

Try this UDF (User Defined function). From workbook launch VBE using Alt+F11.
From menu Insert a Module and paste the below function.Close and get back to
workbook and try the below formula.

=EquateFormula(A1)

Function EquateFormula(strData As String) As Long
EquateFormula = Application.Evaluate("=" & strData)
End Function

If this post helps click Yes
---------------
Jacob Skaria


"Rechie" wrote:

I have column in a sheet that contains below:
8+4+8
8+4+4
4+8+4
4+8+2
Equation might be text as I exported this from other application.
I have to insert = sign at the start of the equation to calculate. e.g =8+4+8
and press enter to get the results of 20. How can I get the results in a
quicker way? I have thousand lines in the file.
Thanks

  #3  
Old November 18th, 2009, 08:23 AM posted to microsoft.public.excel.misc
Rechie
external usenet poster
 
Posts: 59
Default Calculation by inserting = sign at the start of equaton

Thanks.... Perfectly working!!!

"Jacob Skaria" wrote:

Try this UDF (User Defined function). From workbook launch VBE using Alt+F11.
From menu Insert a Module and paste the below function.Close and get back to
workbook and try the below formula.

=EquateFormula(A1)

Function EquateFormula(strData As String) As Long
EquateFormula = Application.Evaluate("=" & strData)
End Function

If this post helps click Yes
---------------
Jacob Skaria


"Rechie" wrote:

I have column in a sheet that contains below:
8+4+8
8+4+4
4+8+4
4+8+2
Equation might be text as I exported this from other application.
I have to insert = sign at the start of the equation to calculate. e.g =8+4+8
and press enter to get the results of 20. How can I get the results in a
quicker way? I have thousand lines in the file.
Thanks

  #4  
Old November 18th, 2009, 09:47 AM posted to microsoft.public.excel.misc
muddan madhu
external usenet poster
 
Posts: 695
Default Calculation by inserting = sign at the start of equaton

Go to Define name | name it as ABC | in refers to : =Evaluate(B2) | ok

now in you worksheet in cell C2 put =ABC.


On Nov 18, 12:53*pm, Rechie wrote:
I have column in a sheet that contains below:
8+4+8
8+4+4
4+8+4
4+8+2
Equation might be text as I exported this from other application.
I have to insert = sign at the start of the equation to calculate. e.g =8+4+8
and press enter to get the results of 20. How can I get the results in a
quicker way? I have thousand lines in the file.
Thanks


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.