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

Google Sheets™ में Sum by Color

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



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

Section titled “Sum by Color का उपयोग कैसे करें”
  1. Tool खोलें Add-on sidebar खोलें, Sheets Mega Tools expand करें, Cell Values में जाएँ, और Sum by Color पर क्लिक करें।

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

  2. अपनी range चुनें Range picker का उपयोग करें:

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

    • Background (default) - Cell background colors के आधार पर sums calculate करें
    • Text - Cell text colors के आधार पर sums calculate करें
  4. Sums calculate करें Color के आधार पर sums निकालने के लिए “Calculate” button पर क्लिक करें।

  5. 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 होते हैं
  6. 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

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

Section titled “यह कैसे काम करता है”
  • 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

  • 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 निकालें

अगर आपके 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