Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
StanUkr
 
Posts: n/a
Default How I can calculate the value of string "120+150+120... etc"


Hello, All
In A1 cell I have a text string like "120+130", sometimes more numbers
to plus... Could you advice me what formula should I use to replace
this with already summarized value. I've tried to use formula "="&A1
but it returnes text value "=120+130"...
thanx for assistance


--
StanUkr
------------------------------------------------------------------------
StanUkr's Profile: http://www.excelforum.com/member.php...o&userid=27232
View this thread: http://www.excelforum.com/showthread...hreadid=530430

  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default How I can calculate the value of string "120+150+120... etc"

Just insert the "=" in the cell itself in the formula bar

--
Kind regards,

Niek Otten

"StanUkr" wrote in message
...

Hello, All
In A1 cell I have a text string like "120+130", sometimes more numbers
to plus... Could you advice me what formula should I use to replace
this with already summarized value. I've tried to use formula "="&A1
but it returnes text value "=120+130"...
thanx for assistance


--
StanUkr
------------------------------------------------------------------------
StanUkr's Profile: http://www.excelforum.com/member.php...o&userid=27232
View this thread: http://www.excelforum.com/showthread...hreadid=530430



  #4   Report Post  
Posted to microsoft.public.excel.misc
StanUkr
 
Posts: n/a
Default How I can calculate the value of string "120+150+120... etc"


I need to calculate a summ just with the help of a function... the
massive of data is too large to insert "=" manualy....
text to column is also not suitable for my purpose...

--
Kind regards,

Niek Otten

"StanUkr" wrote
in message
...

Hello, All
In A1 cell I have a text string like "120+130", sometimes more

numbers
to plus... Could you advice me what formula should I use to replace
this with already summarized value. I've tried to use formula "="&A1
but it returnes text value "=120+130"...
thanx for assistance


--
StanUkr

------------------------------------------------------------------------
StanUkr's Profile:

http://www.excelforum.com/member.php...o&userid=27232
View this thread:

http://www.excelforum.com/showthread...hreadid=530430



--
StanUkr
------------------------------------------------------------------------
StanUkr's Profile: http://www.excelforum.com/member.php...o&userid=27232
View this thread: http://www.excelforum.com/showthread...hreadid=530430

  #5   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default How I can calculate the value of string "120+150+120... etc"

Use this VBA function:

Function eval(s As String)
eval = Application.Evaluate("=" & s)
End Function

Then you can use this in a cell as:

=eval(A1)

To install,
Alt+F11 to go to the VBA editor.
Insert | Module
Paste the above code.
Ready to use

HTH
Kostis Vezerides



  #6   Report Post  
Posted to microsoft.public.excel.misc
StanUkr
 
Posts: n/a
Default How I can calculate the value of string "120+150+120... etc"


vezerid Wrote:
Use this VBA function:

Function eval(s As String)
eval = Application.Evaluate("=" & s)
End Function

Then you can use this in a cell as:

=eval(A1)

To install,
Alt+F11 to go to the VBA editor.
Insert | Module
Paste the above code.
Ready to use

HTH
Kostis Vezerides


Thank U! that's exatcly what i need! Custom formula was the best
solution here...


--
StanUkr
------------------------------------------------------------------------
StanUkr's Profile: http://www.excelforum.com/member.php...o&userid=27232
View this thread: http://www.excelforum.com/showthread...hreadid=530430

  #7   Report Post  
Posted to microsoft.public.excel.misc
StanUkr
 
Posts: n/a
Default How I can calculate the value of string "120+150+120... etc"


vezerid Wrote:
Use this VBA function:

Function eval(s As String)
eval = Application.Evaluate("=" & s)
End Function

Then you can use this in a cell as:

=eval(A1)

To install,
Alt+F11 to go to the VBA editor.
Insert | Module
Paste the above code.
Ready to use

HTH
Kostis Vezerides


Thank U! that's exatcly what i need! Custom formula was the best
solution here...


--
StanUkr
------------------------------------------------------------------------
StanUkr's Profile: http://www.excelforum.com/member.php...o&userid=27232
View this thread: http://www.excelforum.com/showthread...hreadid=530430

  #8   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default How I can calculate the value of string "120+150+120... etc"

So how is it that I can end up getting #NAME?
Always the "black-cloud-following-me", it seems...


"vezerid" wrote in message
oups.com...
Use this VBA function:

Function eval(s As String)
eval = Application.Evaluate("=" & s)
End Function

Then you can use this in a cell as:

=eval(A1)

To install,
Alt+F11 to go to the VBA editor.
Insert | Module
Paste the above code.
Ready to use

HTH
Kostis Vezerides



  #9   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default How I can calculate the value of string "120+150+120... etc"

Never mind, the sun has come out.. LOL

"Jim May" wrote in message
news:8C7Zf.55132$KE1.54201@dukeread02...
So how is it that I can end up getting #NAME?
Always the "black-cloud-following-me", it seems...


"vezerid" wrote in message
oups.com...
Use this VBA function:

Function eval(s As String)
eval = Application.Evaluate("=" & s)
End Function

Then you can use this in a cell as:

=eval(A1)

To install,
Alt+F11 to go to the VBA editor.
Insert | Module
Paste the above code.
Ready to use

HTH
Kostis Vezerides





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
Property Let: assign return value of Double when passing String Tetsuya Oguma Excel Discussion (Misc queries) 1 March 3rd 06 09:01 AM
Browse File for Mac John Vickers Excel Discussion (Misc queries) 1 February 17th 06 07:23 PM
Auto convert an alphanumeric string (CIS9638S) to numbers only? Gary L Brown Excel Worksheet Functions 1 September 7th 05 01:17 AM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 01:37 AM


All times are GMT +1. The time now is 09:57 PM.

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

About Us

"It's about Microsoft Excel"