+ Reply to Thread
Results 1 to 5 of 5

Possible to have ColorFunction & Sumproduct together?

  1. #1
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Possible to have ColorFunction & Sumproduct together?

    Or shall I call it Count by Color that match Criteria

    I've attached a dummy workbook where you can see tasks completed and not completed in each month in each column ( only July & August in this dummy workbook ) and used ColorFunction function.

    Now the managers want to see how many type of tasks ( footpath repair, kerb repair ) are completed and not completed in that particular month.

    Is it possible to use sumproduct (or any other way) with ColorFuntion? So we can match or sum the ColorFuntion with type of tasks in J Column?

    My questin in the dummy workbook is in the blue quote


    Task dummy2.xls


    Thank you in advance
    Last edited by unley; 02-17-2011 at 10:26 PM.
    I'm using MS Office 2013

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Possible to have ColorFunction & Sumproduct together?

    Hi unley
    you could return an array from a UDF to use with the sumproduct

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Re: Possible to have ColorFunction & Sumproduct together?

    Thank you pike for replying. I used your code but could not add up.

    I've enclosed the updated workbook with you code.


    Task dummy3.xls


    Can you attach the workbook you updated so I can see how it works? Thank you

    I've tried all the search beforehand but could not find any that suit my need
    Last edited by unley; 02-21-2011 at 07:08 PM.

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Possible to have ColorFunction & Sumproduct together?

    hi unley,
    Why dont you use a pivot table?.

    You are heading in the wrong direction with Colour these function are Volatile.
    The array is only horizontal

    In you use a 1 or 0 formated the same colour as the cell you will be better off as you can sumproduct to do what ever you need

  5. #5
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Re: Possible to have ColorFunction & Sumproduct together?

    Thank you pike. But I'm a bit lost due to so much overtimes lol

    I'm not so sure what you mean by use 1 or 0 formatted the same color but I do want array in horizontal (it's the only way of counting nature of tasks in J column really)

    The reason I don't use pivot table is because the other people with little Excel experience wanted to see the result and also I create graphs using those tables of Task result ( in light yellow tables) and report them to elected members.

    Also there are six different wards in the Local Government Arial in the original workbook.
    Last edited by unley; 02-21-2011 at 07:15 PM.

+ 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