LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default Concatented Numbers Display as Scientific Notation

xl2k on w2kPro.
My macro is creating a "Key" field that is made up of a concatenation of two cells.
The first cell is seven digits, the second varies between 2 and seven digits.
The cells are on a CSV workbook.

I insert the Key column and create the Key with;

"SrcSht.Cells(i, 1) = SrcSht.Cells(i, 2) & SrcSht.Cells(i, 3)"

The resultant display will vary as follows;
Key Field 1 Field 2
1E+11 1000001 29830
1000002309 1000002 309


The reasoning behind this is beyond me although, for this app, it doesn't matter as a
lookup has no problem finding the key and the "=" entry area displays the correct value.
Also, if I do the concatenation using the UI (Field1 & Field2) all is well.
Some results (not all) will come out correctly if I enlarge the column width.

Therefore it appears to be a display anomaly only(?).

--
Regards;
Rob
------------------------------------------------------------------------






 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Excel display in scientific notation with a 3digit exponent? kentk Excel Discussion (Misc queries) 1 February 11th 09 04:25 PM
large numbers as text replaced with scientific notation [email protected] Excel Discussion (Misc queries) 2 January 12th 09 11:33 PM
Hex numbers displayed in scientific notation when importing text f Gabriel Nehmer Excel Discussion (Misc queries) 2 July 20th 07 04:08 PM
scientific notation to display 1.8 x 10-5 in Excel feloniousmoney New Users to Excel 1 July 6th 05 10:31 PM
Long numbers show up as Scientific Notation berryware421243 Excel Discussion (Misc queries) 5 February 8th 05 03:21 AM


All times are GMT +1. The time now is 10:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"