Consulting

Results 1 to 9 of 9

Thread: Solved: Count a different cells depending on what colout the font is???

  1. #1

    Solved: Count a different cells depending on what colout the font is???

    Hi guys,

    Need your expert help again ,

    Now I dont know if this is possible.....

    Bassically (as what the title says) - is it possible to add a cell depending on what colout the font is

    So......

    In cell E1 there needs to be a total of Coloumn E:5:E17 (there is text in these cells) but only count them if they are red

    Is this possible????

    Cheers

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Ok thanks for poiting me to that site - i tried what they suggested but when i use

    [vba]=SUMPRODUCT(--(ColorIndex(E5:E45,TRUE)=3))[/vba]

    it brings up this error

    [vba]#NAME?[/vba]

    any ideas?

    *** didnt name the cell range

    now i have named the cell range to "comp_actions" but am getting this error now

    [VBA]#REF![/VBA]

    ????

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You have to install the macro code on that site as well.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    Ok so I have put that macro in the sheet I want this to happen, but it is still giving me the #ref! error... am i doign something wrong (well obv i am :P )

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Post your workbook so that we can see.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    Attached sample worksheet....

    thanks for the help btw

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You need to move the code from the worksheet module into a standard code module, and change the formula to

    =SUMPRODUCT(--(ColorIndex(Completed,TRUE)=3))

    etc.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  9. #9
    awsome.... thanks very much for that, really appreciate it....

Posting Permissions

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