Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 173
Default Ignoring blank cells on getting an average

Hi

I have four columns of data A,B,C and D. I would like to get the average
from the results in column D. But only when it matches certain criteria in
A,B and C.

I put
{=AVERAGE(IF(($A$1:$A$100="R1")*($B$1:$B$100="Mon" )*($C$1:$C$100=1),$D$1:$D$100))}

This works ok but sometimes when i have this data in there for info in other
columns such as E,F. The D will be blank but this will affect the average.
Can i add something to ignore the blanks cells.

Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Ignoring blank cells on getting an average

Try:

=AVERAGE(IF(($A$1:$A$100="R1")*($B$1:$B$100="Mon") *($C$1:$C$100=1),ISNUMBER($D$1:$D$100)),$D$1:$D$10 0)

"Neil" wrote:

Hi

I have four columns of data A,B,C and D. I would like to get the average
from the results in column D. But only when it matches certain criteria in
A,B and C.

I put
{=AVERAGE(IF(($A$1:$A$100="R1")*($B$1:$B$100="Mon" )*($C$1:$C$100=1),$D$1:$D$100))}

This works ok but sometimes when i have this data in there for info in other
columns such as E,F. The D will be blank but this will affect the average.
Can i add something to ignore the blanks cells.

Many thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Ignoring blank cells on getting an average

Maybe just adding more criteria would be ok:

=AVERAGE(IF(($A$1:$A$100="R1")
*($B$1:$B$100="Mon")
*($C$1:$C$100=1)
*ISNUMBER($D$1:$D$100), $D$1:$D$100))

Neil wrote:

Hi

I have four columns of data A,B,C and D. I would like to get the average
from the results in column D. But only when it matches certain criteria in
A,B and C.

I put
{=AVERAGE(IF(($A$1:$A$100="R1")*($B$1:$B$100="Mon" )*($C$1:$C$100=1),$D$1:$D$100))}

This works ok but sometimes when i have this data in there for info in other
columns such as E,F. The D will be blank but this will affect the average.
Can i add something to ignore the blanks cells.

Many thanks


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Ignoring blank cells on getting an average

You can use this formula:

=SUMPRODUCT(--($B$25:$B$28="r1"), --($C$25:$C$28="mon"),
--($D$25:$D$28=1)*($E$25:$E$28))/(COUNTIF($B$25:$E$28,($B$25:$B$28="r1")*($C$25:$C$ 28="Mon")*($D$25:$D$28=1))-IF(($B$25:$B$28="r1")*($C$25:$C$28="mon")*($D$25:$ D$28=1),COUNTBLANK($E$25:$E$28),0))

tell us if it works

"Dave Peterson" wrote:

Maybe just adding more criteria would be ok:

=AVERAGE(IF(($A$1:$A$100="R1")
*($B$1:$B$100="Mon")
*($C$1:$C$100=1)
*ISNUMBER($D$1:$D$100), $D$1:$D$100))

Neil wrote:

Hi

I have four columns of data A,B,C and D. I would like to get the average
from the results in column D. But only when it matches certain criteria in
A,B and C.

I put
{=AVERAGE(IF(($A$1:$A$100="R1")*($B$1:$B$100="Mon" )*($C$1:$C$100=1),$D$1:$D$100))}

This works ok but sometimes when i have this data in there for info in other
columns such as E,F. The D will be blank but this will affect the average.
Can i add something to ignore the blanks cells.

Many thanks


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Ignoring blank cells on getting an average

you can use this formula:

=SUMPRODUCT(--($B$25:$B$28="r1"), --($C$25:$C$28="mon"),
--($D$25:$D$28=1)*($E$25:$E$28))/(COUNTIF($B$25:$E$28,($B$25:$B$28="r1")*($C$25:$C$ 28="Mon")*($D$25:$D$28=1))-IF(($B$25:$B$28="r1")*($C$25:$C$28="mon")*($D$25:$ D$28=1),COUNTBLANK($E$25:$E$28),0))

tell us if it works.

"Neil" wrote:

Hi

I have four columns of data A,B,C and D. I would like to get the average
from the results in column D. But only when it matches certain criteria in
A,B and C.

I put
{=AVERAGE(IF(($A$1:$A$100="R1")*($B$1:$B$100="Mon" )*($C$1:$C$100=1),$D$1:$D$100))}

This works ok but sometimes when i have this data in there for info in other
columns such as E,F. The D will be blank but this will affect the average.
Can i add something to ignore the blanks cells.

Many thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 173
Default Ignoring blank cells on getting an average

Many thanks

They worked fine. It was a big help!

"Excel_Learner" wrote:

you can use this formula:

=SUMPRODUCT(--($B$25:$B$28="r1"), --($C$25:$C$28="mon"),
--($D$25:$D$28=1)*($E$25:$E$28))/(COUNTIF($B$25:$E$28,($B$25:$B$28="r1")*($C$25:$C$ 28="Mon")*($D$25:$D$28=1))-IF(($B$25:$B$28="r1")*($C$25:$C$28="mon")*($D$25:$ D$28=1),COUNTBLANK($E$25:$E$28),0))

tell us if it works.

"Neil" wrote:

Hi

I have four columns of data A,B,C and D. I would like to get the average
from the results in column D. But only when it matches certain criteria in
A,B and C.

I put
{=AVERAGE(IF(($A$1:$A$100="R1")*($B$1:$B$100="Mon" )*($C$1:$C$100=1),$D$1:$D$100))}

This works ok but sometimes when i have this data in there for info in other
columns such as E,F. The D will be blank but this will affect the average.
Can i add something to ignore the blanks cells.

Many thanks

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Ignoring blank cells on getting an average

You can use a small form of this formula also..
=SUMPRODUCT(--($B$25:$B$28="r1"), --($C$25:$C$28="mon"),
--($D$25:$D$28=1)*($E$25:$E$28))/SUMPRODUCT(--($B$25:$B$28="r1"),
--($C$25:$C$28="mon"), --($D$25:$D$28=1)*($E$25:$E$280))

"Neil" wrote:

Many thanks

They worked fine. It was a big help!

"Excel_Learner" wrote:

you can use this formula:

=SUMPRODUCT(--($B$25:$B$28="r1"), --($C$25:$C$28="mon"),
--($D$25:$D$28=1)*($E$25:$E$28))/(COUNTIF($B$25:$E$28,($B$25:$B$28="r1")*($C$25:$C$ 28="Mon")*($D$25:$D$28=1))-IF(($B$25:$B$28="r1")*($C$25:$C$28="mon")*($D$25:$ D$28=1),COUNTBLANK($E$25:$E$28),0))

tell us if it works.

"Neil" wrote:

Hi

I have four columns of data A,B,C and D. I would like to get the average
from the results in column D. But only when it matches certain criteria in
A,B and C.

I put
{=AVERAGE(IF(($A$1:$A$100="R1")*($B$1:$B$100="Mon" )*($C$1:$C$100=1),$D$1:$D$100))}

This works ok but sometimes when i have this data in there for info in other
columns such as E,F. The D will be blank but this will affect the average.
Can i add something to ignore the blanks cells.

Many thanks

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
Ignoring blank cells while locating common text value jumpmaster_france Excel Discussion (Misc queries) 1 February 14th 07 10:19 PM
Ignoring Blank Cells Reefaman Excel Worksheet Functions 2 June 11th 06 05:43 PM
30 Day Moving Average Ignoring Blank Cells ethatch Excel Worksheet Functions 2 January 17th 06 09:37 AM
Help with ignoring blank cells Darren Excel Discussion (Misc queries) 1 November 19th 05 07:48 PM
geomean ignoring blank cells and chars Stan Altshuller Excel Worksheet Functions 1 January 12th 05 09:21 PM


All times are GMT +1. The time now is 02:19 PM.

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"