+ Reply to Thread
Results 1 to 2 of 2

Using a "ColorIndexOfRange" function as criteria in an "averageif" statement

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2003
    Posts
    21

    Using a "ColorIndexOfRange" function as criteria in an "averageif" statement

    Greetings,

    I'm tweaking a spreadsheet used at our office to only incorporate figures into a daily average that have been "scrubbed" financially.

    In order to make it easy for the person handling the data input as well as visually clear, I'm aiming for a system in which she can simply select the cells that haven't been "scrubbed" and change the fill color to reflect that. Once that's done, I'd like the "daily average" figure at the bottom to only take into account cells with a blank/default fill color.

    I stumbled upon these VBA functions as a means for detecting the background color of a cell, but I'm struggling to work them into my "AverageIf" statement. More specific to my spreadsheet, I'd like to write a formula that averages the values in the range G3:G33, but ignores blank cells, values of 0, and cells with a fill color other than blank/default.


    Thanks for your time.

  2. #2
    Registered User
    Join Date
    09-25-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Using a "ColorIndexOfRange" function as criteria in an "averageif" statement

    Whupps, scratch that. Just found the "ColorSum" and "ColorCount" functions.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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