Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
s s is offline
external usenet poster
 
Posts: 36
Default average with 2 conditions

Hi,
is there anyone who can help me with an average problem..
I want the average of say column F, when 2 conditions are
fullfilled, in column A and C.
I tried
=AVERAGE(IF((A2:A22="X")+(C2:C22="Y"),F2:F22))
with ctrl shift enter, but i cant make it work...

thanks,
S

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default average with 2 conditions

=AVERAGE(IF((A2:A22="X")*(C2:C22="Y"),F2:F22))

Entered with Ctrl+Shift+Enter

--
Regards,
Tom Ogilvy



"s" wrote:

Hi,
is there anyone who can help me with an average problem..
I want the average of say column F, when 2 conditions are
fullfilled, in column A and C.
I tried
=AVERAGE(IF((A2:A22="X")+(C2:C22="Y"),F2:F22))
with ctrl shift enter, but i cant make it work...

thanks,
S

  #3   Report Post  
Posted to microsoft.public.excel.programming
s s is offline
external usenet poster
 
Posts: 36
Default average with 2 conditions

Thank you,

but then I get #DIV/0!
Hmmm, what am i doing wrong?

Regards sara

"Tom Ogilvy" wrote:

=AVERAGE(IF((A2:A22="X")*(C2:C22="Y"),F2:F22))


Entered with Ctrl+Shift+Enter

--
Regards,
Tom Ogilvy



"s" wrote:

Hi,
is there anyone who can help me with an average problem..
I want the average of say column F, when 2 conditions are
fullfilled, in column A and C.
I tried
=AVERAGE(IF((A2:A22="X")+(C2:C22="Y"),F2:F22))
with ctrl shift enter, but i cant make it work...

thanks,
S

  #4   Report Post  
Posted to microsoft.public.excel.programming
s s is offline
external usenet poster
 
Posts: 36
Default average with 2 conditions

No no i am sorry, I got it now. My mistake!!
Thank you so much!!

Regards Sara

"s" wrote:

Thank you,

but then I get #DIV/0!
Hmmm, what am i doing wrong?

Regards sara

"Tom Ogilvy" wrote:

=AVERAGE(IF((A2:A22="X")*(C2:C22="Y"),F2:F22))


Entered with Ctrl+Shift+Enter

--
Regards,
Tom Ogilvy



"s" wrote:

Hi,
is there anyone who can help me with an average problem..
I want the average of say column F, when 2 conditions are
fullfilled, in column A and C.
I tried
=AVERAGE(IF((A2:A22="X")+(C2:C22="Y"),F2:F22))
with ctrl shift enter, but i cant make it work...

thanks,
S

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default average with 2 conditions

The condition is not met in any pair of cells.

--
Kind regards,

Niek Otten

"s" wrote in message ...
Thank you,

but then I get #DIV/0!
Hmmm, what am i doing wrong?

Regards sara

"Tom Ogilvy" wrote:

=AVERAGE(IF((A2:A22="X")*(C2:C22="Y"),F2:F22))


Entered with Ctrl+Shift+Enter

--
Regards,
Tom Ogilvy



"s" wrote:

Hi,
is there anyone who can help me with an average problem..
I want the average of say column F, when 2 conditions are
fullfilled, in column A and C.
I tried
=AVERAGE(IF((A2:A22="X")+(C2:C22="Y"),F2:F22))
with ctrl shift enter, but i cant make it work...

thanks,
S





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default average with 2 conditions

It works fine for me if I have any rows that meet the condition and have
numbers stored as numbers in column F.

--
Regards,
Tom Ogilvy


"s" wrote:

Thank you,

but then I get #DIV/0!
Hmmm, what am i doing wrong?

Regards sara

"Tom Ogilvy" wrote:

=AVERAGE(IF((A2:A22="X")*(C2:C22="Y"),F2:F22))


Entered with Ctrl+Shift+Enter

--
Regards,
Tom Ogilvy



"s" wrote:

Hi,
is there anyone who can help me with an average problem..
I want the average of say column F, when 2 conditions are
fullfilled, in column A and C.
I tried
=AVERAGE(IF((A2:A22="X")+(C2:C22="Y"),F2:F22))
with ctrl shift enter, but i cant make it work...

thanks,
S

  #7   Report Post  
Posted to microsoft.public.excel.programming
s s is offline
external usenet poster
 
Posts: 36
Default average with 2 conditions

hi Tom, My mistake I am sorry.
it works just fine now.
Thank you very much!!

Sara


"Tom Ogilvy" wrote:

It works fine for me if I have any rows that meet the condition and have
numbers stored as numbers in column F.

--
Regards,
Tom Ogilvy


"s" wrote:

Thank you,

but then I get #DIV/0!
Hmmm, what am i doing wrong?

Regards sara

"Tom Ogilvy" wrote:

=AVERAGE(IF((A2:A22="X")*(C2:C22="Y"),F2:F22))


Entered with Ctrl+Shift+Enter

--
Regards,
Tom Ogilvy



"s" wrote:

Hi,
is there anyone who can help me with an average problem..
I want the average of say column F, when 2 conditions are
fullfilled, in column A and C.
I tried
=AVERAGE(IF((A2:A22="X")+(C2:C22="Y"),F2:F22))
with ctrl shift enter, but i cant make it work...

thanks,
S

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
Average with Conditions Curtis[_2_] Excel Worksheet Functions 1 May 13th 10 04:34 PM
Average with Conditions Curtis[_2_] Excel Worksheet Functions 3 April 10th 10 03:01 AM
Average with Conditions Curtis[_2_] Excel Worksheet Functions 3 March 18th 10 05:31 PM
AVERAGE with conditions mr_concrete Excel Worksheet Functions 3 February 7th 07 08:23 PM
average on 2 conditions Ted Metro Excel Worksheet Functions 6 January 7th 05 08:23 PM


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