Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
umaanddottie
 
Posts: n/a
Default Can I count cells with specific format (e.g., yellow field?)

I am trying to count cells that have a specific field color, such as green or
yellow. I'm scheduling emergency duty and need to make sure that the awful
shifts (Friday nights and Saturday nights) get distributed evenly among the
30 interns/residents doing duty. I have the shift rows highlighted across
the list of names to be schedules. I've used the COUNTIF function to count
occurances of things, but it only accepts words, numbers, etc. as criteria.
Any ideas?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

You would need VBA for that, however if the colours are weekday dependent
you might be able to use the day itself as criteria, for counting colours
see

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

on how to install VBA see:

http://www.mvps.org/dmcritchie/excel/install.htm


Regards,

Peo Sjoblom

(No private emails please)


"umaanddottie" wrote in message
...
I am trying to count cells that have a specific field color, such as green
or
yellow. I'm scheduling emergency duty and need to make sure that the
awful
shifts (Friday nights and Saturday nights) get distributed evenly among
the
30 interns/residents doing duty. I have the shift rows highlighted across
the list of names to be schedules. I've used the COUNTIF function to
count
occurances of things, but it only accepts words, numbers, etc. as
criteria.
Any ideas?


  #3   Report Post  
PC
 
Posts: n/a
Default

Chip Pearson has these custom functions that return the color. Instead of
sorting you can use a SUMPRODUCT to count the colors by person.

http://cpearson.com/excel/SortByColor.htm

If you're not familiar with using SUMPRODUCT to count the items, I recommend
you get those functions working first and then do a google search to get
that formula. (It is posted on this newsgroup a least once a day (A search
for "counting with multiple criteria" should return the syntaxt)

PC

"umaanddottie" wrote in message
...
I am trying to count cells that have a specific field color, such as green

or
yellow. I'm scheduling emergency duty and need to make sure that the

awful
shifts (Friday nights and Saturday nights) get distributed evenly among

the
30 interns/residents doing duty. I have the shift rows highlighted across
the list of names to be schedules. I've used the COUNTIF function to

count
occurances of things, but it only accepts words, numbers, etc. as

criteria.
Any ideas?



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
format cells Alfred Excel Worksheet Functions 2 April 1st 05 03:43 PM
Count Rows with Conditional Format? Ken Excel Discussion (Misc queries) 3 March 24th 05 02:27 PM
Can I count how many grey-filled cells are in a row ? AnthonyG Excel Worksheet Functions 1 February 4th 05 10:08 AM
Count non-colored cells Ken G Excel Discussion (Misc queries) 3 January 2nd 05 12:42 PM
Protected cells -automatically format to a different color Fred Evans Excel Discussion (Misc queries) 9 December 3rd 04 12:59 PM


All times are GMT +1. The time now is 02:31 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"