About MrExcel
Consulting Services
Learn Excel Resources
Challenge of the Month
MrExcel Seminars

Message Board

MrExcel Store


Jason asks "I am trying to make a cell reference that always automatically adds a * to
the beginning and end of the data.

For example, I put 12345 into cell A1. Then in cell B1, I want it to
automatically say *12345*

Ive tried doing a formula in cell B1 like ="*"=B1"*" or =("*"(=B1)"*") but
i cant think or a way to do it. The reason im trying to do this is because
im trying to make a bar code and it needs a * at the beginning and end of a
number for it to work. Please help"

You were close. Try with


in B1.

By Juan Pablo Gonzalez on 28-Feb-2002 Consulting can be hired to implement this concept, or many other cool applications, with your data. provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures on this web site are provided "as is" and we do not guarantee that they can be used in all situations.


Excel is a registered trademark of the Microsoft® Corporation.

All contents Copyright 1998-2008 by MrExcel Consulting.