Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Converting String numbers into real numbers

Hi,

I have a formula in VBA that searches through a table for corresponding
results to the conditions I specified and sort the results into another table.
My problem is that the data I use, which includes monetary values, seems to
have converted them into string numbers (which include de $ sign as part of
the characters and not only into a simple visual effect). It's a problem when
I want to do mathematic operations with those monetary values. Is there a way
to convert them into real numbers in my VBA code just before doing my maths
with them? I tried to pre-format the cells before their extraction but it
seems it isnt enough to really convert them.

Thx!

Werner

--
Message posted via http://www.officekb.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Converting String numbers into real numbers

Select the cells and do

Edit=Replace
What: $
With: $

If you need a macro, turn on the macro recorder while you do it manually.

--
Regards,
Tom Ogilvy


"Jean-Jérôme Doucet via OfficeKB.com" wrote in message
...
Hi,

I have a formula in VBA that searches through a table for corresponding
results to the conditions I specified and sort the results into another

table.
My problem is that the data I use, which includes monetary values, seems

to
have converted them into string numbers (which include de $ sign as part

of
the characters and not only into a simple visual effect). It's a problem

when
I want to do mathematic operations with those monetary values. Is there a

way
to convert them into real numbers in my VBA code just before doing my

maths
with them? I tried to pre-format the cells before their extraction but it
seems it isnt enough to really convert them.

Thx!

Werner

--
Message posted via http://www.officekb.com



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Converting String numbers into real numbers

Thanks for your advice.

JJD

--
Message posted via http://www.officekb.com
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
Converting list of numbers in Excel to a string of text in Word clint-50025 Excel Discussion (Misc queries) 3 February 9th 09 09:51 PM
converting positive numbers to negative numbers dmantzaaa Excel Discussion (Misc queries) 1 January 29th 09 11:45 PM
Converting positive numbers to negative numbers Treg67 Excel Worksheet Functions 4 July 17th 06 03:57 PM
Converting Text String to Separate Numbers Cincy Excel Discussion (Misc queries) 1 June 7th 06 10:30 AM
Converting numbers formatted as text to numbers Bill Excel Discussion (Misc queries) 1 July 19th 05 07:10 PM


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

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

About Us

"It's about Microsoft Excel"