Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]() I'd like to be able to create a cell which is the sum of the values in column A, but only if the value of column B in the cell beside the value in Column A is equal to some number (like = 12). So that for this col A col B 3 45 30 12 34 12 Sum of Column A where column B is also =12 would be 30+34 = 64 (I'd end up wanting a bunch of cells like this, using different numbers instead of 12, ie another cell that has the sum of column A where column B is =11) What's the best way to do this? -- yozzdi ------------------------------------------------------------------------ yozzdi's Profile: http://www.excelforum.com/member.php...o&userid=30376 View this thread: http://www.excelforum.com/showthread...hreadid=532909 |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
=SUMIF(B:B,12,A:A)
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "yozzdi" wrote in message ... I'd like to be able to create a cell which is the sum of the values in column A, but only if the value of column B in the cell beside the value in Column A is equal to some number (like = 12). So that for this col A col B 3 45 30 12 34 12 Sum of Column A where column B is also =12 would be 30+34 = 64 (I'd end up wanting a bunch of cells like this, using different numbers instead of 12, ie another cell that has the sum of column A where column B is =11) What's the best way to do this? -- yozzdi ------------------------------------------------------------------------ yozzdi's Profile: http://www.excelforum.com/member.php...o&userid=30376 View this thread: http://www.excelforum.com/showthread...hreadid=532909 |
#3
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]() Thanks! This works great. -- yozzdi ------------------------------------------------------------------------ yozzdi's Profile: http://www.excelforum.com/member.php...o&userid=30376 View this thread: http://www.excelforum.com/showthread...hreadid=532909 |
#4
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Hi there,
can even evolve it, replacing the "12" in the middle to a cell reference c2: = SUMIF( B:B;a2;A:A) C3: = SUMIF(C:C;a3;A:A) etc. best regards, ANdras (Hungary) "yozzdi" wrote: Thanks! This works great. -- yozzdi ------------------------------------------------------------------------ yozzdi's Profile: http://www.excelforum.com/member.php...o&userid=30376 View this thread: http://www.excelforum.com/showthread...hreadid=532909 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum/average numbers in column A dependant on value in column B | Excel Worksheet Functions | |||
Adding new numbers as I type without duplicates from Sheet1,ColumnA to Sheet2,ColumnA | Excel Worksheet Functions | |||
Adding numbers that meet a condition? | Excel Discussion (Misc queries) | |||
match and count words | Excel Worksheet Functions | |||
I cannot get a column of numbers to sum, why? | Excel Worksheet Functions |