?
Solved

Fixing =Lookup

Posted on 2013-05-14
9
Medium Priority
?
178 Views
Last Modified: 2013-05-14
EE Pros,

I have a problem with Lookup.  I've attached the sheet I'm trying to do the function with.  For some reason it will not work in cells L41, M41, N41 and I cannot figure out why.



Please see if there is "a tweek" to fix this.

Thank you in advance,

B.
Lookup-fix.xlsm
0
Comment
Question by:Bright01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
9 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39167060
Lookup requires the looked up list to be in ascending order else the results would be unpredictable.
0
 

Author Comment

by:Bright01
ID: 39167070
I think there is a way around that using v or h lookup and a False reading..............

any idea?

B.
0
 

Author Comment

by:Bright01
ID: 39167073
The data changes and is random so I cannot simply sort the field once and rely that it is always assending.  Which field has to be assending?
B.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 800 total points
ID: 39167074
Try match combined with index
0
 
LVL 81

Accepted Solution

by:
byundt earned 1200 total points
ID: 39167103
Following Saqibh's advice, your formula in cell L32 would be:
=INDEX(D$3:D$27,MATCH($I32,$G$3:$G$27,0))         may be copied down and across

And in L41:
=INDEX(D$3:D$27,MATCH($I41,$H$3:$H$27,0))
0
 

Author Comment

by:Bright01
ID: 39167104
how?  is match a function?  how do you combine it with index?  can you use the sheet I sent to show me?

b
0
 

Author Comment

by:Bright01
ID: 39167105
got it.  ty byundt...let me try it
0
 
LVL 81

Assisted Solution

by:byundt
byundt earned 1200 total points
ID: 39167108
As a general rule, you are better off using INDEX & MATCH, VLOOKUP or HLOOKUP when an exact match is required.

LOOKUP is on the Microsoft payroll for historical reasons primarily. It still has specialized applications when you want the last occurrence of a text or numeric value, perhaps with one or more criteria. But you will frequently get into trouble if trying to use it for ordinary VLOOKUP type problems because LOOKUP in such situations requires the data to be sorted in ascending order and will return an answer even if there is no exact match. VLOOKUP and MATCH are better behaved in such circumstances.
0
 

Author Closing Comment

by:Bright01
ID: 39167121
Brilliant!  Thank you.  And learned something new on Indexing and Matching.

Thank you very much!

B.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question