+ Reply to Thread
Results 1 to 5 of 5

Formula based on colours in cell range

  1. #1
    Registered User
    Join Date
    12-01-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    38

    Formula based on colours in cell range

    Hi, I would like to create a formula which totals the values of a specific cell range that is of a specific colour.

    For example. If cell range B4:F7 is red then total the sum of the values, if cell range B4:F7 is Green, total the sum of the values (ignoring red and vice versa).

    Any help is much appreciated.

    Kind Regards

    KB

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula based on colours in cell range

    why are they coloured red or green?what was the logic behind your choice
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Formula based on colours in cell range

    See http://www.xldynamic.com/source/xld.ColourCounter.html

  4. #4
    Registered User
    Join Date
    12-01-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Formula based on colours in cell range

    Hi Martin,

    The colours are specific to a name. Name 1 = Green and Name 2 = Red. The values entered are related to the "name's" effort i.e. 'Name 1' = 3(hours). The formula will then look at the cell range and be able to detect the colours and total the values for that specific name.

    Not sure if that clarifies?

    thanks for your assistance!

    KB

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula based on colours in cell range

    wont just =sumif(rangeof names,"name",sumrange) work
    how is data laid out

+ 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