इसे छोड़कर कंटेंट पर जाएं

Google Sheets™ में Sort by Color

Sort by Color तब data organize करने में मदद करता है जब आपने अलग-अलग colors से rows highlight की हों। Similar colors वाली rows को साथ group करें और चाहें तो अपने color scheme के लिए custom priority order भी set करें।



Sort by Color का उपयोग कैसे करें

Section titled “Sort by Color का उपयोग कैसे करें”
  1. अपनी range चुनें जिन rows को sort करना है उन्हें highlight करें। यह tool केवल current selection पर काम करता है (panel में helper text दिखाई देता है)।

  2. Tool खोलें Add-on sidebar खोलें, Sheets Mega Tools expand करें, Rows & Columns में जाएँ, और Sort by Color पर क्लिक करें।

    आप इसी sidebar section को खोलने के लिए Sheets Mega Tools menu shortcut का भी उपयोग कर सकते हैं।

  3. Sort options configure करें Options panel expand करने के लिए caret button पर क्लिक करें:

    Color Basis:

    • Background (default) - Cell background color के आधार पर sort करें
    • Text - Cell text color के आधार पर sort करें

    Sort Order:

    • Auto (default) - Colors उसी क्रम में आती हैं जिस क्रम में वे data में पहली बार दिखाई देती हैं
    • Custom priority - Color pickers की मदद से specific color order तय करें (जो colors list में नहीं हैं वे custom list के बाद आएँगी)

    Additional Options:

    • Blanks last - बिना color वाली cells को नीचे ले जाएँ (default: off)
    • Secondary sort - जिन rows का color एक जैसा हो, उन्हें text content के पहले character के आधार पर alphabetically A→Z sort करें (सिर्फ ties के लिए)
  4. Sort चलाएँ अपनी configured options के आधार पर rows reorder करने के लिए Sort selection पर क्लिक करें।

  5. Status message review करें Sorting के बाद status message यह confirm करता है:

    • कौन सा color basis उपयोग हुआ (Background या Text)
    • कौन सा sort order लागू हुआ (Auto या Custom)
    • कितनी rows sort हुईं

यह कैसे काम करता है

Section titled “यह कैसे काम करता है”
  • Rows को आपकी selection की first column के color के आधार पर reorder किया जाता है
  • पूरी row साथ move होती है, इसलिए सारा data सुरक्षित रहता है
  • Selection का shape सुरक्षित रहता है (पहले और बाद में dimensions समान रहती हैं)

Auto Order (Default):

  • Colors उसी क्रम में sort होती हैं जिस क्रम में वे data में पहली बार दिखाई देती हैं
  • Example: अगर Red पहले दिखाई दे, फिर Blue, फिर Green, तो यही sort order होगा

Custom Priority:

  • Color pickers की मदद से specific colors तय करें (जैसे Red → Yellow → Green)
  • आपकी list से match करने वाली colors आपके तय order में sort होती हैं
  • जो colors list में नहीं हैं वे prioritized colors के बाद आती हैं
  • Blank (no color) cells को “Blanks last” toggle से नीचे भेजा जा सकता है

जब कई rows का color एक जैसा हो:

  • Rows को उनके text content के पहले character के आधार पर alphabetically A→Z sort किया जाता है
  • Sorting case-insensitive होती है
  • यह केवल तब लागू होता है जब “ties” हों (एक जैसी colors वाली multiple rows)

Sort operation यह सब preserve करती है:

  • ✅ Cell values (numbers, text, dates)
  • ✅ Cell formulas (functions remain intact)
  • ✅ Cell notes/comments
  • ✅ Background colors
  • ✅ Font colors
  • ✅ Cell formatting

  • Priority tracking - Tasks को color-coded priority के आधार पर group करें (Red = Urgent, Yellow = Medium, Green = Low)
  • Status visualization - Items को status colors के आधार पर organize करें (Red = Blocked, Yellow = In Progress, Green = Complete)
  • Category grouping - Manual highlighting के बाद data को color-coded categories के आधार पर sort करें
  • Quality control - Review status colors के आधार पर items group करें
  • Project management - Tasks को color-coded project phase या team के आधार पर organize करें
  • Data analysis - Conditional formatting या manual review से आए color highlights के आधार पर rows group करें

आपके data में highlighted rows हैं:

  • Row 5: Red
  • Row 3: Blue
  • Row 7: Red
  • Row 2: Green
  • Row 8: Blue

Auto order के साथ sorting के बाद:

  • Red वाली rows (पहला दिखाई देने वाला color)
  • Blue वाली rows (दूसरा दिखाई देने वाला color)
  • Green वाली rows (तीसरा दिखाई देने वाला color)

आप priority define करते हैं: Green → Yellow → Red

आपके data में rows हैं: Red, Blue, Yellow, Green, Purple

Sorting के बाद:

  • Green rows (आपकी custom priority में 1st)
  • Yellow rows (आपकी custom priority में 2nd)
  • Red rows (आपकी custom priority में 3rd)
  • Blue और Purple rows (custom list में नहीं, इसलिए बाद में आती हैं)

Example 3: Secondary Sort के साथ

Section titled “Example 3: Secondary Sort के साथ”

कई rows का background Red है:

  • “Zebra” (Red)
  • “Apple” (Red)
  • “Mango” (Red)

Secondary sort enable होने के बाद:

  • “Apple” (Red, A→Z sort)
  • “Mango” (Red, A→Z sort)
  • “Zebra” (Red, A→Z sort)

Operation को predictable और safe रखने के लिए sorting selected range तक सीमित है। अगर आपको पूरी sheet sort करनी है, तो Google Sheets™ का built-in Data → Sort range feature उपयोग करें।

यह tool merged cells वाली selections स्वीकार नहीं करता। अगर आपकी selection में merged cells हैं:

  1. Unmerge the cells first (Format → Merge cells → Unmerge)
  2. Run the sort
  3. Re-merge if needed afterward

Sort operation Sheets API का उपयोग करती है, जिसका मतलब है:

  • ✅ You can undo the sort with Ctrl+Z (Cmd+Z on Mac)
  • ✅ The operation appears in your sheet’s edit history
  • ✅ All original data is preserved if you need to revert

बहुत बड़ी selections (10,000+ rows) के लिए sort में कुछ समय लग सकता है। Processing के दौरान tool loading indicator दिखाएगा।