ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   custom number format (https://www.excelbanter.com/excel-discussion-misc-queries/191579-custom-number-format.html)

pm ctech

custom number format
 
I want to change an eight digit number into the following format:
11111111
x.xxx-xxx.x
should look like 1.111-111.1

I need to create this as a custom number format because I use it all the time.
--
PMC

Kamal

custom number format
 


"pm ctech" wrote:

I want to change an eight digit number into the following format:
11111111
x.xxx-xxx.x
should look like 1.111-111.1

I need to create this as a custom number format because I use it all the time.
--
PMC


use the following formula

Assuming your 8 digit number is in cell A1,

=LEFT(A1,1)&"."&MID(A1,2,3)&"-"&MID(A1,5,3)&"."&RIGHT(A1,1)





All times are GMT +1. The time now is 08:36 PM.

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