Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default conditional formatting

What formula would i use to have a cell recognize (highlighted) a value in
another cell. For example:
Cell A1 is 5, A2 is 6, A3 is 7, A4 is 8 and A5 is 9. What formula would
place in Cell C12 to search for and recongnize that there is an 7 contained
in cells A1 to A5 and highlight if possible with a designated color.

thanx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default conditional formatting

In cell C12 select conditional formatting from the format menu

change 'Cell Value Is' to 'Formula Is' and then enter the following formula

=OR(A1=7,A2=7,A3=7,A4=7,A5=7)

then set the format to what ever you want.

Sometimes you have to edit the formula afterwards and remove the quotes.


--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"dmack" wrote:

What formula would i use to have a cell recognize (highlighted) a value in
another cell. For example:
Cell A1 is 5, A2 is 6, A3 is 7, A4 is 8 and A5 is 9. What formula would
place in Cell C12 to search for and recongnize that there is an 7 contained
in cells A1 to A5 and highlight if possible with a designated color.

thanx

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default conditional formatting

Another way, particularly useful if your range is large....

=COUNTIF(A1:A5,7)

"Martin Fishlock" wrote:

In cell C12 select conditional formatting from the format menu

change 'Cell Value Is' to 'Formula Is' and then enter the following formula

=OR(A1=7,A2=7,A3=7,A4=7,A5=7)

then set the format to what ever you want.

Sometimes you have to edit the formula afterwards and remove the quotes.


--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"dmack" wrote:

What formula would i use to have a cell recognize (highlighted) a value in
another cell. For example:
Cell A1 is 5, A2 is 6, A3 is 7, A4 is 8 and A5 is 9. What formula would
place in Cell C12 to search for and recongnize that there is an 7 contained
in cells A1 to A5 and highlight if possible with a designated color.

thanx

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 427
Default conditional formatting

Conditional Format in C12, will only control format of that cell

To get A1, A2 etc highlighted, apply a conditional format to them
ie <Cell Value is, and set value to 7 - then control the format

You could put the Array formula
=sum(if(a1:a4=7,1,0))
into C12, then using the same Condition Formula as in A1

Getting C12 to do the same is more difficult as you can't have Array
formula :)
but in C12, <Formula Is, =if(a1=7,if(a2=7,if(a3=7,if(a4=7,1,0),0),0),0)

Messy, to say the least.
Best approach is to have a helper cell to calculate the result,
then a Conditional Format for C12 based on that help cell

Steve

On Fri, 29 Dec 2006 15:17:03 -0000, dmack
wrote:

What formula would i use to have a cell recognize (highlighted) a value
in
another cell. For example:
Cell A1 is 5, A2 is 6, A3 is 7, A4 is 8 and A5 is 9. What formula would
place in Cell C12 to search for and recongnize that there is an 7
contained
in cells A1 to A5 and highlight if possible with a designated color.
thanx

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
sorting a range with conditional formatting renie Excel Worksheet Functions 2 June 2nd 06 10:43 PM
conditional formatting glitches Kat Excel Discussion (Misc queries) 2 May 26th 06 08:16 PM
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
conditional formatting Rich Excel Discussion (Misc queries) 2 April 1st 06 10:27 AM
cannot use ISEVEN or ISODD functions in Conditional Formatting Scott Paine Excel Worksheet Functions 6 December 6th 05 09:44 PM


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