Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PA
 
Posts: n/a
Default Modified Average Function

Dear All,

I try to use averahe function to get result for average salary for each job
position,with data as follows:


Row1 Col A Col B Col C
Row2 Empl_ID Position Salary
Row3 10 Junior 10,000.00
Row4 11 Senior 25,000.00
Row5 12 Junior 12,000.00
Row6 13 Senior 27,500.00
Row7 14 Junior 11,000.00
Row8 15 Senior 28,000.00
Row9 16 Manager 50,000.00
Row10 17 Senior 29,000.00
Row11 18 Manager 55,000.00
Row12 19 Junior 30,000.00
Row13 20 Manager 65,000.00



Average Salary Summary

Junior 15,750.00 ---How to modify Average Function to get
average for "Junior" without sort above data?

Senior 27,375.00

Manager 56,666.67


Appreciate any advise or suggestion, so I can use modified/advance "average
function" that enable to calculate that average salary without sorting above
data

Many thanks for your help,

PA

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Modified Average Function

Hello,

=sumproduct(--(B3:B13="Junior"),
C3:C13)/sumproduct(--(B3:B13="Junior"))

for Juniors, for example. The first sumproduct calculates the sum of
all Junior salaries and the second the count.

HTH,
Bernd

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Modified Average Function

=AVERAGE(IF(B1:B20="Junior",C1:C20))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"PA" wrote in message
...
Dear All,

I try to use averahe function to get result for average salary for each

job
position,with data as follows:


Row1 Col A Col B Col C
Row2 Empl_ID Position Salary
Row3 10 Junior 10,000.00
Row4 11 Senior 25,000.00
Row5 12 Junior 12,000.00
Row6 13 Senior 27,500.00
Row7 14 Junior 11,000.00
Row8 15 Senior 28,000.00
Row9 16 Manager 50,000.00
Row10 17 Senior 29,000.00
Row11 18 Manager 55,000.00
Row12 19 Junior 30,000.00
Row13 20 Manager 65,000.00



Average Salary Summary

Junior 15,750.00 ---How to modify Average Function to get
average for "Junior" without sort above data?

Senior 27,375.00

Manager 56,666.67


Appreciate any advise or suggestion, so I can use modified/advance

"average
function" that enable to calculate that average salary without sorting

above
data

Many thanks for your help,

PA



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PA
 
Posts: n/a
Default Modified Average Function

Dear Bob and Bern,

Many thanks for your help.

Best Regards

PA

"Bob Phillips" wrote:

=AVERAGE(IF(B1:B20="Junior",C1:C20))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"PA" wrote in message
...
Dear All,

I try to use averahe function to get result for average salary for each

job
position,with data as follows:


Row1 Col A Col B Col C
Row2 Empl_ID Position Salary
Row3 10 Junior 10,000.00
Row4 11 Senior 25,000.00
Row5 12 Junior 12,000.00
Row6 13 Senior 27,500.00
Row7 14 Junior 11,000.00
Row8 15 Senior 28,000.00
Row9 16 Manager 50,000.00
Row10 17 Senior 29,000.00
Row11 18 Manager 55,000.00
Row12 19 Junior 30,000.00
Row13 20 Manager 65,000.00



Average Salary Summary

Junior 15,750.00 ---How to modify Average Function to get
average for "Junior" without sort above data?

Senior 27,375.00

Manager 56,666.67


Appreciate any advise or suggestion, so I can use modified/advance

"average
function" that enable to calculate that average salary without sorting

above
data

Many thanks for your help,

PA




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
Figuring daily average...function ??? Fish Excel Worksheet Functions 7 March 10th 06 05:26 PM
Average Function that Counts Sandi Excel Worksheet Functions 7 February 8th 06 09:46 PM
Average Function Help Needed michaelas Excel Worksheet Functions 9 September 13th 05 01:19 AM
EXCEL 2000 AVERAGE function TREBUCHET Excel Worksheet Functions 1 August 26th 05 06:59 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM


All times are GMT +1. The time now is 11:39 PM.

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

About Us

"It's about Microsoft Excel"