Still baffled by the Intersect operator

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,525
Office Version
  1. 365
Platform
  1. Windows
This table has some data from an analysis of the game of tennis. Row 4 shows the names assigned to each column. Columns D & E are assigned the names PGS_A & PGS_B, which stands for the probability of Player A/B returning a groundstroke. Column F (NumTrials) shows the number of trials (iterations) the simulator ran. Column G (Wins_A) shows the number of wins for Player A. And column H (PR_AA) shows the probability that A will win the point if A goes first.

In each pair of rows, the first row shows the expected values calculated by a formula and the second row shows the results of a computer simulation. I don't know how to draw borders around selected rows, so I separated the pairs with blank rows. These are not in the actual table.

I want to calculate the expected number of wins by multiplying the expected win percentage times the actual number of simulated points.
R/CCDEFGHI
4PGS_APGS_BNumTrialsWins_APR_AAFormulas
5Calc→25%25%24,17920.00%G5: =(NumTrials 6:6)*PR_AA
6Sim→120,89324,16719.99%
7Calc→50%50%833.33%G7: =ROW(G7)+1
8Sim→382,874126,80433.12%
9Calc→75%75%Error42.86%G9: =NumTrials ROW(G9)+1:ROW(G9)+1
10Sim→622,526266,47242.81%
11Calc→90%90%Error47.37%G11: =NumTrials (ROW(G9)+1) : ROW(G9)+1)
12Sim→118,00056,00447.46%

<tbody>
</tbody>

For example, in the first set (rows 5-6), I want to calculate the expected number of wins (G5). The simulator ran 120,893 trials (F6) and the expected win percentage is 20.00% (H5), so the expected number of wins would be H5 x F6. The formula in G5 works. It contains the named range NumTrials, but the literal "6:6". I want an expression that contains no literals other than "G6".

In G7, I show that the expression "=row(G7)+1" returns the correct row number (8), but in G9 and G11, my attempts to use that to replicate G5 all get an error.

Can someone show me the correct way to multiply these values?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Assuming the entire column F is named as NumTrials, try:

=INDEX(NumTrials,ROW(G6))*PR_AA

Perfect. The actual expression I need is,

=INDEX(NumTrials,ROW(G6)+1)*PR_AA

But why don't any of these work?

Code:
=NumTrials (ROW(G9)+1):(ROW(G9)+1)
=NumTrials ((ROW(G9)+1):(ROW(G9)+1))
=NumTrials (ROW(G9)+1 & ":" & ROW(G9)+1)

Otherwise, if you still want to use the intersect, try:

=(NumTrials INDIRECT(ROW(G9)+1&":"&ROW(G9)+1))*PR_AA

I didn't have any requirement that it be Intersect. It just seemed like the logical choice. Your solution is better.

Thanks
 
Upvote 0

Forum statistics

Threads
1,214,628
Messages
6,120,618
Members
448,973
Latest member
ChristineC

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