[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
Solved

# Lookup Result Based on Tabulated Criteria

Posted on 2014-03-24
Medium Priority
205 Views
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
Question by:davidascott
[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
• 2
• 2

Author Comment

ID: 39950922
Sorry - see workbook attached.
Workbook.xlsx
0

LVL 33

Accepted Solution

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 33

Expert Comment

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

ID: 39951093
thanks rob
0

## Featured Post

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
###### Suggested Courses
Course of the Month13 days, 16 hours left to enroll