गाइड

Sheets Mega Tools

Google Sheets™ में Sum by Color

जानें कि Text To Table Converter add-on का उपयोग करके Google Sheets™ में cell background या text color के आधार पर grouped sums, averages, और counts कैसे calculate करें।

Sum by Color tool एक single range के लिए color (background या text) के आधार पर grouped sums calculate करता है। Results sidebar में दिखाई देते हैं और चाहें तो इन्हें sheet में लिखा भी जा सकता है।



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

  1. Tool खोलें

Add-on sidebar खोलें, Sheets Mega Tools expand करें, Cell Values में जाएँ, और Sum by Color पर क्लिक करें।

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

  1. अपनी range चुनें

Range picker का उपयोग करें:

  • Editable range input - A1 notation में manually range दर्ज करें (जैसे A1:B10 या Sheet1!A1:B10)
  • Current selection button - Current selection लाने के लिए icon button पर क्लिक करें (fetch के दौरान spinner दिखता है)
  1. Color basis चुनें

Radio buttons से तय करें कि क्या analyze करना है:

  • Background (default) - Cell background colors के आधार पर sums calculate करें
  • Text - Cell text colors के आधार पर sums calculate करें
  1. Sums calculate करें

Color के आधार पर sums निकालने के लिए "Calculate" button पर क्लिक करें।

बड़े रेंज: 10,000 cells से बड़े ranges के लिए calculation से पहले warning दिखाई देगी। आप continue या cancel कर सकते हैं।

  1. Sidebar में results review करें

Sidebar एक results table दिखाती है जिसमें:

  • Color swatch - हर color का visual representation
  • Sum - उस color की numeric values का sum
  • Count - उस color वाली cells की total संख्या
  • Average - उस color की numeric values का average
  • Results पहले sum (descending) और फिर color hex के आधार पर sorted होते हैं
  1. Results sheet में लिखें (optional)

"Write to sheet" button पर क्लिक करें और:

  • Target range को A1 notation में दर्ज करें (जैसे D1:F10)
  • Results table सही formatting के साथ sheet में लिखी जाती है:
  • पहली column में color swatches
  • Sum, count, और average के लिए formatted numeric columns

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

  • Non-numeric cells को sum/average calculations में ignore किया जाता है
  • Only numeric cells sum में गिनी जाती हैं (अलग से numericCount के रूप में track होती हैं)
  • Colors को hex के आधार पर key किया जाता है (lowercase, normalized)
  • Blank cells को अलग group किया जाता है
  • Results में शामिल हैं:
  • colorHex - Color value
  • sum - Numeric values का sum
  • count - उस color वाली cells की total संख्या
  • numericCount - Sum में उपयोग हुई numeric cells
  • average - केवल numeric cells के आधार पर calculated average

Tip: यह tool color-coded budgets, categories, या ऐसे किसी भी data के analysis के लिए उपयुक्त है जहाँ colors अलग groups या statuses दिखाती हों।


Use Cases

  • Budget analysis - Category color के आधार पर expenses का sum निकालें
  • Status tracking - अलग status colors के लिए totals calculate करें (जैसे red = urgent, green = complete)
  • Category totals - Color-coded categories के आधार पर grouped values का sum करें
  • Data validation - Manually color-coded data के totals verify करें
  • Quick calculations - Complex formulas लिखे बिना sums निकालें

Example

अगर आपके spreadsheet में:

  • Red cells में: 100, 200, 150
  • Green cells में: 50, 75, 25
  • Blue cells में: 300, 400

तो results में दिखाई देगा:

  • Red: Sum = 450, Count = 3, Average = 150
  • Green: Sum = 150, Count = 3, Average = 50
  • Blue: Sum = 700, Count = 2, Average = 350

Note: यह tool Sheets Mega Tools का हिस्सा है और केवल Google Sheets™ में उपलब्ध है।