Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kevin
 
Posts: n/a
Default monitoring a changing range of cells

Hi,
I am trying to find/create a function which allows me to monitor a changing
range of cells. I have a column in which the user types yes or no, and then
in another cell I am checking to see if all of the cells say "yes". My
problem is that I want the user to be able to add more rows of yes or no to
the column and to be able to check these new cells for the "yes or no"
condition. I am currently using function code that looks like this.

=IF(((AND(EXACT("YES",UPPER(range)))))=TRUE,"YES", "NO")

As you can see I have to give the function a defined range. I was thinking
of using a cell background colour checking function (the cells are
conditionally formatted to change colour when yes or no are typed in) that I
found on this page

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

to determine the range of cells to be checked, but I cannot get the
"RangeofColor" function to work, all I get is #value.

If anyone can help me out that would be greatly appriciated, and if anyone
has a simpler method of doing this I would love to hear it.

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Conditional formatting can't be accessed from a UDF (at least not
easily). However, since your colors are determined by a formula, you can
use that formula to count.

If you want to determine whether there are all YESes or no NO's:

=IF(COUNTIF(A:A,"No"),"Not all YESes","No NOs")

Or

=IF(COUNTIF(A:A,"Yes")=COUNTA(A:A),"All YESes","Not all YESes")


If you can't use the entire column (or a known subset, like A2:A1000),
check out using a dynamic range:

http://cpearson.com/excel/named.htm#Dynamic

In article ,
"Kevin" wrote:

the cells are
conditionally formatted to change colour when yes or no are typed in) that I
found on this page

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

to determine the range of cells to be checked, but I cannot get the
"RangeofColor" function to work, all I get is #value.

If anyone can help me out that would be greatly appriciated, and if anyone
has a simpler method of doing this I would love to hear it.

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 empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
automatically fill in a range of cells Maarten Excel Discussion (Misc queries) 1 April 29th 05 11:14 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM
How do I change an Excel range of cells from relative to absolute. Jrhenk Excel Worksheet Functions 2 November 15th 04 10:55 PM
How do i get an average that ignores blanks in the range of cells. ucastores Excel Worksheet Functions 7 November 11th 04 05:01 PM


All times are GMT +1. The time now is 12:06 PM.

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

About Us

"It's about Microsoft Excel"