PC Review


Reply
Thread Tools Rate Thread

conditional formula for blank cells

 
 
=?Utf-8?B?Ym5rb25l?=
Guest
Posts: n/a
 
      9th Feb 2007
I have a conditional cell color based on a formula to identify blank cells &
populated cells. I want to now count the cells that meet the formula
criteria. I get accurate counts with the populated cell formula count but
because I have an isblank in my blank cell conditional formula I am getting a
miscount. Is there any really good way to count colors based on conditional
formulas especially where the condition is blank?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      9th Feb 2007
You should have no trouble if use use COUNTBLANK. You should get a count of
blank cells no matter how they are formatted
--
Gary''s Student
gsnu200705


"bnkone" wrote:

> I have a conditional cell color based on a formula to identify blank cells &
> populated cells. I want to now count the cells that meet the formula
> criteria. I get accurate counts with the populated cell formula count but
> because I have an isblank in my blank cell conditional formula I am getting a
> miscount. Is there any really good way to count colors based on conditional
> formulas especially where the condition is blank?

 
Reply With Quote
 
=?Utf-8?B?Ym5rb25l?=
Guest
Posts: n/a
 
      9th Feb 2007
Sorry, I probably should have written more details.

Here is the formula I use to color cells conditionally where I am having
trouble

=AND(INDEX(data,MATCH($A1,trademarks,1),MATCH(A$8,countries,1))=1,ISBLANK(A1))

This condition generates a yellow cell fill. At the end of the day I want to
count how many yellows I have.

I use this for red:
=AND(INDEX(data,MATCH($A1,trademarks,1),MATCH(A$8,countries,1))<>1,A1>0)

I use this formula to count the color formulas
=IF(AND(INDEX(data,MATCH('Color Sheet'!$A9,trademarks,1),MATCH('Color
Sheet'!B$8,countries,1))=1,'Color
Sheet'!B9>0)=TRUE,"G",IF(AND(INDEX(data,MATCH('Color
Sheet'!$A9,trademarks,1),MATCH('Color Sheet'!B$8,countries,1))=1,'Color
Sheet'!B8="")=TRUE,"Y",IF(AND(INDEX(data,MATCH('Color
Sheet'!$A9,trademarks,1),MATCH('Color Sheet'!B$8,countries,1))<>1,'Color
Sheet'!B9>0)=TRUE,"R","")))


I can then count all the cells with the formula for red and get an accurate
count. However, the isblank is throwing off my cell counts for yellow.


"Gary''s Student" wrote:

> You should have no trouble if use use COUNTBLANK. You should get a count of
> blank cells no matter how they are formatted
> --
> Gary''s Student
> gsnu200705
>
>
> "bnkone" wrote:
>
> > I have a conditional cell color based on a formula to identify blank cells &
> > populated cells. I want to now count the cells that meet the formula
> > criteria. I get accurate counts with the populated cell formula count but
> > because I have an isblank in my blank cell conditional formula I am getting a
> > miscount. Is there any really good way to count colors based on conditional
> > formulas especially where the condition is blank?

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      9th Feb 2007
First see:

http://www.xldynamic.com/source/xld.CFConditions.html

The methods described here use great piles of VBA. An alternative approach
is to use a helper column. Enter the conditional formulae directly into the
cells in the helper column. You will see TRUEs and FALSEs in the helper
column that match to the colors in the column having conditional formats.

Then all you need to do is use COUNTIF() on the helper column. I am sorry I
don't have a more compact solution.
--
Gary's Student
gsnu200705


"bnkone" wrote:

> Sorry, I probably should have written more details.
>
> Here is the formula I use to color cells conditionally where I am having
> trouble
>
> =AND(INDEX(data,MATCH($A1,trademarks,1),MATCH(A$8,countries,1))=1,ISBLANK(A1))
>
> This condition generates a yellow cell fill. At the end of the day I want to
> count how many yellows I have.
>
> I use this for red:
> =AND(INDEX(data,MATCH($A1,trademarks,1),MATCH(A$8,countries,1))<>1,A1>0)
>
> I use this formula to count the color formulas
> =IF(AND(INDEX(data,MATCH('Color Sheet'!$A9,trademarks,1),MATCH('Color
> Sheet'!B$8,countries,1))=1,'Color
> Sheet'!B9>0)=TRUE,"G",IF(AND(INDEX(data,MATCH('Color
> Sheet'!$A9,trademarks,1),MATCH('Color Sheet'!B$8,countries,1))=1,'Color
> Sheet'!B8="")=TRUE,"Y",IF(AND(INDEX(data,MATCH('Color
> Sheet'!$A9,trademarks,1),MATCH('Color Sheet'!B$8,countries,1))<>1,'Color
> Sheet'!B9>0)=TRUE,"R","")))
>
>
> I can then count all the cells with the formula for red and get an accurate
> count. However, the isblank is throwing off my cell counts for yellow.
>
>
> "Gary''s Student" wrote:
>
> > You should have no trouble if use use COUNTBLANK. You should get a count of
> > blank cells no matter how they are formatted
> > --
> > Gary''s Student
> > gsnu200705
> >
> >
> > "bnkone" wrote:
> >
> > > I have a conditional cell color based on a formula to identify blank cells &
> > > populated cells. I want to now count the cells that meet the formula
> > > criteria. I get accurate counts with the populated cell formula count but
> > > because I have an isblank in my blank cell conditional formula I am getting a
> > > miscount. Is there any really good way to count colors based on conditional
> > > formulas especially where the condition is blank?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Format for Blank Cells LSG Microsoft Excel Worksheet Functions 5 18th Mar 2010 09:59 PM
Conditional formatting/non blank cells Caroline Microsoft Excel Worksheet Functions 4 6th Nov 2008 05:54 PM
Conditional formating - for blank cells pearce Microsoft Excel Misc 5 5th Sep 2008 04:30 PM
Conditional formula miscalculating blank cells Rob in Sydney Microsoft Excel Worksheet Functions 7 31st Dec 2007 10:36 AM
VB- If first cell with formula is blank, all cells in column returns blank. mnhesh Microsoft Excel Misc 2 12th May 2004 05:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 PM.