Average

jackdiamond

Board Regular
Joined
Oct 10, 2007
Messages
220
Hi,

Is there anyone out there that could help me with a formula for the following please?

I need to find an average for "Richard Harris" of entries made over 3 batches of product in 4 different areas.

eg

CELL A............CELL B..........CELL C.........CELL D..........CELL E
BATCH 1
Name.............area 1...........area 2..........area 3..........area 4
John Terry........10................20...............30...............10
Richard Harris....12................10...............60...............12

BATCH 2
Name.............area 1...........area 2..........area 3..........area 4
John Terry........10................20...............30...............10
Richard Harris....12................10...............60...............12

BATCH 3
Name.............area 1...........area 2..........area 3..........area 4
John Terry........10................20...............30...............10
Richard Harris....12................10...............60...............12

I hope someone can help!

Also, how can I copy and paste what I have on my excel screen so it looks like how it should when I paste it here?

Thanks
Stu
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

al_b_cnu

Well-known Member
Joined
Jul 18, 2003
Messages
4,526
Hi,

Try something like =SUMIF(A:A,"Richard Harris",B:B)/COUNTIF(A:A,"Richard Harris")

I use HTMLMaker to post Excel sheet images on the board.
 

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
892
Office Version
  1. 365
Platform
  1. Windows
Stu, do you want an average for each area or an overall average?

Mel
 

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
892
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Try this: =Average(cell ref1, cell ref2, cell ref3 etc etc)

Mel
 

jackdiamond

Board Regular
Joined
Oct 10, 2007
Messages
220
Thanks Mel but I need it to be more complicated than that.

Sometimes the names will be in a different order so I need something that will look up the names and the the column reference....

Hope this makes sense
 

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
892
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Sorry, I didn't understand that that was what you meant. See Alan's response.

Mel
 

al_b_cnu

Well-known Member
Joined
Jul 18, 2003
Messages
4,526
Mel - you're not THE Mel surely :)

Stu - can you adapt this:
Book1
ABCDEFGHI
1Batch 1NameAverage
2NameArea 1Area 2Area 3Area 4Totalaaaa92
3aaaa818283892Richard Harris90
4Richard Harris11213141104cccc128
5cccc17273747128dddd100
6dddd13233343112
7313233372
8Batch 215253545120
9aaaa12223242108
10bbbb313233372
11Richard Harris919293996
12dddd717273788
1311213141104
14Batch 3717273788
15aaaa11213141104
16bbbb18283848132
17Richard Harris313233372
18313233372
19Batch 415253545120
20aaaa111213164
21Richard Harris717273788
22
Sheet1


Formula in I2 copied down is =SUM(SUMIF(A:A,H2,B:B),SUMIF(A:A,H2,C:C),SUMIF(A:A,H2,D:D),SUMIF(A:A,H2,E:E))/COUNTIF(A:A,H2)
 

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
892
Office Version
  1. 365
Platform
  1. Windows
Sadly not. The other one is the one with the money, I'm the one who's still trying to get it...

Mel (the original!)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,707
Messages
5,833,241
Members
430,199
Latest member
Petty queen

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
Top