Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default conditional formating

Hi all,
I have a simple problem (i haven't touched a macro for ages),
On a a tab, I have a list of codes,
on another tab another list of code (very long). I would like to
highlight the codes in the second tab that matches the 1st one.

Thanks a lot in advance for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default conditional formating

On Jun 3, 12:42*pm, AlbatroZ wrote:
Hi all,
I have a simple problem (i haven't touched a macro for ages),
On a a tab, I have a list of codes,
on another tab another list of code (very long). I would like to
highlight the codes in the second tab that matches the 1st one.

Thanks a lot in advance for your help




Can somebody help?

PLease

Cheers
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default conditional formating

Hi Albatroz.

See Chip Pearson at:

Extracting Elements Common To Two Lists
http://www.cpearson.com/excel/ListFunctions.aspx





---
Regards.
Norman


"AlbatroZ" wrote in message
...
On Jun 3, 12:42 pm, AlbatroZ wrote:
Hi all,
I have a simple problem (i haven't touched a macro for ages),
On a a tab, I have a list of codes,
on another tab another list of code (very long). I would like to
highlight the codes in the second tab that matches the 1st one.

Thanks a lot in advance for your help




Can somebody help?

PLease

Cheers

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default conditional formating

Thanks a lot norman,
but I wanted to highlight the common numbers in the second list
instread of extracting them.
I think it is feasible by writting a macro, if somebody can help
Pleaaaaaaaaase


Cheers
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default conditional formating

thanks a lot Norman, but I really want to highlight the numbers in the
second list instead of extracting them.
I was thinking about using a macro.
if somebody can help, pleaaaaaaaaase


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default conditional formating

Dim LastRow As Long
Dim i As Long
Dim CheckSheet As Worksheet

Set CheckSheet = Worksheets("Sheet1")
With Worksheets("Sheet2")

LastRow = .Cells(.Rows.Count).End(xlUp).Row
For i = 1 To LastRow

.Cells(i, "A").Interior.Colorindex = xlColorindexNone
If Not IsError(Application.Match(.Cells(i, "A").Value,
CheckSheet.Columns(1),0))) then

.Cells(i, "A").Interior.Colorindex =38
End If
Next i
End With

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"AlbatroZ" wrote in message
...
thanks a lot Norman, but I really want to highlight the numbers in the
second list instead of extracting them.
I was thinking about using a macro.
if somebody can help, pleaaaaaaaaase



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default conditional formating

On Jun 3, 3:42 am, AlbatroZ wrote:
Hi all,
I have a simple problem (i haven't touched a macro for ages),
On a a tab, I have a list of codes,
on another tab another list of code (very long). I would like to
highlight the codes in the second tab that matches the 1st one.

Thanks a lot in advance for your help


Can be done simply using conditional formatting,
Copy all the cells that you want to check and open the Conditional
Formatting window.
Use the 'formula is' option and then type in =countif([range],
[criteria])=0 choose the formatting you want and click ok.

Should highlight all the duplicates...
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 formating Paul Excel Discussion (Misc queries) 1 March 31st 08 10:36 AM
conditional formating Miri Excel Discussion (Misc queries) 1 December 18th 07 05:07 PM
conditional formating Miri Excel Discussion (Misc queries) 1 December 18th 07 02:19 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Conditional formating satucha Excel Programming 3 August 25th 05 04:14 PM


All times are GMT +1. The time now is 11:23 AM.

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"