allemanable
New Member
- Joined
- Nov 14, 2014
- Messages
- 8
I have data that shows the amount of earnings earned each quarter by customer on sheet 1
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Quarter[/TD]
[TD]Quarterly Earnings[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]1Q16[/TD]
[TD]$5.00[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]2Q16[/TD]
[TD]$10.00[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]3Q16[/TD]
[TD]$15.00[/TD]
[/TR]
[TR]
[TD]5678[/TD]
[TD]1Q16[/TD]
[TD]$5.00[/TD]
[/TR]
</tbody>[/TABLE]
On sheet 2, data shows
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Earnings Due[/TD]
[TD]Quarters To Be Paid[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]$25.00[/TD]
[TD]??[/TD]
[/TR]
[TR]
[TD]5678[/TD]
[TD]$5.00[/TD]
[TD]??[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to find a formula/macro that will look up customer 1234, find the point at which earnings = $25.00 and bring back the quarter at which point this happens (2Q16). Any suggestions??
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Quarter[/TD]
[TD]Quarterly Earnings[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]1Q16[/TD]
[TD]$5.00[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]2Q16[/TD]
[TD]$10.00[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]3Q16[/TD]
[TD]$15.00[/TD]
[/TR]
[TR]
[TD]5678[/TD]
[TD]1Q16[/TD]
[TD]$5.00[/TD]
[/TR]
</tbody>[/TABLE]
On sheet 2, data shows
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Earnings Due[/TD]
[TD]Quarters To Be Paid[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]$25.00[/TD]
[TD]??[/TD]
[/TR]
[TR]
[TD]5678[/TD]
[TD]$5.00[/TD]
[TD]??[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to find a formula/macro that will look up customer 1234, find the point at which earnings = $25.00 and bring back the quarter at which point this happens (2Q16). Any suggestions??