Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ken
 
Posts: n/a
Default Conditional Format ... Compare Columns?

Excel 2000 ...

Col B contains 1000 alpha-numerics (many repeat)

Col D contains 50 alpha-numerics (none repeat)

I would like "Conditional Formatting" Formula in Col B to
high-lite all alpha-numerics not found in Col D.

Thanks ... Kha


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Select column B and add this formula in CF

=COUNTIF(D:D,B1)=0

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ken" wrote in message
...
Excel 2000 ...

Col B contains 1000 alpha-numerics (many repeat)

Col D contains 50 alpha-numerics (none repeat)

I would like "Conditional Formatting" Formula in Col B to
high-lite all alpha-numerics not found in Col D.

Thanks ... Kha




  #3   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

I can't think of a way do do this without an array formula, and I can't
think of a way to put an array formula in conditional formatting. Maybe I
just can't think at all! Here's a formula to put in a helper column, which
can then be tested with conditional formatting:
=IF(AND(B1<$D$1:$D$3),"*","")

It's a array formula - use Ctrl-Shift-Enter. Enter it into a single cell
(it's a single-result array formula), then copy down with the Fill Handle.
You can hide this column.

Now set up conditional formatting to highlight the row if there's an
asterisk in the column. If it's in column F, you could use:
Format - Conditional formatting - Formula is:
=$F2="*"
This is for where the active (white) cell of your selection is in row 2.

I don't know why I'm doing this. SOmeone is probably posting a way to do it
directly in Conditional Formatting right now.
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Ken" wrote in message
...
Excel 2000 ...

Col B contains 1000 alpha-numerics (many repeat)

Col D contains 50 alpha-numerics (none repeat)

I would like "Conditional Formatting" Formula in Col B to
high-lite all alpha-numerics not found in Col D.

Thanks ... Kha




  #4   Report Post  
ww
 
Posts: n/a
Default

Hi Ken,

Select Col B and do Formatconditional formatting.
On the Conditional Formatting screen choose 'Formula is' and enter
=countif(B1:B50,D1)<1 then just choose your highlighting color.

Hope that helps.


"Ken" wrote:

Excel 2000 ...

Col B contains 1000 alpha-numerics (many repeat)

Col D contains 50 alpha-numerics (none repeat)

I would like "Conditional Formatting" Formula in Col B to
high-lite all alpha-numerics not found in Col D.

Thanks ... Kha



  #5   Report Post  
David
 
Posts: n/a
Default

Ken wrote

Excel 2000 ...

Col B contains 1000 alpha-numerics (many repeat)

Col D contains 50 alpha-numerics (none repeat)

I would like "Conditional Formatting" Formula in Col B to
high-lite all alpha-numerics not found in Col D.

Thanks ... Kha


If I understand what you mean by alph-numerics, how about:
Select Col B
Format|Conditional Formatting|Formula Is
=(COUNTIF(D:D,B1)=0)*ISTEXT(B1)
Choose color from Patterns

--
David


  #6   Report Post  
David
 
Posts: n/a
Default

David wrote

Ken wrote

Excel 2000 ...

Col B contains 1000 alpha-numerics (many repeat)

Col D contains 50 alpha-numerics (none repeat)

I would like "Conditional Formatting" Formula in Col B to
high-lite all alpha-numerics not found in Col D.

Thanks ... Kha


If I understand what you mean by alph-numerics, how about:
Select Col B
Format|Conditional Formatting|Formula Is
=(COUNTIF(D:D,B1)=0)*ISTEXT(B1)
Choose color from Patterns


Or this (simpler?):
=AND(B1<"",COUNTIF(D:D,B1)=0)

--
David
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
Conditional Format Titles Jenn Excel Discussion (Misc queries) 1 February 22nd 05 09:41 PM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM
make a conditional format the default Fred Evans Excel Discussion (Misc queries) 3 December 6th 04 05:01 AM
Copying a conditional format Meaux Excel Worksheet Functions 2 November 29th 04 10:19 AM
Conditional Format With SUMIF Minitman Excel Worksheet Functions 3 November 1st 04 02:58 PM


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