Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Intuit
 
Posts: n/a
Default Averaging data that meets a criteria


Hi all. I have a worksheet that has multiple entries. The entries
contain a month number (1 for jan, 2 for feb etc) in one column and
and a percentage in another. I'm trying to only average percentages in
january. Any idea how to do this? I couldn't get daverageto work.


--
Intuit
------------------------------------------------------------------------
Intuit's Profile: http://www.excelforum.com/member.php...o&userid=30901
View this thread: http://www.excelforum.com/showthread...hreadid=514543

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Intuit
 
Posts: n/a
Default Averaging data that meets a criteria


Intuit Wrote:
Hi all. I have a worksheet that has multiple entries. The entries
contain a month number (1 for jan, 2 for feb etc) in one column and
and a percentage in another. I'm trying to only average percentages in
january. Any idea how to do this? I couldn't get daverageto work.



I found this from another post, but I need the formulat to ignore cells
that state "divide by 0" or are blank.

=AVERAGE(IF($A$1:$A$200=C1,$B$1:$B$200))


--
Intuit
------------------------------------------------------------------------
Intuit's Profile: http://www.excelforum.com/member.php...o&userid=30901
View this thread: http://www.excelforum.com/showthread...hreadid=514543

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Averaging data that meets a criteria

Is this what you want

=AVERAGE(IF(($A$1:$A$200=C1)*($B$1:$B$200<0),$B$1 :$B$200))

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)

"Intuit" wrote in
message ...

Intuit Wrote:
Hi all. I have a worksheet that has multiple entries. The entries
contain a month number (1 for jan, 2 for feb etc) in one column and
and a percentage in another. I'm trying to only average percentages in
january. Any idea how to do this? I couldn't get daverageto work.



I found this from another post, but I need the formulat to ignore cells
that state "divide by 0" or are blank.

=AVERAGE(IF($A$1:$A$200=C1,$B$1:$B$200))


--
Intuit
------------------------------------------------------------------------
Intuit's Profile:

http://www.excelforum.com/member.php...o&userid=30901
View this thread: http://www.excelforum.com/showthread...hreadid=514543



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don
 
Posts: n/a
Default Averaging data that meets a criteria

Enter as Ctrl/Shift/Enter

=AVERAGE(IF(($A$1:$A$200=$C$1)*(ISNUMBER($B$1:$B$2 00)),$B$1:$B$200))


Don Pistulka



"Intuit" wrote in
message ...

Intuit Wrote:
Hi all. I have a worksheet that has multiple entries. The entries
contain a month number (1 for jan, 2 for feb etc) in one column and
and a percentage in another. I'm trying to only average percentages in
january. Any idea how to do this? I couldn't get daverageto work.



I found this from another post, but I need the formulat to ignore cells
that state "divide by 0" or are blank.

=AVERAGE(IF($A$1:$A$200=C1,$B$1:$B$200))


--
Intuit
------------------------------------------------------------------------
Intuit's Profile:
http://www.excelforum.com/member.php...o&userid=30901
View this thread: http://www.excelforum.com/showthread...hreadid=514543



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Intuit
 
Posts: n/a
Default Averaging data that meets a criteria


Bob Phillips Wrote:
Is this what you want

=AVERAGE(IF(($A$1:$A$200=C1)*($B$1:$B$200<0),$B$1 :$B$200))

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)

"Intuit" wrote
in
message ...

Intuit Wrote:
Hi all. I have a worksheet that has multiple entries. The

entries
contain a month number (1 for jan, 2 for feb etc) in one column

and
and a percentage in another. I'm trying to only average

percentages in
january. Any idea how to do this? I couldn't get daverageto

work.


I found this from another post, but I need the formulat to ignore

cells
that state "divide by 0" or are blank.

=AVERAGE(IF($A$1:$A$200=C1,$B$1:$B$200))


--
Intuit

------------------------------------------------------------------------
Intuit's Profile:

http://www.excelforum.com/member.php...o&userid=30901
View this thread:

http://www.excelforum.com/showthread...hreadid=514543


That'll work, great thanks!!


--
Intuit
------------------------------------------------------------------------
Intuit's Profile: http://www.excelforum.com/member.php...o&userid=30901
View this thread: http://www.excelforum.com/showthread...hreadid=514543

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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Graphing only data that meets a condition Heidi Charts and Charting in Excel 2 January 19th 06 08:32 PM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
Max value that meets a criteria David Burr Excel Worksheet Functions 6 February 16th 05 01:31 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


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