Point at which a range of cells equals specified value

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
CustomerQuarterQuarterly Earnings
12341Q16$5.00
12342Q16$10.00
12343Q16$15.00
56781Q16$5.00

<tbody>
</tbody>







On sheet 2, data shows
CustomerEarnings DueQuarters To Be Paid
1234$25.00??
5678$5.00??

<tbody>
</tbody>
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??
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I have data that shows the amount of earnings earned each quarter by customer on sheet 1
CustomerQuarterQuarterly Earnings
12341Q16$5.00
12342Q16$10.00
12343Q16$15.00
56781Q16$5.00

<tbody>
</tbody>







On sheet 2, data shows
CustomerEarnings DueQuarters To Be Paid
1234$25.00??
5678$5.00??

<tbody>
</tbody>
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??

Sheet1:

D2=SUMIF($A$2:A2,A2,$C$2:C2) drag down


Sheet2:

C2=INDEX(Sheet1!$B$2:$B$5,MATCH($A2,Sheet1!$A$2:$A$5,0)+MATCH($B2,OFFSET(Sheet1!$D$1,MATCH($A2,Sheet1!$A$2:$A$5,0),0,COUNTIF(Sheet1!$A$2:$A$5,$A2),1),1)-1)
 
Upvote 0

Forum statistics

Threads
1,215,221
Messages
6,123,701
Members
449,117
Latest member
Aaagu

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
Back
Top