First of all, I would like to thank you for taking the time to help me out. Here is what I am looking to do:

-I have a table with categories that have a rate value for certain periods (dates) (Given)

-Then I have another(second table) table that have the same categories, start date input , end date input , value cell (formula cell)

-The formula will need to look at the input of the start date and end date (in the second table) and populate the correct value from the first table

-If the duration falls between two period it will need to populate the average of the two.

here is an example below, I hope my explanation made sense.

GIVEN VALUES/LOOK UP TALBE | ||||

CATEGORY | RATES GOOD UP TO 6/30/2017 | RATES GOOD UP TO 6/30/2018 | RATES GOOD UP TO 6/30/2019 | |

A | 20 | 22 | 26 | |

B | 30 | 35 | 40 | |

C | 40 | 45 | 50 | |

D | 50 | 55 | 60 | |

E | 60 | 65 | 70 | |

F | 70 | 75 | 80 | |

G | 80 | 90 | 100 | |

Formula under the value cells will look at the start date and end date then will populate the correct value based on the period it falls in. If the duration falls in two periods it will take the average of the two period | ||||

CATEGORY | VALUE | START DATE | END DATE | Formula under the value cells will do the following |

A | 20 | 4/30/2017 | 5/30/2017 | since the period falls in 6/30/2017 rates it will populate the values for that period |

B | 32.5 | 3/30/2017 | 5/30/2018 | since period falls in two periods 6/30/2017&5/30/2018 formula will average two values |

C | 50 | 7/30/2018 | 4/30/2019 | since the period falls in 6/30/2019 it will populate the values for that period |

<colgroup><col><col span="3"><col></colgroup><tbody>

</tbody>

Thank you very much