Lookup cell and n cells below - return the average

merchant60b

New Member
Joined
Jul 23, 2018
Messages
5
Hi

I am looking for a way to return the average of multiple cells using a vlookup.

This is in respect of sporting prize money. Where a competitor finishes 1st, they get a set prize in $ and I have set the Vlookup to return this figure where I input 1st as their position.

It gets complicated where more than one competitor tie. For example, where 4 players tie for 15th then the prize for each competitor is the average of the prizes for 15th, 16th, 17th and 18th.

If I was to add a column for the number of people joint in said position, is there a way to return the average of those prizes? i.e. vlookup 15th and the n cells below and return the average, where "n" is a figure that I input into a different cell.

Hoping my table will be as follows:

Competitor/Position/Number joint with/Prize

and the prize table, where the vlookup is taken from being:

Position/Prize

Thanks
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
No problem.

Position - Prize

1 - $100,000
...
15 - $10,000
16 - $9,000
17 - $8,000
18 - $7,000
19 - $6,000
20 - $5,000

So the table will read

Competitor - Position - No. Joint - Prize

Competitor A - 1 - 0 - $100,000
Competitor B - 15 - 3 - $8,500 (being the average of positions 15,16,17,18)
 
Upvote 0

Book1
ABCD
1Positionprize
21100000
3290000
4380000
5470000
6560000
71510000
8169000
9178000
10187000
11196000
12205000
13
14
15CompetitorPositionNo. JointPrize
16
17Competitor A10100000
18Competitor B1538500
19Competitor B2280000
20
Sheet8
Cell Formulas
RangeFormula
D17=AVERAGE(INDEX($B$2:$B$12,MATCH(B17,$A$2:$A$12,0)):INDEX($B$2:$B$12,MATCH(B17,$A$2:$A$12,0)+C17))
 
Upvote 0
ABCD
1Positionprize
21100000
3290000
4380000
5470000
6560000
71510000
8169000
9178000
10187000
11196000
12205000
13
14
15Competitor Position No. Joint Prize
16
17Competitor A 10100000
18Competitor B 1538500
19Competitor B 2280000
20

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet8

Worksheet Formulas
CellFormula
D17=AVERAGE(INDEX($B$2:$B$12,MATCH(B17,$A$2:$A$12,0)):INDEX($B$2:$B$12,MATCH(B17,$A$2:$A$12,0)+C17))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


Brilliant, thanks v much
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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