7 character cells

cpdiggler

New Member
Joined
Apr 30, 2002
Messages
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?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
On 2002-05-09 04:29, cpdiggler wrote:
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?

In B1 enter:

=RIGHT("0"&A1,7)

where A1 houses the first entry.

Double click on the fill handle of B1 in order to copy it down.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,215,256
Messages
6,123,915
Members
449,132
Latest member
Rosie14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top