Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Excel comparison of two sheets

I have two sheets in one workbook. Each sheet has Column A = Name,
Column B = Address. I need help with either a formula or vba code
that will run a comparison, making sure the addresses are correct or
the same. Sheet 1 would be the 'master' and sheet 2 would be the
secondary sheet. I would think I need something that checks sheet1
name in column A and finds that name in sheet2 then the address...does
that make sense?

The row count are not the same, but is around 1700, give or take in
both sheets.

If I use a formula, do I run the formula or insert it on column C?
Any help would be appriciated.

Thanks...!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Excel comparison of two sheets

Assuming Sheet1 is the master, put this formula in C1 of the secondary sheet:

=IF(ISNA(VLOOKUP(A1,Sheet1!A:B,2,FALSE)),"name not found",
IF(VLOOKUP(A1,Sheet1!A:B,2,FALSE)=B1, "Matched", "Not Matched"))

Then copy-paste or fill-down to the last row of data.



" wrote:

I have two sheets in one workbook. Each sheet has Column A = Name,
Column B = Address. I need help with either a formula or vba code
that will run a comparison, making sure the addresses are correct or
the same. Sheet 1 would be the 'master' and sheet 2 would be the
secondary sheet. I would think I need something that checks sheet1
name in column A and finds that name in sheet2 then the address...does
that make sense?

The row count are not the same, but is around 1700, give or take in
both sheets.

If I use a formula, do I run the formula or insert it on column C?
Any help would be appriciated.

Thanks...!


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
Automatic comparison and uploading of data among 2 spread sheets excel spread sheet New Users to Excel 0 December 6th 06 01:23 PM
creating matching lists between sheets for comparison Chris Shaw[_4_] Excel Programming 1 October 27th 06 07:09 PM
Comparison of 2 excel sheets and put ouput in a 3rd sheet Hanson Excel Programming 1 July 27th 06 05:30 PM
Comparison / Check Off between 2 excel sheets. HELP NEEDED! sax30 Excel Worksheet Functions 8 April 28th 05 09:13 AM
Comparison or two sheets Chuck[_10_] Excel Programming 1 April 15th 05 06:24 AM


All times are GMT +1. The time now is 03:17 AM.

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"