| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 48435 | 2004-08-23 00:41:00 | Spreadsheet problem | Nigel Thomson (629) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 264421 | 2004-08-23 00:41:00 | Grreeting I have had the same problem in both excel and open office, in that part numbers in my spreadsheet are being converted to scientific form, I have posted this before and i thought I had beaten it by using open office, while it has worked much better, open office plays silly buggers if the partnumber has an 'E' in it. example the number 501648102E20 is displayed as 5.02E+028 and it is also written into the .csv in this format excel does exactly the same, (except it seems to do it for a much wider range of numbers) What I have checked The fields are set to text not Scientific they are imported from the original csv as "text" (and are in the correct form) If anyone knows of a solution for either open office or excel please help |
Nigel Thomson (629) | ||
| 264422 | 2004-08-23 00:45:00 | I think it has something to do with the column width. I've had the same problem with my inventory list batch files where stock codes are nine digits long. What happen when you resize the column? |
nzStan (440) | ||
| 264423 | 2004-08-23 00:47:00 | Ooops silly me, I think I didn't read your post carefully. My post would not have solved your problem.... | nzStan (440) | ||
| 264424 | 2004-08-23 01:07:00 | Put a single quote ' before your numbers, and the cell will be treated as text. HTH Mike. |
Mike (15) | ||
| 264425 | 2004-08-23 01:09:00 | eg:'501648102E20Mike. | Mike (15) | ||
| 264426 | 2004-08-23 01:14:00 | Doesn't work. When you save the file as a CSV it's written out as a Scientific format. I've been trying a few approach to this problem but no success yet. Only way I think we can solve this problem is by adding something in front of the number so that it doesn't fit a scientific format number. eg instead of 501648102E20 make it SKU501648102E20 |
nzStan (440) | ||
| 264427 | 2004-08-23 01:19:00 | Nigel Thomson, not from Aussie !. Label ' no good for your example. Have you tried the "/" and used the Lotus 123 section, this works okay. Shows one age. Les 3. |
leshibbard (873) | ||
| 264428 | 2004-08-23 01:30:00 | thanks Guys the ' seems to work OK in open office, haven't tried it in excel yet Les you have lost me completely, i'm not from australia though, although I'll have a look at your suggestion should the ' not work or cause problems further on. Thanks guys, this has been causing me to kludge things and use a multitude of programs to get a meaningful ouput |
Nigel Thomson (629) | ||
| 264429 | 2004-08-23 02:19:00 | >the number 501648102E20 >is displayed as >5.02E+028 I'm not quite clear on what you want here, but (a) "the number 501648102E20" doesn't seem to be a number, but rather some digits with text mixed in. Giving a non-number the name of "number" doesn't ipso facto make it a number. (b) For Excel to use it as a number it has to be a format that Excel can recognize as a number. (c) If you just want to cut out the decimal places and have Excel recognize it as 501648102E+20 (maybe not quite what you want tho) you might: TRY THE FOLLOWING enter it so excel should convert it to 5.02E+028 then go to format cells -->custom and in the box 0.00E+00, delete the .00 before the E then put in a few 000's or ###'s. You can count how many but the resulting display should turn out to be 501648102E+20 (or similar depending on how many 0's or #'s you put in. Excel will also treat this as a valid number for purposes of further calculation. |
rugila (214) | ||
| 264430 | 2004-08-23 02:41:00 | > The fields are set to text not > Scientific > they are imported from the original csv as "text" > (and are in the correct form) > > If anyone knows of a solution for either open office > or excel please help Hi Nigel, Excel makes some internal data type conversions at the time data is inputted into a cell. The same prinicple applies to dates where you might enter 12/12 and this is converted to a date. To avoid this the destination cells must be formatted as text before data is inserted into these cells. If you change the type to text afterwards, the data conversion has already occured so you will end up with the scientific notation in the cells. As an example, in a new workbook enter 501648102E20 into a cell. You will see its converted to scientific notation. Now change the format of another cell to text then put this same value into the cell - you will see it retains its value and doesnt convert to scientific. hth |
parry (27) | ||
| 1 | |||||