Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi. Is there a way to do an average if? Basically, if the contents of
column A is "Y", then include the contents on column B in the average? Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HI Steph,
Isn't this a SUMIF divided by a COUNTIF? Ric |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=IF(A1:A100="Y",B1:B100)
this is an array formula, so commit with Ctrl-Shift-Enter. It also means that you cannot use a whole column, just a specific range. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Steph" wrote in message ... Hi. Is there a way to do an average if? Basically, if the contents of column A is "Y", then include the contents on column B in the average? Thanks! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Bob, but I can't get it to work. It looks like the formula only
takes into account the first record in the array. Am I doing something wrong? Thanks! "Bob Phillips" wrote in message ... =IF(A1:A100="Y",B1:B100) this is an array formula, so commit with Ctrl-Shift-Enter. It also means that you cannot use a whole column, just a specific range. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Steph" wrote in message ... Hi. Is there a way to do an average if? Basically, if the contents of column A is "Y", then include the contents on column B in the average? Thanks! |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Steph,
Use the following array formula. Change the ranges to suit your needs. =AVERAGE(IF(A1:A10="Y",B1:B10,FALSE)) Since this is an array formula, you must press Ctrl+Shift+Enter rather than just Enter when you first enter the formula and whenever you edit it later. If you do this properly, Excel will display the formula enclosed it curly braces {}. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Steph" wrote in message ... Thanks Bob, but I can't get it to work. It looks like the formula only takes into account the first record in the array. Am I doing something wrong? Thanks! "Bob Phillips" wrote in message ... =IF(A1:A100="Y",B1:B100) this is an array formula, so commit with Ctrl-Shift-Enter. It also means that you cannot use a whole column, just a specific range. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Steph" wrote in message ... Hi. Is there a way to do an average if? Basically, if the contents of column A is "Y", then include the contents on column B in the average? Thanks! |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Oops, sorry I forgot the AVERAGE
=AVERAGE(IF(A1:A100="Y",B1:B100)) still an array formula. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Steph" wrote in message ... Thanks Bob, but I can't get it to work. It looks like the formula only takes into account the first record in the array. Am I doing something wrong? Thanks! "Bob Phillips" wrote in message ... =IF(A1:A100="Y",B1:B100) this is an array formula, so commit with Ctrl-Shift-Enter. It also means that you cannot use a whole column, just a specific range. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Steph" wrote in message ... Hi. Is there a way to do an average if? Basically, if the contents of column A is "Y", then include the contents on column B in the average? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
A formula to AVERAGE IF but only average a set number of values | Excel Worksheet Functions | |||
Find monthly average but have average automatically configured | Excel Discussion (Misc queries) | |||
Error Handling #N/A with AVERAGE Function - Average of values in Row | Excel Worksheet Functions | |||
Weighed Average of a weiged average when there are blanks | Excel Discussion (Misc queries) | |||
how does one convert text to a formula "average(A:A)" to =average( | Excel Worksheet Functions |