ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formatting cells for letters and numbers (https://www.excelbanter.com/excel-worksheet-functions/220645-formatting-cells-letters-numbers.html)

CMEknit

Formatting cells for letters and numbers
 
I would like to be able to enter 'F0708' in a cell and have it display as
'F-07-08' but can't figure out how to accomplish that.

Can this be done and, if so, how? I'm totally stumped! Thanks.

David Biddulph[_2_]

Formatting cells for letters and numbers
 
No. Cell formatting works for numbers, but if you have text, that is what
you see.

If you've put F0708 in a cell and you want to see F-07-08, you probably need
another cell with something like
=LEFT(A1)&"-"&MID(A1,2,2)&"-"&RIGHT(A1,2)
--
David Biddulph

"CMEknit" wrote in message
...
I would like to be able to enter 'F0708' in a cell and have it display as
'F-07-08' but can't figure out how to accomplish that.

Can this be done and, if so, how? I'm totally stumped! Thanks.





All times are GMT +1. The time now is 06:50 AM.

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