A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Formatting with COUNTIF



 
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2009, 09:45 AM posted to microsoft.public.excel.worksheet.functions
Rovermog
external usenet poster
 
Posts: 1
Default Conditional Formatting with COUNTIF

I would like to have cell A11 set to show red via conditional formatting if
the cells F11:J11 and AI11:BF11 have either a number, date or text in them,
but excluding cells that contain X and the total is less than 12.
This is the formulae I have been trying;
=(COUNTIF(F11:J11,""&X)+COUNTIF(AI11:BF11,""&X ))12

Similarly A11 should go yellow if the total is between 12 and 25.

Any suggestions.
  #2  
Old September 23rd, 2009, 10:22 AM posted to microsoft.public.excel.worksheet.functions
Stefi
external usenet poster
 
Posts: 1,841
Default Conditional Formatting with COUNTIF

Try this:
first condition for red:
=COUNTA(F11:J11,AI11:BF11)-COUNTIF(F11:J11,""&"X")-COUNTIF(AI11:BF11,""&"X")12
second condition for yellow:
=COUNTA(F11:J11,AI11:BF11)-COUNTIF(F11:J11,""&"X")-COUNTIF(AI11:BF11,""&"X")25


Regards,
Stefi


„Rovermog” ezt *rta:

I would like to have cell A11 set to show red via conditional formatting if
the cells F11:J11 and AI11:BF11 have either a number, date or text in them,
but excluding cells that contain X and the total is less than 12.
This is the formulae I have been trying;
=(COUNTIF(F11:J11,""&X)+COUNTIF(AI11:BF11,""&X ))12

Similarly A11 should go yellow if the total is between 12 and 25.

Any suggestions.

  #3  
Old September 23rd, 2009, 12:16 PM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_2_]
external usenet poster
 
Posts: 1,562
Default Conditional Formatting with COUNTIF

=AND(COUNTIF(F11:J11,"X")+COUNTIF(AI11:BF11,"X ")-COUNTBLANK(F11:J11)-COUNTBLANK(AI11:BF11)=12,
COUNTIF(F11:J11,"X")+COUNTIF(AI11:BF11,"X")-COUNTBLANK(F11:J11)-COUNTBLANK(AI11:BF11)=15)

--
__________________________________
HTH

Bob

"Rovermog" wrote in message
...
I would like to have cell A11 set to show red via conditional formatting if
the cells F11:J11 and AI11:BF11 have either a number, date or text in
them,
but excluding cells that contain X and the total is less than 12.
This is the formulae I have been trying;
=(COUNTIF(F11:J11,""&X)+COUNTIF(AI11:BF11,""&X ))12

Similarly A11 should go yellow if the total is between 12 and 25.

Any suggestions.



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:41 AM.


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