Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Provider98122
 
Posts: n/a
Default how do I compare columns in two different workbooks?

I need to compare the information in one column of an excel workbook to
another column of an excel workbook. Then need the system to report match or
non-match.

Thanks
  #2   Report Post  
tjtjjtjt
 
Posts: n/a
Default

What exactly do you mean by a match? For example:
If we are using cells A1:A10 and B1:B10, would be a match if the number '5'
appeared in A1 and B5? Or, would the number '5' have to appear in A1 and B1
to constitute a match?

If the match can be anywhere in the second column, this might do it:
=IF(ISNA(VLOOKUP(A1,$B$1:$B$10,1,0)),"No Match","Match")

If the match has to be in the same location:
=IF(A1=B1,"Match","No Match")

In both cases, copy down as far as needed.

tj

"Provider98122" wrote:

I need to compare the information in one column of an excel workbook to
another column of an excel workbook. Then need the system to report match or
non-match.

Thanks

  #3   Report Post  
tjtjjtjt
 
Posts: n/a
Default

The title of your message got cut off on my machine--tghe methods I posted
won't work from one file to another. Sorry about that.

tj

"Provider98122" wrote:

I need to compare the information in one column of an excel workbook to
another column of an excel workbook. Then need the system to report match or
non-match.

Thanks

  #4   Report Post  
Sharon
 
Posts: n/a
Default

I am doing something where I am comparing Column S to Column A. I used the
formula you provided, but I don't want it to say "Match" or "No Match". I
want it to say whatever is in the cell (the date). What would I do to make
it return the value of the cell?

Here's my modified version:
=IF(ISNA(VLOOKUP(Sheet1!S3,Sheet1!$A$3:$A$400,1,0) ),"No Match","Match")

Also, if the date does match, I want to return columns T-AI on Sheet1 in
columns T-AI on Sheet2 that correspond to the cell that it matched.

Example:
Sheet1
Columns
A B C ......... S T U
10/1 R Y 9/29 R G
10/2 G G 10/2 R R

Sheet2 would return:
Columns
A B C ......... S T U
10/2 R R

Thanks,

Sharon


"tjtjjtjt" wrote:

What exactly do you mean by a match? For example:
If we are using cells A1:A10 and B1:B10, would be a match if the number '5'
appeared in A1 and B5? Or, would the number '5' have to appear in A1 and B1
to constitute a match?

If the match can be anywhere in the second column, this might do it:
=IF(ISNA(VLOOKUP(A1,$B$1:$B$10,1,0)),"No Match","Match")

If the match has to be in the same location:
=IF(A1=B1,"Match","No Match")

In both cases, copy down as far as needed.

tj

"Provider98122" wrote:

I need to compare the information in one column of an excel workbook to
another column of an excel workbook. Then need the system to report match or
non-match.

Thanks

  #5   Report Post  
tjtjjtjt
 
Posts: n/a
Default

I'm not sure I understand what you are asking. If the below options don't
help you get the answer you are looking for, please post back with step by
step instructions as to what you are looking for. It's time for me to retire
for the evening, but I will check back tomorrow to make sure you ulitimately
received a satisfactory answer.

If you want to check for a match and return the date only if there is a match:
=IF(ISNA(VLOOKUP(Sheet1!S3,Sheet1!$A$3:$A$400,1,0) ),"No
Match",VLOOKUP(Sheet1!S3,Sheet1!$A$3:$A$400,1,0))

**I typed this formula here manually. If it malfunctions, it's probably
because I left out a parentheses**

As for the sheet2 and sheet1 issue, I don't know what cell in column T you
started with, so I assumed T3 only because it matches S3 in the other formula:
If you want to return Columns T-AI only if the value in Column S matches any
value in Column S, then put this in T3 on Sheet2:

IF(ISNA(VLOOKUP(Sheet1!S3,Sheet1!$A$3:$A$400,1,0)) ,"",Sheet1!T3)

Copy this over to AI. Copy down as far as needed as well.

Here is where I'm a bit confused with your post:

I am doing something where I am comparing Column S to Column A. I used the
formula you provided, but I don't want it to say "Match" or "No Match". I
want it to say whatever is in the cell (the date). What would I do to make
it return the value of the cell?


What do you mean by 'whatever is in the cell'? You want to return some value
even if there isn't a match? If so, the value from what cell?

To be clear, can S3 match any value in A3:A400? Or does it have to match A3?
The answer to this question may make a different approach to the one I am
taking a better option.

tj


  #6   Report Post  
Sharon
 
Posts: n/a
Default

Thanks for your response. I will try to implement what you've suggested so
far and see if it works.

Sorry for the confusion. By "whatever" I meant whatever value is in the
cell, should be returned. It might say "red", "green", "yellow", "no", or it
might contain a date.

Also, the matching that I'm wanting to accomplish is looking for a date in
column S and if it is anywhere in Column A, then return the date value from
column s on sheet 2. The corresponding columns T-AI would be for the same
row as where the date came from in Column S. I hope that makes sense.

I'll post again in a new thread tomorrow if I can't get it to work.

Thanks again,

Sharon

"tjtjjtjt" wrote:

I'm not sure I understand what you are asking. If the below options don't
help you get the answer you are looking for, please post back with step by
step instructions as to what you are looking for. It's time for me to retire
for the evening, but I will check back tomorrow to make sure you ulitimately
received a satisfactory answer.

If you want to check for a match and return the date only if there is a match:
=IF(ISNA(VLOOKUP(Sheet1!S3,Sheet1!$A$3:$A$400,1,0) ),"No
Match",VLOOKUP(Sheet1!S3,Sheet1!$A$3:$A$400,1,0))

**I typed this formula here manually. If it malfunctions, it's probably
because I left out a parentheses**

As for the sheet2 and sheet1 issue, I don't know what cell in column T you
started with, so I assumed T3 only because it matches S3 in the other formula:
If you want to return Columns T-AI only if the value in Column S matches any
value in Column S, then put this in T3 on Sheet2:

IF(ISNA(VLOOKUP(Sheet1!S3,Sheet1!$A$3:$A$400,1,0)) ,"",Sheet1!T3)

Copy this over to AI. Copy down as far as needed as well.

Here is where I'm a bit confused with your post:

I am doing something where I am comparing Column S to Column A. I used the
formula you provided, but I don't want it to say "Match" or "No Match". I
want it to say whatever is in the cell (the date). What would I do to make
it return the value of the cell?


What do you mean by 'whatever is in the cell'? You want to return some value
even if there isn't a match? If so, the value from what cell?

To be clear, can S3 match any value in A3:A400? Or does it have to match A3?
The answer to this question may make a different approach to the one I am
taking a better option.

tj

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
what is the maximum columns I can have on an excel workbook Zee Excel Worksheet Functions 4 February 12th 05 08:54 PM
How do I compare two columns on seperate sheets and replace text . hag400 Excel Worksheet Functions 1 December 28th 04 02:32 PM
Compare Columns Michael Nesi Excel Discussion (Misc queries) 1 December 6th 04 08:45 PM
Compare two columns Need Helper Excel Discussion (Misc queries) 3 December 4th 04 03:08 AM
compare columns of different worksheets Classic Excel Discussion (Misc queries) 2 December 2nd 04 10:09 PM


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