Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
moremetrics
 
Posts: n/a
Default Compare 2 columns & format row


I am not sure which function to use - vlookup, countif, or match. Can
someone help?

File #1 - column A: list of values (values & # of rows change daily)
column T: blank

File #2 - column A: list of values (value & # of rows change daily)

If a value in File #1 column A is found anywhere in File #2 column A, I
would like to color the corresponding row in File #1 blue and put an X
in File #1 column T. The color is actually something that would be
nice but not required.

Thanks in advance for any help!!!

Lia


--
moremetrics
------------------------------------------------------------------------
moremetrics's Profile: http://www.excelforum.com/member.php...o&userid=23537
View this thread: http://www.excelforum.com/showthread...hreadid=381357

  #2   Report Post  
bj
 
Posts: n/a
Default

in T1 file 1 enter

=if(not(iserror(match(a1,[file 2]sheet1!A:A,0)),"X","") and copy down to the
end of the data
select all in File 1
in conditional formating
formula is =$T1="X"
and set your formating
note you may have to go back into conditional formating a time or two to
make sure there are not extra Quote marks and that relative formating is
correct. I don't know why it gets goofed up sometimes, but it alwasys has
for me.

"moremetrics" wrote:


I am not sure which function to use - vlookup, countif, or match. Can
someone help?

File #1 - column A: list of values (values & # of rows change daily)
column T: blank

File #2 - column A: list of values (value & # of rows change daily)

If a value in File #1 column A is found anywhere in File #2 column A, I
would like to color the corresponding row in File #1 blue and put an X
in File #1 column T. The color is actually something that would be
nice but not required.

Thanks in advance for any help!!!

Lia


--
moremetrics
------------------------------------------------------------------------
moremetrics's Profile: http://www.excelforum.com/member.php...o&userid=23537
View this thread: http://www.excelforum.com/showthread...hreadid=381357


  #3   Report Post  
moremetrics
 
Posts: n/a
Default


This worked perfectly. I REALLY appreciate it!


--
moremetrics
------------------------------------------------------------------------
moremetrics's Profile: http://www.excelforum.com/member.php...o&userid=23537
View this thread: http://www.excelforum.com/showthread...hreadid=381357

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 do I Compare worksheet columns dannix54 Excel Worksheet Functions 8 May 9th 05 02:26 AM
compare two columns and remove duplicates Moni39 Excel Worksheet Functions 3 May 5th 05 06:08 PM
can't insert columns between columns smooth operator Excel Discussion (Misc queries) 1 May 1st 05 10:53 PM
format columns to collapse and expand in excel bob sacco Excel Discussion (Misc queries) 7 April 23rd 05 02:29 AM
compare columns of different worksheets Classic Excel Discussion (Misc queries) 2 December 2nd 04 10:09 PM


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