LookUp/Match/Index Not Working

mulholm

New Member
Joined
Jul 2, 2018
Messages
49
I have the following formula:

=(LOOKUP(B3,January!D:D,January!J:J))

B3 = "Agent 3"

The Table i am trying to look form is the following:

[TABLE="width: 909"]
<tbody>[TR]
[TD][TABLE="width: 909"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[/TR]
[TR]
[TD]Location[/TD]
[TD]CSM[/TD]
[TD]Manager[/TD]
[TD]Agent[/TD]
[TD]Conformance %[/TD]
[TD]Adherence %[/TD]
[TD]Inbound Calls[/TD]
[TD]Ave Inb Talk[/TD]
[TD]Ave Inb Hold[/TD]
[TD]Avg Inb Wrap[/TD]
[TD]Inb AHT[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD]Agent 1[/TD]
[TD="align: right"]99.75%[/TD]
[TD="align: right"]97.0%[/TD]
[TD="align: right"]7,740[/TD]
[TD="align: right"]360[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]165[/TD]
[TD="align: right"]525[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD]Agent 2[/TD]
[TD="align: right"]104.26%[/TD]
[TD="align: right"]99.7%[/TD]
[TD="align: right"]68[/TD]
[TD="align: right"]482[/TD]
[TD="align: right"]116[/TD]
[TD="align: right"]208[/TD]
[TD="align: right"]690[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD]Agent 3[/TD]
[TD="align: right"]100.32%[/TD]
[TD="align: right"]97.8%[/TD]
[TD="align: right"]841[/TD]
[TD="align: right"]242[/TD]
[TD="align: right"]38[/TD]
[TD="align: right"]129[/TD]
[TD="align: right"]371[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The formula should return "129" as this is what "Agent 3" Avg Inb Wrap is, however when i run the formula it just returns "Avg Inb Wrap".

Any ideas how this is?
 
Last edited:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
The INDEX(..MATCH()) would be better as you set the Match Type to Exact.
LOOKUP requires the data to be sorted and may still provide incorrect results.
 
Upvote 0
I tried index/match and it returns the same value :(.

Instead of matching row 4 it matches row 1
 
Last edited:
Upvote 0
Try it like
=INDEX(January!A2:K4,MATCH(B3,January!D2:D4,0),10)
 
Upvote 0
Not working either :(

I doesn't seem to be picking up the "Match" part of it.

When I just index it, it worked but row will change so can't use only index
 
Upvote 0
Works for me


Excel 2013/2016
BC
3Agent 3129
Sheet1
Cell Formulas
RangeFormula
C3=INDEX(January!A2:K4,MATCH(B3,January!D2:D4,0),10)




Excel 2013/2016
ABCDEFGHIJK
1LocationCSMManagerAgentConformance %Adherence %Inbound CallsAve Inb TalkAve Inb HoldAvg Inb WrapInb AHT
2XXXAgent 199.75%97.00%7,74036091165525
3XXXAgent 2104.26%99.70%68482116208690
4XXXAgent 3100.32%97.80%84124238129371
January


Are you sure that the contents of B3 are EXACTLY the same as in the table
 
Upvote 0
Yeah :( I honestly don't know why it isn't working. I will try again and see if I can work it out.

Thanks for your help though, I will use it as a reference point.
 
Upvote 0
If you do
=LEN(B3)
=LEN(January!D4)
Where D4 is the cell that should match B3, do you get the same result?
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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