A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

converting imported numbers



 
 
Thread Tools Display Modes
  #1  
Old January 30th, 2004, 04:33 PM
external usenet poster
 
Posts: n/a
Default converting imported numbers

I have imported a text file containing numbers that I need
to change/move the decimal left 2 places i.e I need
convert/change 123 to 1.23, 123456 to 1234.56 etc. for the
entire sheet. Any suggestions?
  #2  
Old January 30th, 2004, 04:57 PM
Norman Harker
external usenet poster
 
Posts: n/a
Default converting imported numbers

Hi!

Save. Then save your original under a new name so as to have a backup.

Put 100 in a cell
Copy
Select range to be changed
Edit Paste Special Divide OK

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.


  #3  
Old January 30th, 2004, 05:00 PM
John Wilson
external usenet poster
 
Posts: n/a
Default converting imported numbers

anonymous,

One way......
If all of the numbers are in a particular column (example, Col "A")
Then use this formula in column "B" and copy down:

=IF(LEN(A1)2,LEFT(A1,LEN(A1)-2)&"."&RIGHT(A1,2),IF(LEN(A1)=1,".0"&A1,"."&A1
))

You could then copy/paste special / values and overwrite
your original column with the results of the formulas.

John

wrote in message
...
I have imported a text file containing numbers that I need
to change/move the decimal left 2 places i.e I need
convert/change 123 to 1.23, 123456 to 1234.56 etc. for the
entire sheet. Any suggestions?



  #4  
Old January 30th, 2004, 05:21 PM
John Wilson
external usenet poster
 
Posts: n/a
Default converting imported numbers

Norman,

Doh!!!!!
Now why didn't I think of that??
I'll try to remember it for the next time instead of the
elaborate (and possibly useless) formula that I came up with.

Thanks,
John

"Norman Harker" wrote in message
...
Hi!

Save. Then save your original under a new name so as to have a backup.

Put 100 in a cell
Copy
Select range to be changed
Edit Paste Special Divide OK

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.




  #5  
Old January 30th, 2004, 05:51 PM
external usenet poster
 
Posts: n/a
Default converting imported numbers


Thanks!! works like a charm
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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