Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I compare data in 2 workbooks

I have 2 workbooks, In WK1 Data is listed as (First & Last name) in a single
cell. In Wk2 data is listed as (Last & First name) also in a single cell. Now
i need to compare or match entries in both workbooks. I tried VLOOKUP but its
not picking up bcoz the text strings have been transposed.

Pls can anyone help
Tnx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default How do I compare data in 2 workbooks

Hi
You could try this formula to change wk2 data to first & last name presuming
there is a space between names eg
smith john
assuming data in column a

=concatenate(mid(a1,find(" ",a1)+1,len(a1))," ",mid(a1,1,find(" ",a1)-1))
then use vlookup
or in one formula on wk2 presuming data on wk1 on sheet1 column a
=if(isna(vlookup(concatenate(mid(a1,find(" ",a1)+1,len(a1)),"
",mid(a1,1,find(" ",a1)-1)),[wk1]sheet1!a:a,1,false)),"no match","match"))
Hope this helps
Tina

"Mzansi" wrote:

I have 2 workbooks, In WK1 Data is listed as (First & Last name) in a single
cell. In Wk2 data is listed as (Last & First name) also in a single cell. Now
i need to compare or match entries in both workbooks. I tried VLOOKUP but its
not picking up bcoz the text strings have been transposed.

Pls can anyone help
Tnx

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How do I compare data in 2 workbooks

Just general note, sorry;

I looked through many requests like that and found some really good
solutions on how to compare data in Excel spreadsheets. But when I tried some
on very long lists my machine just hungs. I am talking about 5,000 - 50,000
rows in the column. I am wondering if there is any chance to create a VB/VBA
application that compares 10,000 rows in each worksheet?? any info would be
greatly appreciated.
--
just gfish:-)


"tina" wrote:

Hi
You could try this formula to change wk2 data to first & last name presuming
there is a space between names eg
smith john
assuming data in column a

=concatenate(mid(a1,find(" ",a1)+1,len(a1))," ",mid(a1,1,find(" ",a1)-1))
then use vlookup
or in one formula on wk2 presuming data on wk1 on sheet1 column a
=if(isna(vlookup(concatenate(mid(a1,find(" ",a1)+1,len(a1)),"
",mid(a1,1,find(" ",a1)-1)),[wk1]sheet1!a:a,1,false)),"no match","match"))
Hope this helps
Tina

"Mzansi" wrote:

I have 2 workbooks, In WK1 Data is listed as (First & Last name) in a single
cell. In Wk2 data is listed as (Last & First name) also in a single cell. Now
i need to compare or match entries in both workbooks. I tried VLOOKUP but its
not picking up bcoz the text strings have been transposed.

Pls can anyone help
Tnx

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default How do I compare data in 2 workbooks

"gfish" wrote in message
...

Just general note, sorry;

I looked through many requests like that and found some really good
solutions on how to compare data in Excel spreadsheets. But when I tried
some
on very long lists my machine just hungs. I am talking about 5,000 -
50,000
rows in the column. I am wondering if there is any chance to create a
VB/VBA
application that compares 10,000 rows in each worksheet?? any info would
be
greatly appreciated.
--
just gfish:-)


What do you exactly mean when you say
"that compares 10,000 rows in each worksheet"?
Do you mean 10,000 rows in Sheet1 to be compared
with 10,000 rows in Sheet2 in order to chek what?
Cells with the same contents, values in Sheet1 wich
do not exist in Sheet2, or what?
The sheets are in number of two or how many?

Ciao
Bruno


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I compare data in 2 workbooks


yeah, i want to compare like that too! compare a row in sheet1 with a
row in sheet2


--
bangity
------------------------------------------------------------------------
bangity's Profile: http://www.excelforum.com/member.php...o&userid=31078
View this thread: http://www.excelforum.com/showthread...hreadid=489035



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How do I compare data in 2 workbooks

I was talking about really large size spreadsheets. Let's say I have 2
worksheets with 50 columns and 10,000+ rows and I would like to compare
columns "F" in each sheet if they are different. I tried some macros to
compare just Ids (i.e. one column) in 2 different sheets and it worked for
3,000+ rows but did not for 5,000+ rows. The rows were not sorted so I had to
sort them in the script before the comparing. It could take a lot of memory
but in general : are there any limitations on the number of rows being
processed?

p.s. I know how to do that comparison easily in MS Access but unfortunately
our users get outputs more often in the Excel spreadsheets out of Unix and
they are pretty lazy to import spreadsheets into Access.
Hope this clarifies the subject... Is there a way to automate this part??
:-) (importing Excel spreadsheet into MS Access and run a query in VBA??)
--
just gfish:-)


"gfish" wrote:

Just general note, sorry;

I looked through many requests like that and found some really good
solutions on how to compare data in Excel spreadsheets. But when I tried some
on very long lists my machine just hungs. I am talking about 5,000 - 50,000
rows in the column. I am wondering if there is any chance to create a VB/VBA
application that compares 10,000 rows in each worksheet?? any info would be
greatly appreciated.
--
just gfish:-)


"tina" wrote:

Hi
You could try this formula to change wk2 data to first & last name presuming
there is a space between names eg
smith john
assuming data in column a

=concatenate(mid(a1,find(" ",a1)+1,len(a1))," ",mid(a1,1,find(" ",a1)-1))
then use vlookup
or in one formula on wk2 presuming data on wk1 on sheet1 column a
=if(isna(vlookup(concatenate(mid(a1,find(" ",a1)+1,len(a1)),"
",mid(a1,1,find(" ",a1)-1)),[wk1]sheet1!a:a,1,false)),"no match","match"))
Hope this helps
Tina

"Mzansi" wrote:

I have 2 workbooks, In WK1 Data is listed as (First & Last name) in a single
cell. In Wk2 data is listed as (Last & First name) also in a single cell. Now
i need to compare or match entries in both workbooks. I tried VLOOKUP but its
not picking up bcoz the text strings have been transposed.

Pls can anyone help
Tnx

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
Compare data in two different workbooks Dave Eade Excel Discussion (Misc queries) 1 February 24th 10 11:14 AM
How do I compare similar data in two separate workbooks? Excel Workook Data Comparisons Excel Discussion (Misc queries) 2 February 18th 07 07:26 PM
How can I compare data on 2 workbooks Joshua Excel Discussion (Misc queries) 1 June 22nd 05 04:07 PM
how do I compare workbooks for duplicate data mlarson47 Excel Discussion (Misc queries) 1 April 29th 05 07:00 PM
Is there a way to compare data on 2 different workbooks to find m. KcBran Excel Worksheet Functions 1 April 14th 05 10:28 PM


All times are GMT +1. The time now is 10:52 PM.

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"