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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Format cell to always begin with an "X"



 
 
Thread Tools Display Modes
  #1  
Old October 27th, 2009, 04:18 PM posted to microsoft.public.excel.misc
Cheri
external usenet poster
 
Posts: 110
Default Format cell to always begin with an "X"

Is it possible to format a cell to always add an "X" at the beginning of the
data input in the cell? I imagine it can be done under
CellFormatNumberCustom but am wondering exactly what I would have to put
as the format.

Thanks in advance for your assistance!
  #2  
Old October 27th, 2009, 04:36 PM posted to microsoft.public.excel.misc
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Format cell to always begin with an "X"

On Tue, 27 Oct 2009 09:18:11 -0700, Cheri
wrote:

Is it possible to format a cell to always add an "X" at the beginning of the
data input in the cell? I imagine it can be done under
CellFormatNumberCustom but am wondering exactly what I would have to put
as the format.

Thanks in advance for your assistance!


You just preface each section of the format string with an "X" (with or without
the quotes).

One way would be: xGeneral;x@
--ron
  #3  
Old October 27th, 2009, 05:11 PM posted to microsoft.public.excel.misc
Sean Timmons
external usenet poster
 
Posts: 1,722
Default Format cell to always begin with an "X"

Try using:

"x"###

"Cheri" wrote:

Is it possible to format a cell to always add an "X" at the beginning of the
data input in the cell? I imagine it can be done under
CellFormatNumberCustom but am wondering exactly what I would have to put
as the format.

Thanks in advance for your assistance!

 




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:27 AM.


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