![]() |
![]() |
|
|||||||
| 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: Feb 2002
Location: Bristol, England
Posts: 39
|
I have some formula in cells which I from an output file, and I am using Excel to work with results.
The problem is the output file generates results in the format of one letter and then five letters or numbers ie C12345 or F4567U. My problem comes when the first number is zero ie E09876, excel truncates it to E9876. I the #NAME? error by getting is to put everything as ="G45678", however I'm still stuck with the lost '0'. Is there a way of looking at the length of a formula in a cell, and if it is too short inserting a zero in a relevant position? TIA Henry |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Quote:
I'm a bit confused with your description of the problem. the =g45678 is an instruction to tell Excel to read the cell in row 45678 intersected by column G also, Excel actually truncates E09876 to E9876 ? I may be a million miles away but it sounds like it's trying to interpret this as a scientific format (ie 1.23E89, itself a big number) where nE9876 would be a number bigger than Imelda Marcos's total shoe inventory (!)
__________________
:: Pharma Z - Family drugstore :: |
|
|
|
|
|
|
#3 | |
|
Board Regular
Join Date: Feb 2002
Location: Chippenham, UK
Posts: 136
|
Quote:
If the data is in cell A1, that is if the length of the string is always 6 without the 0 and 7 with the 0. If it is different the formula will need modifying. _________________ Regards, Gary Hewitt-Long [ This Message was edited by: gplhl on 2002-02-28 11:40 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|