Average from another sheet if row contains

davedarave1

New Member
Joined
Oct 10, 2017
Messages
3
Morning,

I have a (1st) sheet that I am trying to take average number of km ran by each individual in my team aday ( data on second sheet). How can I get it to look up the second sheet and only count data from the row if it contains their name. Both sheets contain their name, but are in different orders(I don't want to change the order)

Thank you in advance
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi, welcome to the forum!

Something like this?


Excel 2013/2016
AB
1NameAvg
2John8.333333
3Jim5.5
Sheet1
Cell Formulas
RangeFormula
B2=AVERAGEIFS(Sheet2!B:B,Sheet2!A:A,A2)



Excel 2013/2016
AB
1Namekm
2John5
3Fred10
4John15
5Jim1
6Adam55
7John5
8Jim10
Sheet2
 
Upvote 0
Thank you for your quick response. Sheet two goes from B to V(one cell per day). How can I integrate all of these?
 
Upvote 0
Thank you for your quick response. Sheet two goes from B to V(one cell per day). How can I integrate all of these?

Does each person only have one row each on sheet 2?
 
Upvote 0
is it possible to have same formula for all

Hi, yes - you can try like this..:


Excel 2013/2016
AB
1NameAvg
2John6.428571
3Jim6.333333
Sheet1
Cell Formulas
RangeFormula
B2=AVERAGE(INDEX(Sheet2!B:V,MATCH(A2,Sheet2!A:A,0),0))




Excel 2013/2016
ABCDEFGHI
1NameDay 1Day 2Day 3Day 4Day 5Day 6Day 7Day 8
2John56859694
3Jim710911929
4Fred45533897
5Adam77155774
6Sally10107510275
Sheet2
 
Upvote 0

Forum statistics

Threads
1,215,287
Messages
6,124,075
Members
449,140
Latest member
SheetalDixit

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