Excel Advance Formatting

 Excel Advance Formatting:

Introduction

Number formats control how numbers are displayed in Excel. The key benefit of number formats is that they change how a number looks without changing any data. They are a great way to save time in Excel because they automatically perform a huge amount of formatting. As a bonus, they make worksheets look more consistent and professional.


संख्या प्रारूप Excel में संख्याओं को प्रदर्शित करने के तरीके को नियंत्रित करते हैं। संख्या प्रारूपों का मुख्य लाभ यह है कि वे किसी संख्या को दिखाने का तरीका बदलते हैं बिना डेटा को बदले। ये Excel में समय बचाने का एक बेहतरीन तरीका हैं क्योंकि ये स्वचालित रूप से बहुत सारी फॉर्मेटिंग करते हैं। एक अतिरिक्त लाभ यह है कि ये कार्यपत्रकों को अधिक सुसंगत और पेशेवर दिखाते हैं।


What can you do with custom number formats?

Custom number formats can control the display of numbers, dates, times, fractions, percentages, and other numeric values. Using custom formats, you can do things like format dates to show month names only, format large numbers in millions or thousands, and display negative numbers in red.



कस्टम संख्या प्रारूपों के साथ आप संख्याओं, तिथियों, समयों, अंशों, प्रतिशतों और अन्य संख्यात्मक मानों को प्रदर्शित करने को नियंत्रित कर सकते हैं। कस्टम प्रारूपों का उपयोग करके, आप ऐसे कार्य कर सकते हैं जैसे तिथियों को केवल महीने के नाम के रूप में प्रदर्शित करना, बड़े संख्याओं को मिलियनों या हजारों में प्रारूपित करना, और नकारात्मक संख्याओं को लाल रंग में प्रदर्शित करना।


Sample custom number formats



Where can you use custom number formats?

Many areas in Excel support number formats. You can use them in tables, charts, pivot tables, formulas, and directly on the worksheet.

  • Worksheet - format cells dialog
  • Pivot Tables - via value field settings
  • Charts - data labels and axis options


What is a number format?

A number format is a special code to control how a value is displayed in Excel. 


संख्या प्रारूप क्या है?
संख्या प्रारूप एक विशेष कोड है जो Excel में किसी मान को कैसे प्रदर्शित किया जाए, इसे नियंत्रित करता है। 






The key thing to understand is that number formats change how numeric values are displayed but do not change the actual values.


Where can you find number formats?

On the home tab of the ribbon, you'll find a menu of built-in number formats. Below this menu to the right, there is a small button to access all number formats, including custom formats:


आप संख्या प्रारूप कहां पा सकते हैं?
रिबन के होम टैब पर, आपको इन-बिल्ट संख्या प्रारूपों का एक मेनू मिलेगा। इस मेनू के नीचे दाईं ओर, एक छोटा बटन होता है जो सभी संख्या प्रारूपों, जिसमें कस्टम प्रारूप भी शामिल हैं, तक पहुंच प्राप्त करने के लिए होता है।


Number format menu on Home tab of Ribbon


This button opens the Format Cells dialog box. You'll find a complete list of number formats, organized by category, on the Number tab:


Format Cells dialog box on Number tab


Note: you can open Format Cells dialog box with the keyboard shortcut Control + 1.


General is default

By default, cells start with the General format applied. The display of numbers using the General number format is somewhat "fluid". Excel will display as many decimal places as space allows, and will round decimals and use scientific number format when space is limited. The screen below shows the same values in columns B and D, but D is narrower and Excel makes adjustments on the fly.


जनरल डिफ़ॉल्ट है
डिफ़ॉल्ट रूप से, कोशिकाएँ जनरल प्रारूप के साथ प्रारंभ होती हैं। जनरल संख्या प्रारूप का उपयोग करते हुए संख्याओं का प्रदर्शन कुछ हद तक "तरल" होता है। Excel उतने दशमलव स्थान दिखाएगा जितना स्थान उपलब्ध होता है, और जब स्थान सीमित होता है, तो यह दशमलव को राउंड कर देगा और वैज्ञानिक संख्या प्रारूप का उपयोग करेगा। नीचे दी गई स्क्रीन में कॉलम B और D में समान मान दिखाए गए हैं, लेकिन D संकुचित है और Excel स्वतः ही समायोजन करता है।



General number format in narrow column


How to change number formats

You can select standard number formats (General, Number, Currency, Accounting, Short Date, Long Date, Time, Percentage, Fraction, Scientific, Text) on the home tab of the ribbon using the Number Format menu.

Note: As you enter data, Excel will sometimes change number formats automatically. For example, if you enter a valid date, Excel will change to "Date" format. If you enter a percentage like 5%, Excel will change to Percentage, and so on.


संख्या प्रारूप कैसे बदलें
आप होम टैब पर रिबन में संख्या प्रारूप मेनू का उपयोग करके मानक संख्या प्रारूप (जनरल, संख्या, मुद्रा, लेखांकन, शॉर्ट डेट, लॉन्ग डेट, समय, प्रतिशत, अंश, वैज्ञानिक, टेक्स्ट) चुन सकते हैं।

नोट: जैसे-जैसे आप डेटा दर्ज करते हैं, Excel कभी-कभी संख्या प्रारूपों को स्वचालित रूप से बदल देता है। उदाहरण के लिए, यदि आप एक वैध तिथि दर्ज करते हैं, तो Excel "डेट" प्रारूप में बदल जाएगा। अगर आप 5% जैसे प्रतिशत दर्ज करते हैं, तो Excel इसे प्रतिशत प्रारूप में बदल देगा, और इसी तरह।


Shortcuts for number formats

Excel provides a number of keyboard shortcuts for some common formats:

FormatShortcut
General formatCtrl Shift ~
Currency formatCtrl Shift $
Percentage formatCtrl Shift %
Scientific formatCtrl Shift ^
Date formatCtrl Shift #
Time formatCtrl Shift @
Custom formatsControl + 1


Where to enter custom formats

At the bottom of the predefined formats, you'll see a category called custom. The Custom category shows a list of codes you can use for custom number formats, along with an input area to enter codes manually in various combinations.


Custom category in format cells dialog box


When you select a code from the list, you'll see it appear in the Type input box. Here you can modify existing custom code, or to enter your own codes from scratch. Excel will show a small preview of the code applied to the first selected value above the input area.

Note: Custom number formats live in a workbook, not in Excel generally. If you copy a value formatted with a custom format from one workbook to another, the custom number format will be transferred into the workbook along with the value.


जब आप सूची से कोई कोड चुनते हैं, तो आप उसे टाइप इनपुट बॉक्स में दिखाई देते हुए देखेंगे। यहां, आप मौजूदा कस्टम कोड को संशोधित कर सकते हैं, या अपना खुद का कोड शुरू से दर्ज कर सकते हैं। Excel पहले चयनित मान पर लागू कोड का एक छोटा पूर्वावलोकन इनपुट क्षेत्र के ऊपर दिखाएगा।

नोट: कस्टम संख्या प्रारूप वर्कबुक में रहते हैं, Excel में सामान्य रूप से नहीं। यदि आप एक वर्कबुक से दूसरे वर्कबुक में कस्टम प्रारूप के साथ एक मान कॉपी करते हैं, तो कस्टम संख्या प्रारूप मान के साथ वर्कबुक में ट्रांसफर हो जाएगा।


How to create a custom number format

To create a custom number format follow this simple 4-step process:

  1. Select the cell(s) with values you want to format
  2. Control + 1 > Numbers > Custom
  3. Enter codes and watch preview area to see result
  4. Press OK to save and apply 

Tip: if you want base your custom format on an existing format, first apply the base format, then click the "Custom" category and edit codes as you like.


कस्टम संख्या प्रारूप कैसे बनाएं
कस्टम संख्या प्रारूप बनाने के लिए इस सरल 4-चरणीय प्रक्रिया का पालन करें:

  1. उन कोशिकाओं का चयन करें जिनमें आप मान प्रारूपित करना चाहते हैं।
  2. Control + 1 > संख्या > कस्टम
  3. कोड दर्ज करें और परिणाम देखने के लिए पूर्वावलोकन क्षेत्र देखें।
  4. OK दबाएं ताकि परिवर्तनों को सहेजा और लागू किया जा सके।

टिप: अगर आप अपने कस्टम प्रारूप को किसी मौजूदा प्रारूप पर आधारित बनाना चाहते हैं, तो पहले उस आधार प्रारूप को लागू करें, फिर "कस्टम" श्रेणी पर क्लिक करें और कोड को अपनी पसंद के अनुसार संपादित करें।


How to edit a custom number format

You can't really edit a custom number format per se. When you change an existing custom number format, a new format is created and will appear in the list in the Custom category. You can use the Delete button to delete custom formats you no longer need.

Warning: there is no "undo" after deleting a custom number format!


कस्टम संख्या प्रारूप को कैसे संपादित करें
आप सीधे तौर पर कस्टम संख्या प्रारूप को संपादित नहीं कर सकते। जब आप एक मौजूदा कस्टम संख्या प्रारूप में बदलाव करते हैं, तो एक नया प्रारूप बनता है और वह कस्टम श्रेणी की सूची में दिखाई देता है। आप Delete बटन का उपयोग करके उन कस्टम प्रारूपों को हटा सकते हैं जिनकी अब आपको आवश्यकता नहीं है।

चेतावनी: कस्टम संख्या प्रारूप को हटाने के बाद "Undo" विकल्प उपलब्ध नहीं होता!


Structure and Reference

Excel custom number formats have a specific structure. Each number format can have up to four sections, separated by semi-colons as follows:


संरचना और संदर्भ
Excel कस्टम संख्या प्रारूपों की एक विशेष संरचना होती है। प्रत्येक संख्या प्रारूप में चार तक सेक्शन हो सकते हैं, जो सेमी-कोलन द्वारा अलग होते हैं, जैसे कि:

  1. पहला सेक्शन: सकारात्मक संख्याओं के लिए प्रारूप।
  2. दूसरा सेक्शन: नकारात्मक संख्याओं के लिए प्रारूप।
  3. तीसरा सेक्शन: शून्य के लिए प्रारूप (वैकल्पिक)।
  4. चौथा सेक्शन: पाठ (टेक्स्ट) के लिए प्रारूप (वैकल्पिक)।

उदाहरण:
[सकारात्मक];[नकारात्मक];[शून्य];[पाठ]

हर सेक्शन को अलग-अलग कस्टम कोड के साथ कस्टमाइज़ किया जा सकता है, जिससे आप विभिन्न प्रकार के डेटा को अपनी इच्छानुसार प्रदर्शित कर सकते हैं।


Custom number format structure

This structure can make custom number formats look overwhelmingly complex. To read a custom number format, learn to spot the semi-colons and mentally parse the code into these sections:

  1. Positive values
  2. Negative values
  3. Zero values
  4. Text values

Not all sections required

Although a number format can include up to four sections, only one section is required. By default, the first section applies to positive numbers, the second section applies to negative numbers, the third section applies to zero values, and the fourth section applies to text.

  • When only one format is provided, Excel will use that format for all values.
  • If you provide a number format with just two sections, the first section is used for positive numbers and zeros, and the second section is used for negative numbers.
  • To skip a section, include a semi-colon in the proper location, but don't specify a format code.

सभी सेक्शन आवश्यक नहीं हैं
हालाँकि एक संख्या प्रारूप में चार तक सेक्शन हो सकते हैं, लेकिन केवल एक सेक्शन आवश्यक होता है। डिफ़ॉल्ट रूप से, पहला सेक्शन सकारात्मक संख्याओं के लिए लागू होता है, दूसरा सेक्शन नकारात्मक संख्याओं के लिए, तीसरा सेक्शन शून्य मानों के लिए, और चौथा सेक्शन टेक्स्ट के लिए लागू होता है।

  • यदि केवल एक प्रारूप प्रदान किया जाता है, तो Excel उस प्रारूप का उपयोग सभी मानों के लिए करेगा।
  • अगर आप केवल दो सेक्शन प्रदान करते हैं, तो पहला सेक्शन सकारात्मक संख्याओं और शून्य के लिए उपयोग किया जाएगा, और दूसरा सेक्शन नकारात्मक संख्याओं के लिए होगा।
  • यदि किसी सेक्शन को छोड़ना हो, तो सही स्थान पर सेमी-कोलन शामिल करें, लेकिन प्रारूप कोड निर्दिष्ट न करें।

Characters that display natively

Some characters appear normally in a number format, while others require special handling. The following characters can be used without any special handling:

CharacterComment
$Dollar
+-Plus, minus
()Parentheses
{}Curly braces
<>Less than, greater than
=Equal
:Colon*
^Caret
'Apostrophe
/Forward slash*
!Exclamation point
&Ampersand
~Tilde
 Space character

* Update December 2023: The colon (:) and forward slash (/) used to display natively but now must be escaped.

Escaping characters

Some characters won't work correctly in a custom number format without being escaped. For example, the asterisk (*), hash (#), and percent (%) characters can't be used directly in a custom number format – they won't appear in the result. The escape character in custom number formats is the backslash (\). By placing the backslash before the character, you can use them in custom number formats:


एस्केपिंग वर्ण
कुछ वर्ण कस्टम संख्या प्रारूप में सही तरीके से काम नहीं करते हैं जब तक उन्हें एस्केप नहीं किया जाता। उदाहरण के लिए, ऐस्टरिस्क (*), हैश (#), और प्रतिशत (%) जैसे वर्णों का उपयोग कस्टम संख्या प्रारूप में सीधे तौर पर नहीं किया जा सकता – ये परिणाम में नहीं दिखाई देंगे। कस्टम संख्या प्रारूपों में एस्केप करने के लिए बैकस्लैश () का उपयोग किया जाता है।

यदि आप इन विशेष वर्णों को सही ढंग से दिखाना चाहते हैं, तो आपको उन्हें बैकस्लैश () के साथ एस्केप करना होगा। उदाहरण के लिए:

  • * - ऐस्टरिस्क को दिखाने के लिए।
  • # - हैश को दिखाने के लिए।
  • % - प्रतिशत चिन्ह को दिखाने के लिए।

इस तरह, बैकस्लैश इन विशेष वर्णों को कस्टम प्रारूप में सही तरीके से प्रदर्शित करने के लिए एस्केप करता है।


ValueCodeResult
100\#0#100
100\*0*100
100\%0%100


Placeholders

Certain characters have a special meaning in custom number format codes. The following characters are key building blocks:


CharacterPurpose
0Display insignificant zeros
#Display significant digits
?Display aligned decimals
.Decimal point
,Thousands separator
*Repeat the following character
_Add space
@
Placeholder for text

Zero (0) is used to force the display of insignificant zeros when a number has fewer digits than zeros in the format. For example, the custom format 0.00 will display zero as 0.00, 1.1 as 1.10 and .5 as 0.50.


Zero placeholder examples


Pound sign (#) is a placeholder for optional digits. When a number has fewer digits than # symbols in the format, nothing will be displayed. For example, the custom format #.## will display 1.15 as 1.15 and 1.1 as 1.1.


Pound placeholder examples


Question mark (?) is used to align digits. When a question mark occupies a place not needed in a number, a space will be added to maintain visual alignment. 


Question mark placeholder examples


Period (.) is a placeholder for the decimal point in a number. When a period is used in a custom number format, it will always be displayed, regardless of whether the number contains decimal values.

Comma (,) is a placeholder for the thousands separators in the number being displayed.  It can be used to define the behavior of digits in relation to the thousands or millions digits.


पिरियड (.) और कॉमा (,) के उपयोग

  • पिरियड (.): यह संख्या में दशमलव बिंदु के लिए एक प्लेसहोल्डर है। जब पिरियड कस्टम संख्या प्रारूप में उपयोग किया जाता है, तो यह हमेशा प्रदर्शित होगा, चाहे संख्या में दशमलव मान हो या न हो। उदाहरण के लिए, 1234.567 और 1234 दोनों में पिरियड दिखाई देगा यदि प्रारूप में उसे स्थान दिया गया है।

  • कॉमा (,): यह संख्या में हजारों के विभाजक के लिए एक प्लेसहोल्डर है। इसका उपयोग हजारों या मिलियन्स के अंक के संबंध में अंकों के व्यवहार को परिभाषित करने के लिए किया जा सकता है। उदाहरण के लिए, 1,000 और 1,000,000 में कॉमा का उपयोग किया जाएगा ताकि बड़ी संख्याओं को आसानी से पढ़ा जा सके।

कॉमा का उपयोग बड़े अंकों को आसानी से विभाजित करने और उनकी पठनीयता बढ़ाने के लिए किया जाता है।


Comma placeholder examples


Asterisk (*) is used to repeat characters. The character immediately following an asterisk will be repeated to fill the remaining space in a cell.


ऐस्टरिस्क (*) का उपयोग
ऐस्टरिस्क (*) का उपयोग कस्टम संख्या प्रारूप में वर्णों को दोहराने के लिए किया जाता है। ऐस्टरिस्क के बाद जो भी वर्ण आता है, वह उस वर्ण को तब तक दोहराया जाएगा जब तक कोशिका में बाकी जगह पूरी नहीं हो जाती।

उदाहरण के लिए, यदि आप कस्टम प्रारूप 0*# का उपयोग करते हैं, और संख्या 25 दर्ज करते हैं, तो परिणाम 25#### होगा, क्योंकि ऐस्टरिस्क के बाद हैश (#) का वर्ण तब तक दोहराया जाएगा जब तक कोशिका का पूरा स्थान नहीं भर जाता।

इसका उपयोग कोशिका में समान आकार और समरूपता बनाए रखने के लिए किया जा सकता है।


Asterisk placeholder examples


Underscore (_) is used to add space in a number format. The character immediately following an underscore character controls how much space to add. A common use of the underscore character is to add space to align positive and negative values when a number format is adding parentheses to negative numbers only. For example, the number format "0_);(0)" adds a bit of space to the right of positive numbers so that they stay aligned with negative numbers, which are enclosed in parentheses.


Underscore placeholder examples


At (@) - placeholder for text. For example, the following number format will display text values in blue:


[Blue]@



Number formats for TEXT

To display text together with numbers, enclose the text in double quotes ("").  You can use this approach to append or prepend text strings in a custom number format, as shown in the table below.


संख्याओं के साथ टेक्स्ट के लिए संख्या प्रारूप
संख्याओं के साथ टेक्स्ट दिखाने के लिए, टेक्स्ट को डबल कोट्स ("") में लपेटें। आप इस तरीके का उपयोग कस्टम संख्या प्रारूप में टेक्स्ट स्ट्रिंग्स को जोड़ने (append) या पहले (prepend) करने के लिए कर सकते हैं, जैसा कि नीचे दी गई तालिका में दिखाया गया है।

उदाहरण:

  1. "Value: " 0

    • अगर आप 25 दर्ज करते हैं, तो यह Value: 25 के रूप में प्रदर्शित होगा।
  2. 0 "items"

    • अगर आप 10 दर्ज करते हैं, तो यह 10 items के रूप में प्रदर्शित होगा।
  3. "Total: " 0.00

    • अगर आप 100.75 दर्ज करते हैं, तो यह Total: 100.75 के रूप में प्रदर्शित होगा।

इस तरह, आप कस्टम संख्या प्रारूप में टेक्स्ट और संख्याओं को जोड़कर उन्हें एक साथ प्रदर्शित कर सकते हैं।


ValueCodeResult
10General" units"10 units
100.0" units"10.0 units
5.50.0" feet"5.5 feet
300000" feet"30000 feet
95.2"Score: "0.0Score: 95.2
1-Jun"Date: "mmmm dDate: June 1

Number formats for DATES

Dates in Excel are just numbers, so you can use custom number formats to change how they are displayed. Excel has many specific codes you can use to display components of a date in different ways. The screen below shows how Excel displays the date in D5, September 3, 2018, with a variety of custom number formats:


तिथियों के लिए संख्या प्रारूप
Excel में तिथियाँ केवल संख्याएँ होती हैं, इसलिए आप उन्हें प्रदर्शित करने के तरीके को बदलने के लिए कस्टम संख्या प्रारूप का उपयोग कर सकते हैं। Excel में कई विशिष्ट कोड हैं जिन्हें आप तिथि के विभिन्न घटकों को विभिन्न तरीकों से प्रदर्शित करने के लिए उपयोग कर सकते हैं।

नीचे की स्क्रीन में दिखाया गया है कि Excel कैसे 3 सितंबर 2018 को विभिन्न कस्टम संख्या प्रारूपों के साथ प्रदर्शित करता है:

  1. d/m/yyyy - 3/9/2018
  2. mmmm d, yyyy - September 3, 2018
  3. ddd, mmm d, yyyy - Mon, Sep 3, 2018
  4. yyyy-mm-dd - 2018-09-03
  5. [$-en-US]mmmm d, yyyy - September 3, 2018 (स्थानीय भाषा और शैली के अनुसार)

इस तरह, आप कस्टम संख्या प्रारूप का उपयोग करके तिथियों को विभिन्न प्रारूपों में प्रदर्शित कर सकते हैं, जैसे महीने के नाम, दिनांक, वर्ष, और अन्य।



Number format codes for dates


Number formats for TIME

Times in Excel are fractional parts of a day. For example, 12:00 PM is 0.5, and 6:00 PM is 0.75. You can use the following codes in custom time formats to display components of a time in different ways. The screen below shows how Excel displays the time in D5, 9:35:07 AM, with a variety of custom number formats:


समय के लिए संख्या प्रारूप
Excel में समय दिन के अंश होते हैं। उदाहरण के लिए, 12:00 PM 0.5 के बराबर होता है, और 6:00 PM 0.75 के बराबर होता है। आप कस्टम समय प्रारूपों में विभिन्न घटकों को प्रदर्शित करने के लिए निम्नलिखित कोड का उपयोग कर सकते हैं।

नीचे की स्क्रीन में दिखाया गया है कि Excel कैसे 9:35:07 AM समय को विभिन्न कस्टम संख्या प्रारूपों के साथ प्रदर्शित करता है:

  1. h:mm AM/PM - 9:35 AM
  2. hh:mm:ss - 09:35:07
  3. h:mm:ss.0 - 9:35:07.0
  4. [h]:mm:ss - 9:35:07 (समय के कुल घंटे दिखाए जाते हैं, जैसे कि कुल घंटे 24 से अधिक हो सकते हैं)
  5. hh:mm:ss AM/PM - 09:35:07 AM
  6. [mm]:ss - 35:07 (कुल मिनट और सेकंड दिखाता है)

इस तरह, आप कस्टम संख्या प्रारूप का उपयोग करके समय को विभिन्न प्रारूपों में प्रदर्शित कर सकते हैं, जैसे घंटे, मिनट, सेकंड, और AM/PM।


Number format codes for times


Note: m and mm can't be used alone in a custom number format since they conflict with the month number code in date format codes.


Number formats for ELAPSED TIME

Elapsed time is a special case and needs special handling. By using square brackets, Excel provides a special way to display elapsed hours, minutes, and seconds. The following screen shows how Excel displays elapsed time based on the value in D5, which represents 1.25 days:


गुजरे हुए समय के लिए संख्या प्रारूप
गुजरे हुए समय एक विशेष मामला है और इसके लिए विशेष हैंडलिंग की आवश्यकता होती है। Excel में कोष्ठक ([]) का उपयोग करके आप घंटे, मिनट और सेकंड के रूप में गुजरे हुए समय को विशेष तरीके से प्रदर्शित कर सकते हैं।

नीचे की स्क्रीन में दिखाया गया है कि Excel कैसे गुजरे हुए समय को प्रदर्शित करता है, जिसमें D5 में 1.25 दिन का मान है:

  1. [h]:mm:ss - 30:00:00
    (यह 1.25 दिन के समय को 30 घंटे, 0 मिनट और 0 सेकंड के रूप में दिखाएगा)

  2. [m]:ss - 1800:00
    (यह समय को कुल मिनटों में दिखाएगा, यानी 1800 मिनट)

  3. [h] - 30
    (यह केवल घंटों को दिखाएगा, यानी कुल 30 घंटे)

इस प्रकार, जब आप गुजरे हुए समय को प्रदर्शित करना चाहते हैं, तो Excel कोष्ठकों का उपयोग करके समय को घंटों, मिनटों और सेकंडों के रूप में दिखाता है, जिससे यह अधिक स्पष्ट और आसानी से समझने योग्य हो जाता है।


Number format codes for elapsed time


Number formats for factional seconds

The following custom number formats will display tenths, hundredths, or thousandths of a second:

mm:ss.0 // tenths of a second (deciseconds)
mm:ss.00 // hundredths of a second (centiseconds)
mm:ss.000 // thousandths of a second (milliseconds)


Number formats for COLORS

Excel provides basic support for colors in custom number formats. The following 8 colors can be specified by name in a number format: [black] [white] [red][green] [blue] [yellow] [magenta] [cyan]. Color names must appear in brackets.


रंगों के लिए संख्या प्रारूप
Excel कस्टम संख्या प्रारूपों में रंगों के लिए बुनियादी समर्थन प्रदान करता है। निम्नलिखित 8 रंगों को संख्या प्रारूप में नाम से निर्दिष्ट किया जा सकता है:

  • [black]
  • [white]
  • [red]
  • [green]
  • [blue]
  • [yellow]
  • [magenta]
  • [cyan]

रंगों के नाम हमेशा कोष्ठकों ([]) में दिखाई देने चाहिए।

उदाहरण:

  • [red]0: यह नकारात्मक संख्याओं को लाल रंग में प्रदर्शित करेगा।
  • [green]0.00: यह सकारात्मक संख्याओं को हरे रंग में प्रदर्शित करेगा।
  • [blue]"Text": यह टेक्स्ट को नीले रंग में प्रदर्शित करेगा।

इसका उपयोग करके आप कस्टम संख्या प्रारूपों में संख्याओं और टेक्स्ट को विभिन्न रंगों में प्रदर्शित कर सकते हैं।


Custom number format with colors


Colors by index

In addition to color names, it's also possible to specify colors by an index number (Color1, Color2, Color3, etc.) The examples below are using the custom number format: [ColorX]0"▲▼", where X is a number between 1-56:

[Color1]0"▲▼" // black
[Color2]0"▲▼" // white
[Color3]0"▲▼" // red
[Color4]0"▲▼" // green
etc.
You may need to adjust the name "Color" for other regions or locales. For example, use [ColourX] instead of [ColorX] on a system using British English.

The triangle symbols have been added only to make the colors easier to see. The first image shows all 56 colors on a standard white background. The second image shows the same colors on a gray background. Note the first 8 colors shown correspond to the named color list above.


Custom number format colors on white

Custom number format colors on gray background


Apply number formats in a formula

Although most number formats are applied directly to cells in a worksheet, you can also apply number formats inside a formula with the TEXT function. For example, with a valid date in A1, the following formula will display the month name only:

=TEXT(A1,"mmmm")

The result of the TEXT function is always text, so you are free to concatenate the result of TEXT to other strings:

="The contract expires in "&TEXT(A1,"mmmm")

The screen below shows the number formats in column C being applied to numbers in column B using the TEXT function:


Applying number formats with the TEXT function



Measurements


माप (Measurements)
आप कस्टम संख्या प्रारूप का उपयोग करके संख्याओं को इंच (") या फीट (') के चिन्ह के साथ प्रदर्शित कर सकते हैं। नीचे की स्क्रीन में, इंच और फीट के लिए उपयोग किए गए संख्या प्रारूप निम्नलिखित हैं:

  • 0.00 ' // फीट (feet)

    • यह प्रारूप संख्याओं को फीट के चिन्ह के साथ प्रदर्शित करेगा। उदाहरण के लिए, अगर आप 5.25 दर्ज करते हैं, तो यह 5.25' के रूप में प्रदर्शित होगा।
  • 0.00 " // इंच (inches)

    • यह प्रारूप संख्याओं को इंच के चिन्ह के साथ प्रदर्शित करेगा। उदाहरण के लिए, अगर आप 12.50 दर्ज करते हैं, तो यह 12.50" के रूप में प्रदर्शित होगा।

इसका उपयोग माप के लिए किया जाता है, जैसे लंबाई या ऊंचाई को फीट और इंच में व्यक्त करना।

You can use a custom number format to display numbers with an inches mark (") or a feet mark ('). In the screen below, the number formats used for inches and feet are:

0.00 \' // feet
0.00 \" // inches


Number formats for feet and inches



Conditionals

Custom number formats can apply up to two conditions, which are written in square brackets like [>100] or [<=100]. When you use conditionals in custom number formats, you override the standard [positive];[negative];[zero];[text] structure. For example, to display values below 100 in red, you can use:

[Red][<100]0;0

To display values greater than or equal to 100 in blue, you can extend the format like this:

[Red][<100]0;[Blue][>=100]0


शर्तें (Conditionals)
कस्टम संख्या प्रारूपों में दो शर्तों (conditions) को लागू किया जा सकता है, जिन्हें कोष्ठकों ([ ]) के भीतर लिखा जाता है, जैसे [>100] या [<=100]। जब आप कस्टम संख्या प्रारूप में शर्तों का उपयोग करते हैं, तो आप सामान्य संरचना [सकारात्मक];[नकारात्मक];[शून्य];[टेक्स्ट] को ओवरराइड करते हैं।

उदाहरण:

  1. [Red][<100]0;0

    • यह प्रारूप उन मानों को लाल रंग में दिखाएगा जो 100 से कम हैं।
    • उदाहरण: यदि संख्या 50 है, तो यह लाल रंग में प्रदर्शित होगी।
  2. [Red][<100]0;[Blue][>=100]0

    • इस प्रारूप में, मान जो 100 से कम हैं, वे लाल रंग में दिखेंगे, और 100 या उससे अधिक मान नीले रंग में दिखेंगे।
    • उदाहरण: यदि संख्या 80 है, तो यह लाल रंग में दिखेगी, और यदि संख्या 120 है, तो यह नीले रंग में प्रदर्शित होगी।

इसका उपयोग संख्याओं को विशिष्ट शर्तों के आधार पर रंग या स्वरूप में बदलने के लिए किया जा सकता है, ताकि आप डेटा को आसानी से पहचान सकें।


Conditions with custom number formats

To apply more than two conditions, or to change other cell attributes, like fill color, etc. you'll need to switch to Conditional Formatting, which can apply formatting with much more power and flexibility using formulas.

Plural text labels

You can use conditionals to add an "s" to labels greater than zero with a custom format like this:

[=1]0" day";0" days"

Custom number format for plural text


Telephone numbers

Custom number formats can also be used for telephone numbers, as shown in the screen below:


Custom number format for telephone numbers


Comments