#1   Report Post  
Posted to microsoft.public.excel.misc
Brian Matlack
 
Posts: n/a
Default Auto fill cell entry


Hi!
I would like for a cell to automatically fill a string to 7 characters
no mater how many characters they enter. example: If the user enters
A256 I want the cell to display A000256 or if the user enters A0256 it
will display A000256. Is there a way for formating to do this? If not
then what would the code look like to make it happen?
Thanks for any help!!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=520330

  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Auto fill cell entry

Hi!

Do all the entries start with the letter "A"?

Maybe something like this:

Custom format: "A"000000

Then the users would enter just the number, 256 (or whatever). However,
using this format the true underlying value of the cell would be numeric 256
and not the displayed value of A000256.

Another way:

Use a helper cell:

A1 = A256

B1 = formula:

=LEFT(A1)&TEXT(MID(A1,2,255),"000000")

Biff

"Brian Matlack"
wrote in message
news:Brian.Matlack.24dgfc_1141856405.7611@excelfor um-nospam.com...

Hi!
I would like for a cell to automatically fill a string to 7 characters
no mater how many characters they enter. example: If the user enters
A256 I want the cell to display A000256 or if the user enters A0256 it
will display A000256. Is there a way for formating to do this? If not
then what would the code look like to make it happen?
Thanks for any help!!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile:
http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=520330



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
How do I auto fill long col. filling blanks with last filled cell MBBeginner Excel Discussion (Misc queries) 3 January 15th 06 12:44 AM
Data Validation / Cell Entry Steve Jones Excel Discussion (Misc queries) 4 March 23rd 05 03:23 PM
Move the last entry in a column to a different cell, when the loc. MicroSoft Excell (?) Excel Worksheet Functions 2 January 7th 05 09:29 PM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 03:43 PM.

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"