On Sat, 30 Jul 2011 10:14:00 -0500, "Clif McIrvin"
<(E-Mail Removed)> wrote:
>"Sam Harman" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>> Hi I have a spreadsheet which has some conditional formatting and
>> therefore some cells are coloured green, orange or yellow.
>>
>> Is there a way to count these cells and produce a total number.
>>
>> For example if row one has 20 columns and 6 of them are coloured
>> (either green, yellow or orange) can I have a new column at 21 to show
>> the total number of coloured cells = 6?
>>
>> Any help appreciated
>>
>> Thanks
>>
>> Sam
>
>
>Maybe something like
>
>=SUMPRODUCT(--(A2:T2="Pen")+--(A2:T2>=10)+--(A2:T2=5))
>
>in U2?
>
>More generally,
>
>=SUMPRODUCT(--(A2:T2=condition1)+--(A2:T2=condition2)+--(A2:T2=condition3)+...)
>
>More info on Debra Dalgleish's blog -
>http://blog.contextures.com/archives...for-underdogs/
>
>I recommend her link to Bob Phillip's write-up.
Hi and thanks for all of your replies and advice.
Clare, if I use your sumprodicy suggestion, what do i use as the
condition as I have tried putting in green, yellow etc but I get an
error and no result....
Any help appreciated
Thanks
Sam