Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
d7 d7 is offline
external usenet poster
 
Posts: 6
Default help with a vlookup and index

I am trying to pull a value through i have in sheet 1:-

ab1 october 100
ab1 november 101
az1 november 151
az1 december 152

And in sheet 2 i have:-

ab1 november (need to Return the matching Value) (which is 101)
az1 december (as above) (but 152)



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default help with a vlookup and index

One way

Assume source data as posted in Sheet1's A2:C5

In Sheet2,
you've got these listed in A2:B2 down
ab1 november
az1 december
etc

Place in C2, normal ENTER:
=INDEX(Sheet1!$C$2:$C$5,MATCH(1,INDEX((Sheet1!$A$2 :$A$5=A2)*(Sheet1!$B$2:$B$5=B2),),0))
Copy C2 down to return required results. Adapt the ranges to suit. This
index/match expression is generic, ie it will work even if Sheet1's col C
contains text/mixed data.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---
"d7" wrote:
I am trying to pull a value through i have in sheet 1:-

ab1 october 100
ab1 november 101
az1 november 151
az1 december 152

And in sheet 2 i have:-

ab1 november (need to Return the matching Value) (which is 101)
az1 december (as above) (but 152)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default help with a vlookup and index

another one : -

=INDEX(sheet1!C2:C10,MATCH(sheet2!A2&sheet2!B2,she et1!A2:A10&sheet1!
B2:B10,0),0)

This is an array function use ctrl + shift + enter




On Nov 19, 4:15*pm, d7 wrote:
I am trying to pull a value through i have in sheet 1:-

ab1 * * october 100
ab1 * * november * * * *101
az1 * * november * * * *151
az1 * * december * * * *152

And in sheet 2 i have:-

ab1 * * november (need to Return the matching Value) (which is 101)
az1 * * december (as above) (but 152)


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 vs index Bill Excel Worksheet Functions 2 November 16th 08 04:43 AM
VLOOKUP or maybe INDEX mpenkala Excel Worksheet Functions 2 April 19th 08 05:05 AM
Should I use VLOOKUP? IF? INDEX? Susan Excel Worksheet Functions 4 March 13th 08 02:02 PM
VLOOKUP, INDEX, or ....? Mac Excel Worksheet Functions 1 October 15th 07 12:54 PM
INDEX? VLOOKUP? lloydyleg11 Excel Discussion (Misc queries) 2 November 14th 06 04:35 AM


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