Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default counting cell conditions

I have 4 columns and I put conditions on the cells.
In these columns, we have our bowl game predictions.
After each game, I put a condition to change the
background color to yellow if that person won the pick or
grey if they lost.
At the end, I want a function to calculate how many
yellow blocks were in that column and how many grey ones
to do a winning percentage.
Please help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default counting cell conditions

Erik

You should be able to COUNTIF based on the conditions that colored the cells.

=COUNTIF(A1:D100,"lost")/COUNTA(A1:A100) format as Percentage
=COUNTIF(A1:D100,"won")/COUNTA(A1:A100) format as Percentage

To determine the cell colorindex of CF cells requires some VBA.

Chip Pearson has details and code at........

http://www.cpearson.com/excel/CFColors.htm

Gord Dibben Excel MVP

On Sat, 27 Dec 2003 12:02:31 -0800, "Erik" wrote:

I have 4 columns and I put conditions on the cells.
In these columns, we have our bowl game predictions.
After each game, I put a condition to change the
background color to yellow if that person won the pick or
grey if they lost.
At the end, I want a function to calculate how many
yellow blocks were in that column and how many grey ones
to do a winning percentage.
Please help


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting with Conditions but Only Once LindsE Excel Discussion (Misc queries) 8 October 22nd 09 12:52 PM
Counting for multiple conditions J. Catz. Excel Worksheet Functions 2 December 11th 07 11:12 PM
Help with counting multiple conditions jstro01 Excel Discussion (Misc queries) 3 April 27th 07 09:50 PM
Counting on two conditions, one with a range Ted Metro Excel Worksheet Functions 4 March 25th 07 08:59 AM
counting based on 2 conditions Thrava Excel Discussion (Misc queries) 3 December 8th 04 10:19 PM


All times are GMT +1. The time now is 05:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"