Lookup Help

RLJ

Active Member
Joined
Mar 15, 2011
Messages
417
Office Version
  1. 365
Platform
  1. Windows
=INDEX(J3:J54,MATCH(L2,C3:I54,0))

I'm having a problem with the C3:I54 range on this formula. I'm guessing that MATCH may not be what I want. I need to return the value in J3:J54 from looking up whats in L2 in the C3:I54 range.

Thanks for your help. I always appreciate it.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try and flip those arrays around, try this:

Code:
[COLOR=#333333]=INDEX(C3:J54,MATCH(L2,[/COLOR][COLOR=#ff0000]C3:C54[/COLOR][COLOR=#333333],0),10)[/COLOR]

But if you are saying your match value can be anywhere in columns C:I then I am not sure off hand.
 
Upvote 0
It did not work. Yes the match value can be anywhere in Columns C:I.
 
Upvote 0
i dont think you can use match when both dimensions of the lookup range is greater than 1 cell...

match returns the position in the range it found the lookup value... it only returns a single number and to lookup a value in a 2 dimensional table you need 2 numbers to describe its position so you need to adjust your lookup range to be y * 1 in size
 
Last edited:
Upvote 0
=INDEX(J3:J54,MATCH(L2,C3:I54,0))

I'm having a problem with the C3:I54 range on this formula. I'm guessing that MATCH may not be what I want. I need to return the value in J3:J54 from looking up whats in L2 in the C3:I54 range.

Thanks for your help. I always appreciate it.

Hi!

Try the Array Formula below:

Use Ctrl+Shift+Enter to enter the formula

=LOOKUP(1,1/MMULT(--(L3=C3:I54),TRANSPOSE(COLUMN(C3:I3)/COLUMN(C3:I3))),J3:J54)

Or

=IFERROR(LOOKUP(1,1/MMULT(--(L3=C3:I54),TRANSPOSE(COLUMN(C3:I3)/COLUMN(C3:I3))),J3:J54),"")

Or the normal formula (use Enter to enter the formula) below

=IFERROR(LOOKUP(1,INDEX(1/MMULT(--(L3=C3:I54),{1;1;1;1;1;1;1}),),J3:J54),"")


Markmzz
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,262
Messages
6,123,935
Members
449,134
Latest member
NickWBA

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