# 1.6 Custom number formats

Source: https://ravindrabagale.com/mr/excel/ch01-excel-basics/1-6-custom-number-formats.html
Language: mr (Marathi with English technical terms)

Custom format मध्ये semicolon ने वेगळे केलेले चार भाग असू शकतात:

positive ; negative ; zero ; text

म्हणजे positive value, negative value, zero आणि text कसं दिसावं ते स्वतंत्रपणे ठरवता येतं.

 | Code
 | Value
 | कसं दिसतं?
 | कुठे वापरायचं?

 | 0.0 "mins"
 | 9.5
 | 9.5 mins
 | Number कायम ठेवून units दाखवा

 | ₹#,##0;[Red]-₹#,##0;"–"
 | -500
 | -₹500 red colour मध्ये
 | Profit/loss; zero साठी dash

 | 00000
 | 411
 | 00411
 | ठरावीक लांबीचे codes

 | [h]:mm
 | 1.25
 | 30:00
 | 24 पेक्षा जास्त total hours

 | dd-mmm-yy
 | 14-03-2026
 | 14-Mar-26
 | छोटं date display

 | ddd
 | 14-03-2026
 | Sat
 | आठवड्यातला दिवस

 | 0.0,, "M"
 | 2345000
 | 2.3 M
 | Millions मध्ये display

 | [Green]▲0%;[Red]▼0%
 | 0.12
 | ▲12%
 | KPI मधला बदल दाखवणारे arrows

 | @" (Maharashtra)"
 | Pune
 | Pune (Maharashtra)
 | मूळ text ला आणखी text जोडा

0.0 "mins" मुळे units दिसतात पण number text होत नाही. 00000 मुळे 411 हे 00411 दिसतं. [h]:mm मुळे 24 पेक्षा जास्त total hours व्यवस्थित दिसतात. Millions, dates, arrows किंवा text suffix साठीही असे formats वापरता येतात.

Conditions square brackets मध्ये लिहितात, जसे [>=100000]. Colour names: [Black] [Blue] [Cyan] [Green] [Magenta] [Red] [White] [Yellow].

Format कसा लावायचा?

Cells select करा › Ctrl + 1 › Number › Custom.

Type box मध्ये format code लिहा. Sample preview पाहा.

OK करा. Value बदलत नाही, फक्त display बदलतो. त्यामुळे formulas काम करत राहतात.

Delivery time चं example

Raja ला 9 ऐवजी ‘9 mins’ दाखवायचं आहे. Delivery Mins column ला 0 "mins" format लावतो. मगही =AVERAGE(M2:M500) चालतं, कारण cells मध्ये numbersच आहेत.

तुमची practice

Delivery minutes साठी mins, pincode साठी 6 digits, profit साठी negative value red आणि zero साठी dash, आणि growth % साठी green ▲ / red ▼ असे formats तयार करा.

रवींद्र बागले यांची tip

Cell मध्ये 9 mins type केलं किंवा =M2&" mins" लिहिलं तर output text होतो. Average हवा असेल तर value number ठेवा आणि units custom format मधून दाखवा.
