Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Vlookup 2 columns - help

Hi,
i am trying to write a lookup function from Col C that looks at Col A and B
and then looks up the match to both cells in a different s/s and returns the
ref #.
Source s/s;
Col A = Band Name
Col B = Manager Name
Col C = reference number
note band name & manager name can appear more than once.
Aim here is result the reference number in Col C.
Thanks
George
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Vlookup 2 columns - help

=INDEX(Sheet2!$C$1:$C$20,MATCH($A1&$B1,Sheet2!$A$1 :$A$20&Sheet2!$B$1:$B$20,0),1)

Entered with Ctrl+shift+enter rather than just enter since this is an array
formula. I assume that the combination of brand name and manager name ties
to only one reference number even it if may appear multiple times in the
lookup sheet.

--
Regards,
Tom Ogilvy


"George" wrote:

Hi,
i am trying to write a lookup function from Col C that looks at Col A and B
and then looks up the match to both cells in a different s/s and returns the
ref #.
Source s/s;
Col A = Band Name
Col B = Manager Name
Col C = reference number
note band name & manager name can appear more than once.
Aim here is result the reference number in Col C.
Thanks
George

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
Vlookup in 4 columns deeds Excel Worksheet Functions 6 June 12th 08 03:19 PM
VLOOKUP for 2 columns or more FC Excel Discussion (Misc queries) 1 June 6th 07 02:20 AM
VLookup in to columns Frederik Excel Worksheet Functions 2 October 26th 06 08:48 PM
Vlookup using two columns Daniel Bonallack Excel Worksheet Functions 3 December 9th 05 07:02 PM
Vlookup with 2 columns Gary H Excel Discussion (Misc queries) 1 May 26th 05 05:09 PM


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