Convert to numbers!!!! Help!

bahllr

Board Regular
Joined
May 7, 2009
Messages
62
I have a workbook full of six digit numbers that I need to manipulate but can't. They have been data-dumped from a server and copied as non-numeric values.

I have tried EVERYTHING I could find on how to convert these column cells to numeric fields:

Multiplying by 1 - didn't work
VBA Code - For Each xCell In Range("a1:a1012")
xCell.Value = xCell.Value
Next xCell -didn't work
Format Cells as numbers - didn't work
Format Cells as general - didn't work
Remove Spaces - didn't work
Text to Columns - didn't work


Maybe I have done something wrong.....but I am DESPERATE for help and would appreciate any assistance/ ideas you may have!

This is how the data is stored.


<table x:str="" style="border-collapse: collapse; width: 48pt;" border="0" cellpadding="0" cellspacing="0" width="64"><col style="width: 48pt;" width="64"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; width: 48pt;" width="64" height="20">000216 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">000703 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">000744 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">000819 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">002184 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">002529 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">002571 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">002573 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">002783 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">003222 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">003645 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">003826 </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">004034 </td> </tr> </tbody></table>
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Have you tried?
=Value(a1)

or

Copy and paste values of the table into an new sheet on a new workbook?
 
Upvote 0
Try saving the file as .csv. Close the file down and open it back up again.
 
Upvote 0
I have tried both....they don't seem to work either.

The numbers stay on the left side of the cell (indicating format as text) and not the right....

If I try to select a cell and build a formula to add 1 to it, I always get "#VALUE"....

what is wrong with this data?! :)
 
Upvote 0
bertie,

Thanks for the suggestion. I tried saving it as a CSV. file format and when I opened it and tried to manipulate the data, I was unable to change anything....nice idea though.
 
Upvote 0
Are there any spaces in the numbers form the data dump?

try

=Trim(a1)*1
 
Upvote 0
bertie,

Thanks for the suggestion. I tried saving it as a CSV. file format and when I opened it and tried to manipulate the data, I was unable to change anything....nice idea though.


What is it you are trying to "change"?
Have you tried saving it again as an Excel file before manipilating the data?
 
Upvote 0
bertie,

Thanks for helping to work this...

I am sorry to say the trim function didn't help. Neither did resaving and opening it as an xls file...

I am going back to the individual who sent me the data to learn more of where it came from and what options they had to paste it to excel....

Any other ideas?
 
Upvote 0
sometimes the excel file corrupts. Have you tried copying the data and value-only pasting in a brand new file. I have run into this before and I believe that is what I ended up doing.
 
Upvote 0

Forum statistics

Threads
1,214,790
Messages
6,121,607
Members
449,037
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top