Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default match two worksheets

Hi there,

I need to match two worksheets and work out what appears in one and
not the other.

The match criteria should be variable. Like I only it to find a match
if the row cells in columns B, C, D, E and S match,

I want to check that whats in Sheet 2 is in sheet 1. there could be
duplicates which is absolutely fine but the macro would need to
consider this. Also I need to check that whats in sheet 2 is in sheet
1.

This will highlight items I do not have in my sheets.....

I hope someone can help.

Thanks so much

Andrea

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default match two worksheets

You don't need a macro.

You could use a formula in a helper cell:

=isnumber(match(1,(b2=sheet1!$b$1:$b$100)
*(c2=sheet1!$c$1:$c$100)
*(d2=sheet1!$d$1:$d$100)
*(e2=sheet1!$e$1:$e$100)
*(s2=sheet1!$s$1:$s$100),0)))

(all in one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.

====
Just a note. These array formulas do a lot of work and can increase calculation
times. Once you get the results (copy down the column) that you need, you may
want to convert those formulas to values.

Then you can apply data|filter|autofilter to see the true (matches) and false
(mismatches) easier.

" wrote:

Hi there,

I need to match two worksheets and work out what appears in one and
not the other.

The match criteria should be variable. Like I only it to find a match
if the row cells in columns B, C, D, E and S match,

I want to check that whats in Sheet 2 is in sheet 1. there could be
duplicates which is absolutely fine but the macro would need to
consider this. Also I need to check that whats in sheet 2 is in sheet
1.

This will highlight items I do not have in my sheets.....

I hope someone can help.

Thanks so much

Andrea


--

Dave Peterson
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
match between worksheets confused!! Excel Discussion (Misc queries) 1 September 10th 09 03:37 AM
How do I set up worksheets to match? DrNick48 Setting up and Configuration of Excel 2 June 22nd 09 08:21 PM
trying to match text in 2 worksheets simpsonehh Excel Worksheet Functions 1 April 9th 09 09:57 PM
How to match to Worksheets דוד מסיקה Excel Worksheet Functions 3 December 29th 08 08:29 AM
Look for match on two worksheets roy.okinawa Excel Worksheet Functions 2 December 16th 05 12:28 AM


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