Index Match Query returning incorrect value

trish123

Board Regular
Joined
Apr 6, 2016
Messages
56
=IFERROR(VLOOKUP(B18,Data!$A$1:$U$289,MATCH($C$16,Data!$A$1:$U$1,1)),"")

The above is the query - the issue is that it is returning the incorrect information. The information that is being returned is being pulled is from another sheet where there is a data validation list, but somehow it is not returning what has been chosen, but another item on the list.

When i drag this query down to other cells it only sees the same item on the list?

Anyone any ideas ??
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
you need to change 1 to 0 for an exact match

=IFERROR(VLOOKUP(B18,Data!$A$1:$U$289,MATCH($C$16,Data!$A$1:$U$1,)0),"")
 
Upvote 0
AlanY thank you for your response on this, but unfortunately that does not work -

Cell B18 is where the user enters the Event ID which will be corresponding to that Event ID from the Data Sheet, based on this ID the corresponding event from the Data sheet will be returned. This event in the data sheet is a drop down list. However my query is not returning the chosen event from that line that would be associated with the event ID. Any ideas
 
Upvote 0
based on your formula
=IFERROR(VLOOKUP(B18,Data!$A$1:$U$289,MATCH($C$16,Data!$A$1:$U$1,1)),"")

Data!$A$1:$U$289 is the lookup table,
MATCH($C$16,Data!$A$1:$U$1,0) use C16 to locate the Column for output

this is a cut down version of yours input/output, is this what you're after

Book1
ABCDEF
1CDEF
221101001000
3D2202002000
4204404004000
58808008000
616160160016000
Sheet1
Cell Formulas
RangeFormula
C3:F6C3=2*C2
A4A4=VLOOKUP(A2,C1:F6,MATCH(A3,C1:F1,0))
 
Upvote 0
Col D now has data validation to Col H; I suppose there is something else you needed

Book1
ABCDEFGH
1CDEF
22110100100010
3D240200200020
440440400400040
5880800800080
616160160016000160
Sheet1
Cell Formulas
RangeFormula
A4A4=VLOOKUP(A2,C1:F6,MATCH(A3,C1:F1,0))
Cells with Data Validation
CellAllowCriteria
D2:D6List=$H$2:$H$6
 
Upvote 0
are you getting the right results you after?
 
Upvote 0
=VLOOKUP(Invoice!B17,Data!A1:U1584,MATCH(Invoice!C16,Data!A1:U1,0))

So this is the Query now, but still no go, on the basis of the above illustration, ei am looking of the return of 40, but 80 is being presented

HELP:eek::eek:
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,597
Members
449,038
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top