Solved

excel 2007 - i have two columns A and B and i would like to compare if any row which included A and B are existing in other spreadsheet in same columns aA and B

Posted on 2014-10-11
2
86 Views
Last Modified: 2014-10-14
what is the script for comparing columns A and B in one sheet with other sheet also same columns A AND B

thanks
Gvilbis
0
Comment
Question by:gvilbis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Assisted Solution

by:Haris Djulic
Haris Djulic earned 250 total points
ID: 40375153
Hello,

as I understand you want to check if value in row with two columns exist in another sheet . You can use VLOOKUP bu t you need to create new column which you will use to compare.

Steps:

1. In sheet where you want the results cell C1 je add this formula : =+CONCATENATE(A2;B2) - strech this formula to all rows
2. n sheet where you have the values to check in the cell C1 je add this formula : =+CONCATENATE(A2;B2)  - strech this formula to all rows
3. In sheet where you want  in thecell D1 you add this formula: =+VLOOKUP(C2;Sheet2!C:C;1;FALSE)

I attached the example excel file..
Book1.xlsx
0
 
LVL 26

Accepted Solution

by:
ProfessorJimJam earned 250 total points
ID: 40375220
hello,

I bet you may not  find a better solution with VBA other the code attached.

code was wirrten by Excel MVP JoeMo.

run the macro called CompareSheets2 and then it will follow along.
F--File.xlsm
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question