Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
mary s
 
Posts: n/a
Default Compare Data in two Separate Worksheets

I have two different data lists that I need to compare to see if information
from one list also appears in the second. The unique identifier (similar to
a social security number) appears in column C of both spreadsheets. Is there
any way that I can write a formula that will give me an output of "Yes" if
the data appears in spreadsheet 1 but not in spreadsheet 2?
  #3   Report Post  
Posted to microsoft.public.excel.misc
scraig
 
Posts: n/a
Default Compare Data in two Separate Worksheets

you can try the vlookup function. it will pull the data from one sheet and
match it up to the second sheet. on one of the sheets insert a blank column
next to column c (if this is the column that has the common factor on both
sheets). click in a cell in column d. go to 'insert' then function. under
category select all and find 'vlookup'. select it.

Lookup value - this is your common factor which i believe is column c.
select a cell from column c.

table array - select the second sheet. find the column that has the
information you
want to pull over to the first sheet. click, hold and highlight that column
and drag over to the column with your common factor.

col_index_num - this is a little tricky. on the second sheet your common
factor column is considered column 1 because it was the furthest left column.
from column c you have to count by column until you get to the column with
the information you want to pull in. for exampl if column g was the info you
wanted to pull in then your col_index_num is 4 because g is 4 columns over
from c.

range lookup is always going to be false.

it should have pulled in your info from sheet two and placed it in sheet
one, column d, whatever cell you were originally in. you can copy and paste
the formula into all of the other cells in column d.

fyi - when you use a function like this it shows the cells saved as the
entire formula which make syour spreadsheet massive. once you copy the
formula into all of your cells go ahead and highlight the entire column and
copy then paste special values. this will minimize your file size.

hope this helps!!!!







"mary s" wrote:

I have two different data lists that I need to compare to see if information
from one list also appears in the second. The unique identifier (similar to
a social security number) appears in column C of both spreadsheets. Is there
any way that I can write a formula that will give me an output of "Yes" if
the data appears in spreadsheet 1 but not in spreadsheet 2?

  #4   Report Post  
Posted to microsoft.public.excel.misc
mary s
 
Posts: n/a
Default Compare Data in two Separate Worksheets

This didn't work as well as i had hoped. Is there a way that I can use Excel
to look at both columns in their entirety to tell me if there is a value
missing from one spreadsheet to the next? If my items are in a different
order from one spreadsheet to the next, this doesn't appear to be very
helpful.

"scraig" wrote:

you can try the vlookup function. it will pull the data from one sheet and
match it up to the second sheet. on one of the sheets insert a blank column
next to column c (if this is the column that has the common factor on both
sheets). click in a cell in column d. go to 'insert' then function. under
category select all and find 'vlookup'. select it.

Lookup value - this is your common factor which i believe is column c.
select a cell from column c.

table array - select the second sheet. find the column that has the
information you
want to pull over to the first sheet. click, hold and highlight that column
and drag over to the column with your common factor.

col_index_num - this is a little tricky. on the second sheet your common
factor column is considered column 1 because it was the furthest left column.
from column c you have to count by column until you get to the column with
the information you want to pull in. for exampl if column g was the info you
wanted to pull in then your col_index_num is 4 because g is 4 columns over
from c.

range lookup is always going to be false.

it should have pulled in your info from sheet two and placed it in sheet
one, column d, whatever cell you were originally in. you can copy and paste
the formula into all of the other cells in column d.

fyi - when you use a function like this it shows the cells saved as the
entire formula which make syour spreadsheet massive. once you copy the
formula into all of your cells go ahead and highlight the entire column and
copy then paste special values. this will minimize your file size.

hope this helps!!!!







"mary s" wrote:

I have two different data lists that I need to compare to see if information
from one list also appears in the second. The unique identifier (similar to
a social security number) appears in column C of both spreadsheets. Is there
any way that I can write a formula that will give me an output of "Yes" if
the data appears in spreadsheet 1 but not in spreadsheet 2?

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
Excel: How to choose data on two separate rows in the same column RicardoE Excel Worksheet Functions 2 February 24th 06 12:41 AM
Can you combine data from 2 worksheets into 1 chart? BP Charts and Charting in Excel 1 November 11th 05 12:53 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
How do I compare 2 sets of data and highlight differences? Perplexed1 Excel Worksheet Functions 1 July 9th 05 01:15 AM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM


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