Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
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!

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
Format a cell such that "#NAME?" reads/appears "N/A"? Fred Holmes Excel Discussion (Misc queries) 3 June 18th 09 06:32 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Format cell to display "Y" or "N"when entering a 1 or zero Brad Excel Discussion (Misc queries) 7 February 8th 07 06:50 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
Autofilter to search characters that begin with "* " Barb Reinhardt Excel Discussion (Misc queries) 1 November 16th 05 01:30 PM


All times are GMT +1. The time now is 08:42 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"