#1   Report Post  
Denise
 
Posts: n/a
Default Average If

Sorry for reposting this...

I need a formula to figure the average in one column if for a specific
person in another. There are about 2500 entries for each sheet. I need to
know the average with time for Smith, Samsone, etc. without having to sort by
physician.
Thanks.


ER MD WAIT TIME TO SEE PHYSICIAN
smith 0:15
samsone 0:21
terry n/a
terry 0:43
hanson 0:25
smith 0:18
terry n/a
samsone 0:31

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=AVERAGE(IF(NAme_Range="Smith",Time_Range))

array entered ctrl + shift & enter

Regards,

Peo Sjoblom

"Denise" wrote:

Sorry for reposting this...

I need a formula to figure the average in one column if for a specific
person in another. There are about 2500 entries for each sheet. I need to
know the average with time for Smith, Samsone, etc. without having to sort by
physician.
Thanks.


ER MD WAIT TIME TO SEE PHYSICIAN
smith 0:15
samsone 0:21
terry n/a
terry 0:43
hanson 0:25
smith 0:18
terry n/a
samsone 0:31

  #3   Report Post  
Denise
 
Posts: n/a
Default

I get the error #NUM! when I use this formula.

What am I doing wrong?

"Peo Sjoblom" wrote:

=AVERAGE(IF(NAme_Range="Smith",Time_Range))

array entered ctrl + shift & enter

Regards,

Peo Sjoblom

"Denise" wrote:

Sorry for reposting this...

I need a formula to figure the average in one column if for a specific
person in another. There are about 2500 entries for each sheet. I need to
know the average with time for Smith, Samsone, etc. without having to sort by
physician.
Thanks.


ER MD WAIT TIME TO SEE PHYSICIAN
smith 0:15
samsone 0:21
terry n/a
terry 0:43
hanson 0:25
smith 0:18
terry n/a
samsone 0:31

  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Did you enter it with ctrl + shift & enter or does any of your ranges include
a #NUM! error or are you using the whole range like A:A? My guess the last
one, if so change the range to something less like A2:A5000..

This formula should yield the same result,

=SUMIF(Name_Range,"Smith",Time_Range)/COUNTIF(Name_Range,"Smith")

also a good idea is to replace the hard coded names (Smith) with a cell
where you would put the names, that way you won't have to edit the formula
again

Regards,

Peo Sjoblom

"Denise" wrote:

I get the error #NUM! when I use this formula.

What am I doing wrong?

"Peo Sjoblom" wrote:

=AVERAGE(IF(NAme_Range="Smith",Time_Range))

array entered ctrl + shift & enter

Regards,

Peo Sjoblom

"Denise" wrote:

Sorry for reposting this...

I need a formula to figure the average in one column if for a specific
person in another. There are about 2500 entries for each sheet. I need to
know the average with time for Smith, Samsone, etc. without having to sort by
physician.
Thanks.


ER MD WAIT TIME TO SEE PHYSICIAN
smith 0:15
samsone 0:21
terry n/a
terry 0:43
hanson 0:25
smith 0:18
terry n/a
samsone 0:31

  #5   Report Post  
Denise
 
Posts: n/a
Default

I tried the SUMIF formula and it worked!! THANK YOU!!!

"Peo Sjoblom" wrote:

Did you enter it with ctrl + shift & enter or does any of your ranges include
a #NUM! error or are you using the whole range like A:A? My guess the last
one, if so change the range to something less like A2:A5000..

This formula should yield the same result,

=SUMIF(Name_Range,"Smith",Time_Range)/COUNTIF(Name_Range,"Smith")

also a good idea is to replace the hard coded names (Smith) with a cell
where you would put the names, that way you won't have to edit the formula
again

Regards,

Peo Sjoblom

"Denise" wrote:

I get the error #NUM! when I use this formula.

What am I doing wrong?

"Peo Sjoblom" wrote:

=AVERAGE(IF(NAme_Range="Smith",Time_Range))

array entered ctrl + shift & enter

Regards,

Peo Sjoblom

"Denise" wrote:

Sorry for reposting this...

I need a formula to figure the average in one column if for a specific
person in another. There are about 2500 entries for each sheet. I need to
know the average with time for Smith, Samsone, etc. without having to sort by
physician.
Thanks.


ER MD WAIT TIME TO SEE PHYSICIAN
smith 0:15
samsone 0:21
terry n/a
terry 0:43
hanson 0:25
smith 0:18
terry n/a
samsone 0:31

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
Using The Average Function if a cell has NA carl Excel Worksheet Functions 6 May 21st 23 07:46 PM
Average (geometric) Stephen Excel Worksheet Functions 1 January 17th 05 05:19 PM
average on 2 conditions Ted Metro Excel Worksheet Functions 6 January 7th 05 08:23 PM
calculate average hours worked llstephens Excel Worksheet Functions 1 November 24th 04 02:37 PM
average, array and offsets Darin1979 Excel Worksheet Functions 0 November 17th 04 04:21 PM


All times are GMT +1. The time now is 09:54 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"