ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Format cell to always begin with an "X" (https://www.excelbanter.com/excel-discussion-misc-queries/246674-format-cell-always-begin-x.html)

Cheri

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!

Ron Rosenfeld

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

Sean Timmons

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!



All times are GMT +1. The time now is 02:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com