Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Louise
 
Posts: n/a
Default Prefixing a selection of cells with zeros

Dear all

I have a column of figures, simply formatted as 5, 4, 8, etc. and I need to
add several zeros to the front of each one, ie. 4 needs to be 00000004.

Is there any way i can do this without editing every cell?

Thank you
Louise
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Prefixing a selection of cells with zeros

Use a helper column adjacent to your values and use this formula

=text(a1,"00000000")

changing the A1 to reference the first cell in your list. Copy this formula
down to handle all of your numbers, then select all the formulas, EditCopy,
then EditPaste SpecialValues


"Louise" wrote:

Dear all

I have a column of figures, simply formatted as 5, 4, 8, etc. and I need to
add several zeros to the front of each one, ie. 4 needs to be 00000004.

Is there any way i can do this without editing every cell?

Thank you
Louise

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Louise
 
Posts: n/a
Default Prefixing a selection of cells with zeros

Thank you, I'll give that a go. It has also been suggested to try Format,
Cells, Number, Custom and ask it to enter 0000000 before each positive number.

Thanks again.
Louise

"Duke Carey" wrote:

Use a helper column adjacent to your values and use this formula

=text(a1,"00000000")

changing the A1 to reference the first cell in your list. Copy this formula
down to handle all of your numbers, then select all the formulas, EditCopy,
then EditPaste SpecialValues


"Louise" wrote:

Dear all

I have a column of figures, simply formatted as 5, 4, 8, etc. and I need to
add several zeros to the front of each one, ie. 4 needs to be 00000004.

Is there any way i can do this without editing every cell?

Thank you
Louise

Reply
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
Linking Groups of cells between workbooks vnacj-joe Excel Discussion (Misc queries) 4 June 14th 07 05:18 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Is it possible to show leading zeros for "number" cells? Columbus Excel User Excel Discussion (Misc queries) 1 July 21st 05 06:19 PM
How do I shade cells during selection? MysterTLC Excel Worksheet Functions 1 June 3rd 05 03:48 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM


All times are GMT +1. The time now is 06: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"