Solved

Excel Lookup Formula

Posted on 2013-12-10
6
256 Views
Last Modified: 2013-12-11
Hello Experts,

In cell c1, I am creating a formula that will reference a % in cell a1 that is pulled from the table below  which is off to the side.  I want the formula to look at cell a1 to see the % but pull the # from the next higher level the %.  For example:  A1 is 50% so in the formula I want to use 75.  Is there are way to do this?

5.0%      50
6.5%      75
7.0%      90
7.5%      110
8.0%      130

Thank you!
0
Comment
Question by:FFNStaff
6 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 39709966
If A1 = 50%, please explain how you would expect the result to be 75.
0
 
LVL 81

Assisted Solution

by:byundt
byundt earned 250 total points
ID: 39710067
The easy way is to offset the second column of your lookup table one row higher. Un other words, the first column is the beginning of the bracket rather than the top.
0.00%      50
5.00%      75
6.50%      90
7.00%      110
7.50%      130
8.00%      to be determined

Your formula might then be:
=VLOOKUP(A1,lookup table,2)

The harder way uses your existing layout:
=INDEX(lookup table column 2, MATCH(A1,lookup table column 1,1)+1)

Either way, you will want to make sure that your lookup table covers all possible values of A1. If not, then wrap your formulas inside IFERROR to return a default value:
=IFERROR(INDEX(lookup table column 2, MATCH(A1,lookup table column 1,1)+1),"not determined")
0
 
LVL 9

Expert Comment

by:guswebb
ID: 39710069
I believe he meant A1 = 5.0% so the result should be 75 (taken from B2).

I'm not clear on what values you are expecting to be in C1 in the first place. Will this column contain a range of values that you want to find a corresponding match for in column A to then pull out a value from column B (adjacent and then one row down)? Will you then want the result of that lookup to appear in column D?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 81

Expert Comment

by:byundt
ID: 39710073
Both the VLOOKUP and INDEX & MATCH formulas are expecting the first column of the lookup table to contain the lowest possible value in each bracket. So you may want to change the percentages to 5.01%, 6.51%, etc.
0
 
LVL 9

Accepted Solution

by:
guswebb earned 250 total points
ID: 39710095
Is the attached file what you want? You will place values in column C which will be subjected to a lookup against column A and your result is posted in column D.
Book1.xlsx
0
 

Author Closing Comment

by:FFNStaff
ID: 39711859
Thank you both for your help!  Your answers worked perfectly.

Pat
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now