PC Review


Reply
Thread Tools Rate Thread

Calculation by inserting = sign at the start of equaton

 
 
Rechie
Guest
Posts: n/a
 
      18th Nov 2009
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
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      18th Nov 2009
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

 
Reply With Quote
 
Rechie
Guest
Posts: n/a
 
      18th Nov 2009
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

 
Reply With Quote
 
muddan madhu
Guest
Posts: n/a
 
      18th Nov 2009
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 <Rec...@discussions.microsoft.com> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting a value based on a calculation from another sheet amir.companieh@gmail.com Microsoft Excel Discussion 3 19th Dec 2007 10:15 AM
Inserting Calculation / Expression in a Form =?Utf-8?B?RHJQZXBzaQ==?= Microsoft Access Form Coding 2 21st Nov 2007 03:34 AM
How can I add a + sign to a positive result of a calculation? =?Utf-8?B?UGV0ZXJQOTAwOQ==?= Microsoft Excel Misc 1 9th Jun 2006 01:04 PM
Inserting calculation field on form Ammo Microsoft Access Form Coding 9 9th Apr 2005 11:24 AM
equaton with #'s Y and N Corey Microsoft Excel Misc 1 15th Feb 2005 09:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 AM.