ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Format cell conditional numeric and text (https://www.excelbanter.com/excel-discussion-misc-queries/106936-format-cell-conditional-numeric-text.html)

Cyndy TN

Format cell conditional numeric and text
 
Simple question I'm sure. Trying to format cell with both numeric & text.
Phone number + alpha. (123) 123-12324 H
Have tried: (###) ####-#### @ also with ; and _
Can't find solution

Thanks


Dave Peterson

Format cell conditional numeric and text
 
Number formats only work with numbers--not text.

You could use a helper column that displays it nicely.

If you type
1231231234H
in A1
you could use this in B1:
=TEXT(LEFT(A1,10),"(000) 000-0000 ")&RIGHT(A1,1)

And drag down.


Cyndy TN wrote:

Simple question I'm sure. Trying to format cell with both numeric & text.
Phone number + alpha. (123) 123-12324 H
Have tried: (###) ####-#### @ also with ; and _
Can't find solution

Thanks


--

Dave Peterson


All times are GMT +1. The time now is 02:22 PM.

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