Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default 2 Cols To 2 Cols VLookup Comparison

Can anyone help? Need to know if there is a way to compare 2 cols. to 2
cols. VLookup. Info I have is for 1 col to 1 col. (single col. comparison)
Is there a way to compare multiple cols.?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 210
Default 2 Cols To 2 Cols VLookup Comparison

You can concatenate both columns to form a one to one comparison.
--
http://HelpExcel.com




"CuriousMe" wrote:

Can anyone help? Need to know if there is a way to compare 2 cols. to 2
cols. VLookup. Info I have is for 1 col to 1 col. (single col. comparison)
Is there a way to compare multiple cols.?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 196
Default 2 Cols To 2 Cols VLookup Comparison

Sure is:

Say you have names in col A, ages in col B, and address in col C. In
D1 you have the name of a person, and in E1 you have their age. You
want to know what their address is (ie col C value) from the list. You
can use:

=INDEX($C$1:$C$5,MATCH(1,($A$1:$A$5=D1)*($B$1:$B$5 =E1),0))

(obviously adjust ranges to suit - I have only used 5 cells here).
This is an array formula so must be array-entered (Ctrl+Shift+Enter).

Hope this helps!

Richard



CuriousMe wrote:
Can anyone help? Need to know if there is a way to compare 2 cols. to 2
cols. VLookup. Info I have is for 1 col to 1 col. (single col. comparison)
Is there a way to compare multiple cols.?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default 2 Cols To 2 Cols VLookup Comparison

Thank you for your response...Merry Christmas!!

"galimi" wrote:

You can concatenate both columns to form a one to one comparison.
--
http://HelpExcel.com




"CuriousMe" wrote:

Can anyone help? Need to know if there is a way to compare 2 cols. to 2
cols. VLookup. Info I have is for 1 col to 1 col. (single col. comparison)
Is there a way to compare multiple cols.?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default 2 Cols To 2 Cols VLookup Comparison

Thanks so much...Merry Christmas!

"RichardSchollar" wrote:

Sure is:

Say you have names in col A, ages in col B, and address in col C. In
D1 you have the name of a person, and in E1 you have their age. You
want to know what their address is (ie col C value) from the list. You
can use:

=INDEX($C$1:$C$5,MATCH(1,($A$1:$A$5=D1)*($B$1:$B$5 =E1),0))

(obviously adjust ranges to suit - I have only used 5 cells here).
This is an array formula so must be array-entered (Ctrl+Shift+Enter).

Hope this helps!

Richard



CuriousMe wrote:
Can anyone help? Need to know if there is a way to compare 2 cols. to 2
cols. VLookup. Info I have is for 1 col to 1 col. (single col. comparison)
Is there a way to compare multiple cols.?



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
Lookup Data in two seperate Spreadsheets Padraig Excel Worksheet Functions 6 June 28th 06 03:05 PM
VLOOKUP using another table for comparison values Karen S. Excel Worksheet Functions 3 June 15th 06 09:56 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
Date Comparison with VLookup techiemom60 Excel Worksheet Functions 1 March 26th 06 10:00 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


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