+ Reply to Thread
Results 1 to 2 of 2

Find the average of a row by color

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Red face Find the average of a row by color

    Hi there,

    I hoping for some help with my problem. I am looking for a quick way to find the average of a row of numbers by there color.

    I need to find the average of only the green and red cells (ignoring the white and blue cells) without having to select each cell individually.

    Any help would be greatly appreciated.

    Thanks

    David
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,962

    Re: Find the average of a row by color

    You basically need to replicate your two different CF conditions into one logical analysis

    ((>=6 AND <=219) OR (>=260))

    using SUMIFS and COUNTIFS, like this for row 1:

    =IFERROR((SUMIFS(A1:S1,A1:S1,">=6",A1:S1,"<=219")+SUMIFS(A1:S1,A1:S1,">=260"))/(COUNTIFS(A1:S1,">=6",A1:S1,"<=219")+COUNTIFS(A1:S1,">=260")),"")

    The single condition >=260 doesn't require the S versions of SUMIF and COUNTIF but it is still OK to use.
    Last edited by Bernie Deitrick; 04-05-2017 at 02:36 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Find a Text, average last 20,if < 20 average all available.
    By richhhh in forum Excel General
    Replies: 42
    Last Post: 08-28-2016, 09:51 PM
  2. [SOLVED] Correct syntax for function to find average based on background color of cells in range
    By moosetales in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-21-2014, 12:24 AM
  3. [SOLVED] Find Average, Return Column Header of Number Closest To Average
    By djmyers in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-07-2013, 04:19 PM
  4. Find a duplicate and then use the duplicates interior.color to change cell color.
    By bopsgtir in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2012, 03:54 PM
  5. Index/Match to find Starting Point of Average, Ending Point of Average Variable
    By tgentry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2012, 01:04 AM
  6. Replies: 12
    Last Post: 09-18-2012, 03:13 PM
  7. how to find a color in a row where the color is blue , if true fill with a specific text
    By jayakumar.chandran in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2012, 03:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1