Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
|
#4
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Simple Hyperlink Macro | New Users to Excel | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) | |||
Date macro | Excel Discussion (Misc queries) | |||
New Excel user needs help with simple Macro... | New Users to Excel | |||
Can't get simple macro to run | Excel Worksheet Functions |