lOOKUP FUNCTION

MARKEGANDERSON

Active Member
Joined
Apr 7, 2007
Messages
267
hELLO ALL-

i am trying use this function:=LOOKUP(C4,Sheet2!$A$2:$A$1285,Sheet2!$L$2:$L$1285)

But my problem is if it does not get a match it still returns a value-

What can i use if it matches "C4" it returns the corresponding valaue in column L?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I tried the below formulas, but it gives me a #N/A error message, even when there is a MAtch

=VLOOKUP(C4,Sheet2!$A$2:$L$1285,12,FALSE)





For this formula-

=LOOKUP(C4,Sheet2!$A$2:$A$1285,11,FALSE)

I get an error message"too many arguments entered for this function"
 
Upvote 0
hELLO ALL-

i am trying use this function:=LOOKUP(C4,Sheet2!$A$2:$A$1285,Sheet2!$L$2:$L$1285)

But my problem is if it does not get a match it still returns a value-

What can i use if it matches "C4" it returns the corresponding valaue in column L?

LOOKUP requires that the match vector is in ascending order. If the match
vector is in ascending order and consists of text, the formula needs a somewhat specific set up, somthing like:

Code:
=IF(LOOKUP(C4,Sheet2!$A$2:$A$1285)=C4,
    LOOKUP(C4,Sheet2!$A$2:$A$1285,Sheet2!$L$2:$L$1285),
    "Not Found")

This is equivalent in behavior to but faster than e.g.

Code:
=INDEX(Sheet2!$L$2:$L$1285,MATCH(C4,Sheet2!$A$2:$A$1285,0))
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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