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  dBforums > PC based Database Applications > Microsoft Excel > Excel cell value deformed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-06, 11:35
Alexxx12 Alexxx12 is offline
Registered User
 
Join Date: Sep 2002
Location: NJ
Posts: 139
Excel cell value deformed

xp
excel 2k

Hi,

I have a spreadsheet with certain alphanumeric and sometimes numeric values only. I have formated the column as text, but sometimes, the values are shrank in this way 1.3209E+11. My ? is how can I get rid of this and replace it with its true value 132090115901? If there is a way to do this without writing some code, then great. Please let me know. otherwise maybe the code bellow could be the basis.

Thanks for your anticipated answers.

Alex

Code:
Dim i As Integer
Dim lastrow As Long
lastrow = ActiveSheet.UsedRange.Rows.Count

For i = 1 To lastrow

    Range("G" & i).Select
   ????????????????????
    
Next i
Reply With Quote
  #2 (permalink)  
Old 08-03-06, 12:01
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Typically that means the column is too narrow. Adjust column width and see what happens.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 08-03-06, 12:06
Alexxx12 Alexxx12 is offline
Registered User
 
Join Date: Sep 2002
Location: NJ
Posts: 139
Excel Cell value deformed

resizing the column does not change a thing.
Reply With Quote
  #4 (permalink)  
Old 08-03-06, 12:56
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Then try to format the cell as Number rather than text.

However, if you want all to be text (except when number) then code is the way to go. Perhaps check to see whether it is numeric or text, then change formatting appropriately.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums

Last edited by shades; 08-03-06 at 13:00.
Reply With Quote
  #5 (permalink)  
Old 08-07-06, 15:54
norie norie is offline
Registered User
 
Join Date: Mar 2006
Posts: 163
Alex

How is the data being put on the worksheet?

Have you tried formatting as Text before the data is put on the worksheet?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On