[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Lookup Result Based on Tabulated Criteria

Posted on 2014-03-24
4
Medium Priority
?
213 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 34

Accepted Solution

by:
Rob Henson earned 2000 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 34

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

873 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