![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 2
|
Hello,
I receive a data file with a column of amounts which do not include the decimal-for example the amount field will read 1050 which really means 10.50. Is there a way either while importing the field or after the import when it is in my spreadsheet, to insert the decimal in the proper place. I have tried to use the format-number feature but when I do I end up with 1050.00. Any help is appreciated Thanks Carolyn |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 2
|
AA,
Thanks so much, gosh I never thought of that,thanks for that bit of common sense from the Netherlands. Carolyn |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Posts: 85
|
or try:
dim newValue as string newValue = mid(origValue,1,len(origValue -2)) & "." & right(origValue,2) You might need to tinker with this a bit. It's hard to do it in my head. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|