chrisrick1
New Member
- Joined
- May 26, 2015
- Messages
- 3
I have two tables, the first [TableData] is used to show the how much energy has been used on a given date, and the second [TableCharges] is used to show what the rate is per kWh.
[TableData] has multiple columns, but the relevant ones are [Date]; [Usage]; and [Rate]. [TableCharges] has three columns [StartDate]; [EndDate]; [Rate].
For each row, I want the cell under [TableData[Rate]] to return the [TableCharges[Rate]] where the the lookup value is [TableData[Date]] and it is looking for a match where the [TableData[Date]]>=[TableData[StartDate]] AND [TableData[Date]]<=[TableData[EndDate]].
Ideally I would like to resolve this using a excel formula instead of VBA if possible.
Any help would be appreciated.
Thanks
[TableData] has multiple columns, but the relevant ones are [Date]; [Usage]; and [Rate]. [TableCharges] has three columns [StartDate]; [EndDate]; [Rate].
For each row, I want the cell under [TableData[Rate]] to return the [TableCharges[Rate]] where the the lookup value is [TableData[Date]] and it is looking for a match where the [TableData[Date]]>=[TableData[StartDate]] AND [TableData[Date]]<=[TableData[EndDate]].
Ideally I would like to resolve this using a excel formula instead of VBA if possible.
Any help would be appreciated.
Thanks