Combination of an exact lookup and an inexact (TRUE) lookup...

Eslava

Board Regular
Joined
Nov 20, 2007
Messages
112
I have this data set:
Excel Workbook
BCD
6CitySalary% Difference from National
7Akron, OH20,000***
8Akron, OH30,000-1.50%
9Akron, OH40,000-1.40%
10Akron, OH50,000-1.40%
11Akron, OH60,000-1.30%
12Akron, OH70,000-1.40%
13Akron, OH80,000-1.30%
14Akron, OH90,000-1.20%
15Akron, OH100,000-1.20%
16Akron, OH110,000***
17Akron, OH120,000***
18Albany, NY20,0001.40%
19Albany, NY30,000-2.00%
20Albany, NY40,000-3.70%
21Albany, NY50,000-4.10%
22Albany, NY60,000-4.30%
23Albany, NY70,000-4.60%
24Albany, NY80,000-4.50%
25Albany, NY90,000-4.40%
26Albany, NY100,000-4.30%
27Albany, NY110,000***
28Albany, NY120,000***
120K
Excel 2007

I need to find two things: 1) the city and 2) where the incumbent's salary falls in between

in order to find the difference between the national average.

Can this be done???
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
For instance, someone who is making $85,000 in Akron, OH is -1.3% from the national average. Someone who is making $85,000 in Albany, NY is -4.5% from the national average.

Can a formula be applied so that it will automatically pick up where they are from and where their salary falls?
 
Upvote 0
Any luck so far?

I tried INDEX, VLOOKUP, and SUMPRODUCT so far and nothing is working...
 
Upvote 0
Let's say you have a specific city in B2 and salary in C2, try this formula in D2

=LOOKUP(C2,OFFSET(C6,MATCH(B2,B6:B27,0)-1,0,COUNTIF(B6:B27,B2),2))

format D2 as percentage
 
Upvote 0

Forum statistics

Threads
1,215,260
Messages
6,123,926
Members
449,135
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