#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 661
Default Average Problem

I'm trying to Average cells in a column that match a criteria in another
column and the column includes blanks. The problem i'm having is the formula
is returning results average for the whole column and not the cell i want to
match. Formula i'm using as follows.
=AVERAGEA(IF(Data!$E$2:$E$4444="OG"<0,Data!D2:D44 4)) This is returning an
average for the whole column and not just "OG". The formula works if i take
out the <0 but then the average includes the blank cells. HELP!!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 150
Default Average Problem

Do you mean Column D contains blanks? If so, try...

=AVERAGE(IF(Data!$E$2:$E$444="OG",IF(Data!D2:D444< "",Data!D2:D444)))

....confirmed with CONTROL+SHIFT+ENTER. Adjust the ranges, if necessary.

Hope this helps!

In article ,
Paul wrote:

I'm trying to Average cells in a column that match a criteria in another
column and the column includes blanks. The problem i'm having is the formula
is returning results average for the whole column and not the cell i want to
match. Formula i'm using as follows.
=AVERAGEA(IF(Data!$E$2:$E$4444="OG"<0,Data!D2:D44 4)) This is returning an
average for the whole column and not just "OG". The formula works if i take
out the <0 but then the average includes the blank cells. HELP!!!!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Average Problem

=AVERAGEA(IF((Data!$E$2:$E$4444="OG")*(Data!$E$2:$ E$4444<""),Data!D2:D444))

ctrl+shift+enter

"Paul" wrote:

I'm trying to Average cells in a column that match a criteria in another
column and the column includes blanks. The problem i'm having is the formula
is returning results average for the whole column and not the cell i want to
match. Formula i'm using as follows.
=AVERAGEA(IF(Data!$E$2:$E$4444="OG"<0,Data!D2:D44 4)) This is returning an
average for the whole column and not just "OG". The formula works if i take
out the <0 but then the average includes the blank cells. HELP!!!!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 661
Default Average Problem

Thank you so much, i can go out for a beer tonight now

"Domenic" wrote:

Do you mean Column D contains blanks? If so, try...

=AVERAGE(IF(Data!$E$2:$E$444="OG",IF(Data!D2:D444< "",Data!D2:D444)))

....confirmed with CONTROL+SHIFT+ENTER. Adjust the ranges, if necessary.

Hope this helps!

In article ,
Paul wrote:

I'm trying to Average cells in a column that match a criteria in another
column and the column includes blanks. The problem i'm having is the formula
is returning results average for the whole column and not the cell i want to
match. Formula i'm using as follows.
=AVERAGEA(IF(Data!$E$2:$E$4444="OG"<0,Data!D2:D44 4)) This is returning an
average for the whole column and not just "OG". The formula works if i take
out the <0 but then the average includes the blank cells. HELP!!!!


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
Running Average ? and Divide by 0 error! [email protected] Excel Worksheet Functions 3 February 1st 07 09:03 PM
12 Month Average Dewayne Excel Worksheet Functions 10 November 6th 06 09:18 PM
"Drop the lowest" in computing average Matthew Leingang Excel Worksheet Functions 8 June 8th 05 12:31 AM
AVERAGE and STDEV functions with logic t-rung Excel Worksheet Functions 1 May 26th 05 07:11 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 05:25 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"