Hi,
I am building a tool that shows me the effective cost per click for a number of clicks based on some pricing tiers...
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Cost From (>=)[/TD]
[TD]Cost To (<)[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl65, width: 69"]Clicks (>=)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 83"]
<tbody>[TR]
[TD="class: xl65, width: 83"]Clicks To (<) [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 49"]
<tbody>[TR]
[TD="class: xl65, width: 49"]CPC[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 65"]
<tbody>[TR]
[TD="class: xl65, width: 65"]Diff. Rate[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]500[/TD]
[TD]0[/TD]
[TD]500[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD]500[/TD]
[TD]900[/TD]
[TD]500[/TD]
[TD]1000[/TD]
[TD]0.80[/TD]
[TD]-0.20[/TD]
[/TR]
[TR]
[TD]900[/TD]
[TD]1250[/TD]
[TD]1000[/TD]
[TD]1500[/TD]
[TD]0.70[/TD]
[TD]-0.10[/TD]
[/TR]
[TR]
[TD]1250[/TD]
[TD]1850[/TD]
[TD]1500[/TD]
[TD]2500[/TD]
[TD]0.60[/TD]
[TD]-0.10[/TD]
[/TR]
[TR]
[TD]1850[/TD]
[TD]1e+99[/TD]
[TD]2500[/TD]
[TD]1e+99[/TD]
[TD]0.40[/TD]
[TD]-0.20[/TD]
[/TR]
</tbody>[/TABLE]
I am successfully able to use sumproduct to work out my recommended budget based on the number of clicks I want to buy. Using the formula below, where the number of clicks is in B10 and the table above is stored in the "data" worksheet.
=SUMPRODUCT(--($B$10>data!$C$2:$C$6),$B$10-data!$C$2:$C$6,data!$F$2:$F$6)
That works great.
But I've hit a brain wall when trying to work backwards from a set budget to work out the number of clicks I would receive based on the table above.
What is the most elegant way this can be achieved?
I am building a tool that shows me the effective cost per click for a number of clicks based on some pricing tiers...
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Cost From (>=)[/TD]
[TD]Cost To (<)[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl65, width: 69"]Clicks (>=)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 83"]
<tbody>[TR]
[TD="class: xl65, width: 83"]Clicks To (<) [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 49"]
<tbody>[TR]
[TD="class: xl65, width: 49"]CPC[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 65"]
<tbody>[TR]
[TD="class: xl65, width: 65"]Diff. Rate[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]500[/TD]
[TD]0[/TD]
[TD]500[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD]500[/TD]
[TD]900[/TD]
[TD]500[/TD]
[TD]1000[/TD]
[TD]0.80[/TD]
[TD]-0.20[/TD]
[/TR]
[TR]
[TD]900[/TD]
[TD]1250[/TD]
[TD]1000[/TD]
[TD]1500[/TD]
[TD]0.70[/TD]
[TD]-0.10[/TD]
[/TR]
[TR]
[TD]1250[/TD]
[TD]1850[/TD]
[TD]1500[/TD]
[TD]2500[/TD]
[TD]0.60[/TD]
[TD]-0.10[/TD]
[/TR]
[TR]
[TD]1850[/TD]
[TD]1e+99[/TD]
[TD]2500[/TD]
[TD]1e+99[/TD]
[TD]0.40[/TD]
[TD]-0.20[/TD]
[/TR]
</tbody>[/TABLE]
I am successfully able to use sumproduct to work out my recommended budget based on the number of clicks I want to buy. Using the formula below, where the number of clicks is in B10 and the table above is stored in the "data" worksheet.
=SUMPRODUCT(--($B$10>data!$C$2:$C$6),$B$10-data!$C$2:$C$6,data!$F$2:$F$6)
That works great.
But I've hit a brain wall when trying to work backwards from a set budget to work out the number of clicks I would receive based on the table above.
What is the most elegant way this can be achieved?