Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Amca
 
Posts: n/a
Default Need Help With A Very Simple Macro

I download from a database that provides ratios in the following format "
0.95 :1" which is formatted as text. I tried to write a macro that would
delete the " :1" so I could convert the cell to a number and use it in
calculations. Every time I run the macro it changes the cell to the exact
number that was in the original cell I used when creating the macro. Does
anyone know what I am doing wrong?
  #4   Report Post  
CLR
 
Posts: n/a
Default

Assuming your data is in column A, here's a formula you can put in B1 and
copy down to return what you want as a number..........

=(LEFT(A1,FIND(":",A1)-1))*1

Vaya con Dios,
Chuck, CABGx3


"Amca" wrote in message
...
I download from a database that provides ratios in the following format "
0.95 :1" which is formatted as text. I tried to write a macro that would
delete the " :1" so I could convert the cell to a number and use it in
calculations. Every time I run the macro it changes the cell to the exact
number that was in the original cell I used when creating the macro. Does
anyone know what I am doing wrong?



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
Simple Hyperlink Macro Rebecca New Users to Excel 3 April 10th 05 08:21 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
New Excel user needs help with simple Macro... Rahim Kassam New Users to Excel 1 January 24th 05 02:10 PM
Can't get simple macro to run Abi Excel Worksheet Functions 5 January 12th 05 07:37 PM


All times are GMT +1. The time now is 11:13 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"