Pick up applicable rate

th081

Board Regular
Joined
Mar 26, 2006
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have two sheets in my spreadsheet, one contains dates, codes and product rates as below:

DateProduct CodePrice
01/04/2011​
BADE23
26/07/2011​
BADE23.7
01/04/2012​
BADE24
01/04/2013​
BADE24
01/04/2014​
BADE28
01/04/2015​
BADE29
01/04/2016​
BADE27
01/04/2017​
BADE30
01/04/2018​
BADE33
01/04/2019​
BADE35
01/04/2020​
BADE36
01/10/2021​
BADE36.8
01/04/2021​
BADE36.9
01/04/2009​
CDGE15
01/04/2021​
CDGE15.1
01/04/2015​
EYUT120
01/04/2016​
EYUT125
01/04/2017​
EYUT130
01/04/2018​
EYUT131
01/04/2019​
EYUT130
01/09/2020​
EYUT135
01/04/2021​
EYUT142


In a separate sheet i have dates for a whole year i.e 01/01/2011 to 31/12/2011, how do i lookup and get the rate that was applicable on a particular date? A rate is applicable up to the date a new rate goes live so the product BADE would have the rate 23 from 01/04/11 to 25/06/11 of 23 and then from 26/07/11 the rate will be 23.7 until 31/03/12

Regards

TH081
 

th081

Board Regular
Joined
Mar 26, 2006
Messages
62
Office Version
  1. 365
Platform
  1. Windows
That was a typo on my part, the dates will be in ascending order with each product code.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,669
Office Version
  1. 365
Platform
  1. Windows
Thanks for letting us know. (y)
 

Forum statistics

Threads
1,141,867
Messages
5,709,086
Members
421,614
Latest member
RAB29

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
Top