A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I insert a single number down an entire column?



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2004, 06:35 PM
robpearl
external usenet poster
 
Posts: n/a
Default How do I insert a single number down an entire column?

PLEASE HELP!?

I have a column that is 2000 cells tall each containing numeric four
and five digit codes. I need all the four digit codes to receive a '0'
in the front to make it five digits. How can I insert the '0' before
each of the four digit codes all the way down my column?

Thank you in advance to anyone who knows the answer to my sad, sad,
question.

Rob.


---
Message posted from http://www.ExcelForum.com/

  #3  
Old May 6th, 2004, 07:18 PM
Ken Wright
external usenet poster
 
Posts: n/a
Default How do I insert a single number down an entire column?

Would simple formatting do what you want, or do you physically need the extra
character. If you select the entire range and format as number / custom /
"00000" then all numbers will appear as 5 digits in length.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"robpearl " wrote in message
...
PLEASE HELP!?

I have a column that is 2000 cells tall each containing numeric four
and five digit codes. I need all the four digit codes to receive a '0'
in the front to make it five digits. How can I insert the '0' before
each of the four digit codes all the way down my column?

Thank you in advance to anyone who knows the answer to my sad, sad,
question.

Rob.


---
Message posted from http://www.ExcelForum.com/



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.676 / Virus Database: 438 - Release Date: 03/05/2004


  #4  
Old May 7th, 2004, 02:09 AM
CLR
external usenet poster
 
Posts: n/a
Default How do I insert a single number down an entire column?

Assuming your data is in column A, Format column B as TEXT and in B1 put
this formula and copy it down your 2000 lines............

IF(LEN(A1)=4,0&A1,A1

Vaya con Dios,
Chuck, CABGx3






"robpearl " wrote in message
...
PLEASE HELP!?

I have a column that is 2000 cells tall each containing numeric four
and five digit codes. I need all the four digit codes to receive a '0'
in the front to make it five digits. How can I insert the '0' before
each of the four digit codes all the way down my column?

Thank you in advance to anyone who knows the answer to my sad, sad,
question.

Rob.


---
Message posted from http://www.ExcelForum.com/



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.