lynette1978
New Member
- Joined
- Aug 10, 2017
- Messages
- 5
I have the following data.
TAB 1:
[TABLE="width: 196"]
<tbody>[TR]
[TD][/TD]
[TD][TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Location[/TD]
[TD]Month[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]San Diego[/TD]
[TD]Feb-18[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col><col span="2"></colgroup>[/TABLE]
TAB 2:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Location[/TD]
[TD]Season Start[/TD]
[TD]Season End[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]San Diego[/TD]
[TD]10/1/2017[/TD]
[TD]12/31/2017[/TD]
[TD]$153.00[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]San Diego[/TD]
[TD]1/1/2018[/TD]
[TD]7/31/2018[/TD]
[TD]$167.00[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]San Diego[/TD]
[TD]8/1/2018[/TD]
[TD]9/30/2018[/TD]
[TD]$153.00[/TD]
[/TR]
</tbody>[/TABLE]
On TAB 1, in cell C2, I'm trying to pull in the rate from TAB 2, based on the month in TAB 1, cell B2. So in this example, it would pull in the rate of $167.00. I've tried using SUMIFS with ">=", but it pulls in the first rate where the month on TAB 1 is greater than the date in column B on TAB 2. Is there a way to do this?
TAB 1:
[TABLE="width: 196"]
<tbody>[TR]
[TD][/TD]
[TD][TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Location[/TD]
[TD]Month[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]San Diego[/TD]
[TD]Feb-18[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col><col span="2"></colgroup>[/TABLE]
TAB 2:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Location[/TD]
[TD]Season Start[/TD]
[TD]Season End[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]San Diego[/TD]
[TD]10/1/2017[/TD]
[TD]12/31/2017[/TD]
[TD]$153.00[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]San Diego[/TD]
[TD]1/1/2018[/TD]
[TD]7/31/2018[/TD]
[TD]$167.00[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]San Diego[/TD]
[TD]8/1/2018[/TD]
[TD]9/30/2018[/TD]
[TD]$153.00[/TD]
[/TR]
</tbody>[/TABLE]
On TAB 1, in cell C2, I'm trying to pull in the rate from TAB 2, based on the month in TAB 1, cell B2. So in this example, it would pull in the rate of $167.00. I've tried using SUMIFS with ">=", but it pulls in the first rate where the month on TAB 1 is greater than the date in column B on TAB 2. Is there a way to do this?