Look up Name and select data based on overlapping date ranges

Powderhound Tully

New Member
Joined
Aug 27, 2015
Messages
1
Hi - this is my first time posting here so I hope I get this right. I've read many posts and find this the best forum for excel answers - helped me build a spreadsheet that does more than one of our software providers reports can provide so kudos to MrExcel.com. I need to get nightly rates for numerous properties where the rates vary depending on time of year as well as day of week. Our weekends are generally higher. Some of the rates are easily gotten because the only criteria is the simple date. However, for easy of creation and understanding, we've historically lumped non-consecutive dates with similar rate pricing together, e.g. late January though mid-March which passes over but excludes Presidents' holiday which have very different rates. This creates the challenges.

My objective is to build a formula that looks up the name of the property in its row, e.g. Property A 101, looks at the column it for a date in Row 15 and looks up the name in a table and looks up the date to pull up the correct Nightly Rate. There are at least three and potentially a fourth challenge to doing that. First, I understand because we've historically lumped non-consecutive data together, we may need to consider how we have represented the data to help get at a better solution, i.e. separate out non-consecutive dates, but that takes away from how we think about the date ranges as one set. I would prefer to NOT change how the data is lumped together and just deal with the other three challenges

As we have really only TWO overlapping periods MLK weekend and Presidents' weekend, I was thinking if we changed the non-consecutive date ranges to include the MLK and Presidents' weekends, we could us a max function if the date satisfied both date ranges criteria for dates that fall within either MLK or Presidents' Weekend. Doing that is the first challenge. The second challenge is if a date falls for example between 01/04/16 and 01/15/16. We need to determine if it is a Friday or Saturday vs Sun-Thurs. to get a rate, that is easy with the Weekday function as Friday & Saturday are >=6. However, for MLK and Presidents' weekend. that won't work as for these two Sunday's the rates are higher. Maybe a test that tests if the date falls within BOTH ranges, then we don't need a day of the week test, but if it doesn't, then have a day of the week test.

Your thoughts and solutions much appreciated.

Excel 2012
ABCDEFGHIJKLMNOPQ
1Rate Table
2
3
4Rate season name: WinterEarlyThanksgivingChristmasNew YearsNew YearsJan SpecialMLK WkendFull SeasonFull SeasonPresidents WeekLate SeasonSpring
5Nights included in season11/1-26 & 12/1-12/18/201411/27-30/201312/19-25/201412/26-30/201412/31-01/03/20151/4-16 & 19-22/20151/16-18/20151/23-2/13, 2/20-3/19/2015Weekend2/13-15/20152/16-19/20153/20-4/4/20154/5-30/2015
6Adjustment from Full Season Weekend-20%-20%-15%20%20%-20%-5%10%-10%0%5%-5%-10%-20%-20%
7Applicable Days of WeekallallallallallWeekdays Sun-ThursFri,SatallWeekdays Sun-ThursFri,SatFri,Sat,SunWeekdays Mon-ThursFri,SatWeekdays Sun-Thursall
8
9Property A 101160160170240240160190220180200210190180160160
10Property A 102180180191.25270270180213.75247.5202.5225236.25213.75202.5180180
11
12
13
14
1502/04/1502/05/1502/06/1502/07/1502/08/1502/09/1502/10/1502/11/1502/12/1502/13/1502/14/1502/15/1502/16/1502/17/1502/18/1502/19/15
16Property A 101
17Property A 102

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C9=(1+C$6)*$L9
D9=(1+D$6)*$L9
E9=(1+E$6)*$L9
F9=(1+F$6)*$L9
G9=(1+G$6)*$L9
H9=(1+H$6)*$L9
I9=(1+I$6)*$L9
J9=(1+J$6)*$L9
K9=(1+K$6)*$L9
C10=(1+C$6)*$L10
D10=(1+D$6)*$L10
E10=(1+E$6)*$L10
F10=(1+F$6)*$L10
G10=(1+G$6)*$L10
H10=(1+H$6)*$L10
I10=(1+I$6)*$L10
J10=(1+J$6)*$L10
K10=(1+K$6)*$L10
M9=(1+M$6)*$L9
N9=(1+N$6)*$L9
O9=(1+O$6)*$L9
P9=(1+P$6)*$L9
Q9=(1+Q$6)*$L9
M10=(1+M$6)*$L10
N10=(1+N$6)*$L10
O10=(1+O$6)*$L10
P10=(1+P$6)*$L10
Q10=(1+Q$6)*$L10

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

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