Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jac Jac is offline
external usenet poster
 
Posts: 58
Default Comparing Multi-Columns of Data in Different Files

hi,

I have 2 files, Files A (old) contained data in below order:-
Brand Type Unit Flag
AA 123 2 Yes
AB 234 No
No

In File B, data are organized in below order:-
Brand Type Unit Flag
AA 123 2

AB 234 3
CC 135 5

What I would like to know is how to compare each value in Brand, Type & Unit
whether they are the same in each file; if they are the same then the Flag
value in File A will be returned; else No will be retruned in File B.

Actually, I have tried out using Vlookup functions but unfortunately, this
function can only compare data in 1 column. So, is there any other functions
that can help in solving this problem?

Thanking in advanced.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default Comparing Multi-Columns of Data in Different Files

in this case an extra column will help you to use vlookup as follow:

file A
A B C D E
1 Brand Type Unit Flag extra column
2 AA 123 2 Yes =A1&B1&C1
3 AB 234 No
4 No

file B
A B C D
E
Brand Type Unit Flag
1 AA 123 2 =vlookup(E1,fileA!E1:E?,1,false) =A1&B1&C1
2 AB 234 3
3 CC 135 5


Hope it works
--
Farhad Hodjat


"Jac" wrote:

hi,

I have 2 files, Files A (old) contained data in below order:-
Brand Type Unit Flag
AA 123 2 Yes
AB 234 No
No

In File B, data are organized in below order:-
Brand Type Unit Flag
AA 123 2

AB 234 3
CC 135 5

What I would like to know is how to compare each value in Brand, Type & Unit
whether they are the same in each file; if they are the same then the Flag
value in File A will be returned; else No will be retruned in File B.

Actually, I have tried out using Vlookup functions but unfortunately, this
function can only compare data in 1 column. So, is there any other functions
that can help in solving this problem?

Thanking in advanced.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Jac Jac is offline
external usenet poster
 
Posts: 58
Default Comparing Multi-Columns of Data in Different Files

Hi, Farhad

Thanks for your reply!
The formula does work but the values in E column are being returned to Flag
clolumn instead of the Flag values. Plus, by using FALSE as the range_lookup
value, once the data does not matched; an error message will be returned
instead of No values from Flag column in File A.
is there any other functions can help to solve these?

Thanks!


"Farhad" wrote:

in this case an extra column will help you to use vlookup as follow:

file A
A B C D E
1 Brand Type Unit Flag extra column
2 AA 123 2 Yes =A1&B1&C1
3 AB 234 No
4 No

file B
A B C D E
Brand Type Unit Flag
1 AA 123 2 =vlookup(E1,fileA!E1:E?,1,false) =A1&B1&C1
2 AB 234 3
3 CC 135 5


Hope it works
--
Farhad Hodjat


"Jac" wrote:

hi,

I have 2 files, Files A (old) contained data in below order:-
Brand Type Unit Flag
AA 123 2 Yes
AB 234 No
No

In File B, data are organized in below order:-
Brand Type Unit Flag
AA 123 2

AB 234 3
CC 135 5

What I would like to know is how to compare each value in Brand, Type & Unit
whether they are the same in each file; if they are the same then the Flag
value in File A will be returned; else No will be retruned in File B.

Actually, I have tried out using Vlookup functions but unfortunately, this
function can only compare data in 1 column. So, is there any other functions
that can help in solving this problem?

Thanking in advanced.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Jac Jac is offline
external usenet poster
 
Posts: 58
Default Comparing Multi-Columns of Data in Different Files

Hi, Farhad

I have got the answer already...
In FileA, the extra column should be on the left of Flag column.

Anyway, thanks for your guidance!



"Jac" wrote:

Hi, Farhad

Thanks for your reply!
The formula does work but the values in E column are being returned to Flag
clolumn instead of the Flag values. Plus, by using FALSE as the range_lookup
value, once the data does not matched; an error message will be returned
instead of No values from Flag column in File A.
is there any other functions can help to solve these?

Thanks!


"Farhad" wrote:

in this case an extra column will help you to use vlookup as follow:

file A
A B C D E
1 Brand Type Unit Flag extra column
2 AA 123 2 Yes =A1&B1&C1
3 AB 234 No
4 No

file B
A B C D E
Brand Type Unit Flag
1 AA 123 2 =vlookup(E1,fileA!E1:E?,1,false) =A1&B1&C1
2 AB 234 3
3 CC 135 5


Hope it works
--
Farhad Hodjat


"Jac" wrote:

hi,

I have 2 files, Files A (old) contained data in below order:-
Brand Type Unit Flag
AA 123 2 Yes
AB 234 No
No

In File B, data are organized in below order:-
Brand Type Unit Flag
AA 123 2

AB 234 3
CC 135 5

What I would like to know is how to compare each value in Brand, Type & Unit
whether they are the same in each file; if they are the same then the Flag
value in File A will be returned; else No will be retruned in File B.

Actually, I have tried out using Vlookup functions but unfortunately, this
function can only compare data in 1 column. So, is there any other functions
that can help in solving this problem?

Thanking in advanced.

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
Comparing columnar data to row data JC Excel Discussion (Misc queries) 3 June 28th 06 01:40 AM
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
Data in table, may need to convert to columns with OFFSET? Ron H Excel Discussion (Misc queries) 5 July 31st 05 06:44 PM
Comparing Data in 2 columns suzb Excel Worksheet Functions 2 January 6th 05 02:39 AM
Comparing data in two columns and highlighting the data David Kinsley Excel Worksheet Functions 6 January 4th 05 06:01 PM


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

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"