Solved

Lookup Result Based on Tabulated Criteria

Posted on 2014-03-24
4
177 Views
Last Modified: 2014-03-24
I am trying to to create a look up formula that takes the number of beds for a hotel and then looks up the relevant hotel licence cost as indicated in the attached spreadsheet.

For the banding, assume that as soon as the banding threshold is reach e.g. 100 then that next banding shall apply.

Can anyone help?
0
Comment
Question by:davidascott
  • 2
  • 2
4 Comments
 

Author Comment

by:davidascott
ID: 39950922
Sorry - see workbook attached.
Workbook.xlsx
0
 
LVL 31

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 39950975
In cell B5 put the following formula:

=VLOOKUP($D$5,$F$5:$G$14,2,1)

The VLOOKUP has four parameters:

Lookup Value
Lookup Range
Offset
Lookup Type

Setting LookupType to 1 gives an approximate match. This means that it returns the last value at which the lookup value is less than or equal to the value in the lookup column, assuming the lookup column is sorted in ascending order.

Hope that makes sense.

Thanks
Rob H
0
 
LVL 31

Expert Comment

by:Rob Henson
ID: 39950981
In your example, what happens for less than 100 beds?

If this could occur, you will need an extra row at the top of your table for the range 0 to 99.

Thanks
Rob H
0
 

Author Comment

by:davidascott
ID: 39951093
thanks rob
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

705 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

18 Experts available now in Live!

Get 1:1 Help Now