Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I would like to sum/average numbers in column A, only if for that row, the
value in column B is a certain value. e.g. Average column A if value in column B is 1. Then again, average of column A if value in column B is 2 etc. A B 4 1 5 2 8 1 7 2 Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=AVERAGE(IF(B1:B4=1,A1:A4))
entered with ctrl + shift & enter -- Regards, Peo Sjoblom http://nwexcelsolutions.com "Sue" wrote in message ... I would like to sum/average numbers in column A, only if for that row, the value in column B is a certain value. e.g. Average column A if value in column B is 1. Then again, average of column A if value in column B is 2 etc. A B 4 1 5 2 8 1 7 2 Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Sue,
If you want to Sum, check out SUMIF. If you want to Average, you'll either need a SumProduct or an array formula... =Average(If(B1:B4=1,A1:A4)) Confirm this array formula with Ctrl + Shift + Enter. HTH -- Regards, Zack Barresse, aka firefytr To email, remove NOSPAM "Sue" wrote in message ... I would like to sum/average numbers in column A, only if for that row, the value in column B is a certain value. e.g. Average column A if value in column B is 1. Then again, average of column A if value in column B is 2 etc. A B 4 1 5 2 8 1 7 2 Thanks |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=AVERAGE(IF($B$1:$B$10=1,$A$1:$A$10))
which is an array formula, it should be committed with Ctrl-Shift-Enter, not just Enter. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Sue" wrote in message ... I would like to sum/average numbers in column A, only if for that row, the value in column B is a certain value. e.g. Average column A if value in column B is 1. Then again, average of column A if value in column B is 2 etc. A B 4 1 5 2 8 1 7 2 Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to add numbers in a column dependant on their colour | Excel Worksheet Functions | |||
Consecutive Numbers down a column not to Exceed 49 | Excel Worksheet Functions | |||
column filtering to match identical numbers | Excel Discussion (Misc queries) | |||
Return Count for LAST NonBlank Cell in each Row | Excel Worksheet Functions | |||
Average of numbers in column between to other numbers | Excel Discussion (Misc queries) |