Conditional formatting or Vlookup?

P

pa_broon74

Hey folks.

I have a wee query. I have a spread sheet with two columns of data
(they're item codes.) I need to somehow highlight the item code in one
column if it exists in the other.

Background: I have a list of items that have been purchased sorted by
the Purchase Order on which they appear, thats the first list. The
second list is items in a particular department. I need to highlight
the items on the PO list but only from that specific department,
(second list.)

Mmm, hope that makes sense...

Thanks in advance.

Paul.
 
J

JP

Conditional formatting could do this for you.

Let's say your data is in columns A1:B1000.

1. Highlight column B.
2. Click Format>Conditional Formatting
3. Formula Is> =COUNTIF($A$1:$A$1000,B1)>0
4. Click Format>choose your favorite color
5. Click OK twice.

Anything in column B that is found in column A will be highlighted.


HTH,
JP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top