![]() |
![]() |
|
|||||||
| 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: Apr 2002
Posts: 6
|
I need a column of information to be 7 characters. For example, I have... 587716,
654665, 654666, 1345281.. etc. As you can see I have some with 6 and some with 7. The ones with 6 I need to add a "0" in front of... is this possible? |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
=RIGHT("0"&A1,7) where A1 houses the first entry. Double click on the fill handle of B1 in order to copy it down. |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Sheffield, UK
Posts: 249
|
If you only need it to DISPLAY 7 characters, you can format the cells with a custom format of 0000000
[ This Message was edited by: philR on 2002-05-09 05:01 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|