Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Tzy Tzy is offline
external usenet poster
 
Posts: 1
Default Excel Array Formula?

Hello, hope someone out there can help me out a bit.

This is the problem. I have 2 sheets. One with a summary and calculations
and one sheet with data.
In the summary sheet (Sheet1), I have names which also appear in the data
sheet (Sheet2). However the problem is that in the data sheet the name will
appear several times. I want a function that does the following:
For example:
Calculate the average of column C in Sheet2 for all the rows that contain
the name Charlie.
Anyone have any solution?

Help appreciated. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 964
Default Excel Array Formula?

=AVERAGE(IF(Sheet2!A2:A50="Charlie",Sheet2!B2:B50) )

array entered with ctrl + shift & enter

replace "Charlie" with a cell reference and put the name there instead, that
way you don't need to edit the formula when you change the name

You can also use a non array formula

=SUMIF(Sheet2!A2:A50,"Charlie",Sheet2!B2:B50)/COUNTIF(Sheet2!A2:A50,"Charlie")

Finally if you use Excel 2007 there is a new function called AVERAGEIF

--


Regards,


Peo Sjoblom

"Tzy" wrote in message
...
Hello, hope someone out there can help me out a bit.

This is the problem. I have 2 sheets. One with a summary and calculations
and one sheet with data.
In the summary sheet (Sheet1), I have names which also appear in the data
sheet (Sheet2). However the problem is that in the data sheet the name
will
appear several times. I want a function that does the following:
For example:
Calculate the average of column C in Sheet2 for all the rows that contain
the name Charlie.
Anyone have any solution?

Help appreciated. Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF or Array formula excel .. help ! [email protected] Excel Worksheet Functions 2 October 28th 07 04:29 AM
array or IF formula excel help [email protected] Excel Discussion (Misc queries) 2 October 27th 07 02:24 PM
Can I use an array formula as a series in an Excel chart mrice256 Charts and Charting in Excel 1 February 21st 07 03:13 PM
complex excel formula Array how do I convert it to a vba Function Rob Excel Worksheet Functions 1 April 10th 06 07:06 PM
excel array formula gordo Excel Worksheet Functions 14 October 18th 05 05:19 PM


All times are GMT +1. The time now is 07:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"