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

Can conditional formatting be used where text is included with numbers.
Let me explain by example.

A1 = flex 358
A2 = B, 358
A3 = R-U, 354

When A2:A3 numbers do not corresponds to A1 number then highlight cell.
Therefore A3 in this example should be highlighted.
A1:A3 quantities are the result of a formula.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Can conditional formatting be used where .....

You could, for example, use CF/ Formula is:
=RIGHT(A2,LEN(A2)-FIND(" ",A2))<RIGHT(A$1,LEN(A$1)-FIND(" ",A$1))
--
David Biddulph

"Gotroots" wrote in message
...
Can conditional formatting be used where text is included with numbers.
Let me explain by example.

A1 = flex 358
A2 = B, 358
A3 = R-U, 354

When A2:A3 numbers do not corresponds to A1 number then highlight cell.
Therefore A3 in this example should be highlighted.
A1:A3 quantities are the result of a formula.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Can conditional formatting be used where .....

1. Select the cell/Range (A2:A3). Please note that the cell reference A2
mentioned in the formula is the active cell in the selection. Active cell
will have a white background even after selection
2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula

=ISNUMBER(SEARCH(MID(A2,FIND(" ",A2)+1,99),$A$1))=FALSE

OR try the below formula if the above does not work

=ISNUMBER(SEARCH(MID(A2,MATCH(TRUE,ISNUMBER(VALUE( MID(A2,
ROW($1:$255),1))),0),SUM(--(ISNUMBER(VALUE(MID(A2,
ROW($1:$255),1)))))),$A$1))=FALSE


4. Click Format ButtonPattern and select your color (say Red)
5. Hit OK

PS: If you are using XL2007 Goto Home tabStylesConditional
FormattingManage rulesNew ruleUse a formula to determine which cells to
format. Enter the formula in the box below.


--
Jacob


"Gotroots" wrote:

Can conditional formatting be used where text is included with numbers.
Let me explain by example.

A1 = flex 358
A2 = B, 358
A3 = R-U, 354

When A2:A3 numbers do not corresponds to A1 number then highlight cell.
Therefore A3 in this example should be highlighted.
A1:A3 quantities are the result of a formula.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default Can conditional formatting be used where .....

Place the Cursor in A1 cell and hit Cntrl+Spacebar now the Total A Column
will be selected and you can notice that the A1 cell will have the White
Background
after selection also.

Now goto FormatConditional FormattingFormula Is Paste the below
formula whichever is required

If you want to set A1 as Stable cell and want to color the cells which is
LESS THAN A1 cell then use the below formula.

=VALUE(TRIM(RIGHT(SUBSTITUTE(A1," ",REPT("
",255),LEN(A1)-LEN(SUBSTITUTE(A1,"
",))),255)))<VALUE(TRIM(RIGHT(SUBSTITUTE($A$1, " ",REPT("
",255),LEN($A$1)-LEN(SUBSTITUTE($A$1," ",))),255)))

If you want to set A1 as Stable cell and want to color the cells which is
NOT EQUAL to A1 cell value then use the below formula.

=VALUE(TRIM(RIGHT(SUBSTITUTE(A1," ",REPT("
",255),LEN(A1)-LEN(SUBSTITUTE(A1,"
",))),255)))<VALUE(TRIM(RIGHT(SUBSTITUTE($A$1 ," ",REPT("
",255),LEN($A$1)-LEN(SUBSTITUTE($A$1," ",))),255)))

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Gotroots" wrote:

Can conditional formatting be used where text is included with numbers.
Let me explain by example.

A1 = flex 358
A2 = B, 358
A3 = R-U, 354

When A2:A3 numbers do not corresponds to A1 number then highlight cell.
Therefore A3 in this example should be highlighted.
A1:A3 quantities are the result of a formula.


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
How can I convert conditional formatting into explicit formatting? Patrick Harris Excel Discussion (Misc queries) 0 April 9th 09 12:00 AM
Conditional formatting--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 09:48 AM.

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"