Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prefix in cell

Status
Not open for further replies.

labprof

Technical User
Jan 26, 2006
49
US
I have an excel spreadsheet that we are using for serialization of test specimens.
It has 18 columns with titles 1 - 18 across the top and 20 rows numbered 1 -20.
In each cell my lab techs will enter a unique serial number.
I need a prefix "AC" to appear in each cell with the number however I'd like it if the tech did not have to type this in.
Is there a way to program excel so that when they type in a number it automatically appends a prefix to it.

Example:

current 1 2 3 4

1 1245 1246 1247 1248


desired 1 2 3 4

1 AC1245 AC1246 1247 1248

Is there a way to write some code to have each cell appear with the prefix example of desired?

Any help would be greatly appreciated.

Labprof


 
Assuming number will never be negative;

Highlight you range;

Go to Format, Cells, Number Tab, click Custom and in the Type box enter "AC"0;0;

Member- AAAA Association Against Acronym Abusers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top