Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Add a column based on criteria from 2 other columns
Column_A Column_B Column_C
2 75 250 2 75 500 3 76 350 4 70 1000 I want to add up column C, if column_A = 2 and column_B = 75. Can someone help me out with this? Thanks |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Add a column based on criteria from 2 other columns
Try this:
=SUMPRODUCT(--(A1:A4=2),--(B1:B4=75),C1:C4) Better to use cells to hold the criteria: E1 = 2 F1 = 75 =SUMPRODUCT(--(A1:A4=E1),--(B1:B4=F1),C1:C4) -- Biff Microsoft Excel MVP "cudan" wrote in message ... Column_A Column_B Column_C 2 75 250 2 75 500 3 76 350 4 70 1000 I want to add up column C, if column_A = 2 and column_B = 75. Can someone help me out with this? Thanks |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Add a column based on criteria from 2 other columns
Enter anywhere other than the sum range
=Sumproduct(--(a1:a100=2),--(b1:b100=75),(c1:c100)) Adjust 100 to the last row you want to include in your sum. "cudan" wrote: Column_A Column_B Column_C 2 75 250 2 75 500 3 76 350 4 70 1000 I want to add up column C, if column_A = 2 and column_B = 75. Can someone help me out with this? Thanks |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Add a column based on criteria from 2 other columns
Try this:
=SUMPRODUCT((A1:A10=2)*(B1:B10=75),C1:C10) Adjust ranges to suit your data. Hope this helps. Pete On Nov 4, 10:16*pm, cudan wrote: Column_A *Column_B * Column_C 2 * * * * * * * * * *75 * * * * * *250 2 * * * * * * * * * *75 * * * * * *500 3 * * * * * * * * * *76 * * * * * *350 4 * * * * * * * * * *70 * * * * * *1000 I want to add up column C, if column_A = 2 and column_B = 75. Can someone help me out with this? Thanks |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Add a column based on criteria from 2 other columns
Hi,
As an alternative, you can also use the following array formula (Ctrl+Shift+Enter) =sum(if((rangeA=2)*(rangeB=75),rangeC)) -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "cudan" wrote in message ... Column_A Column_B Column_C 2 75 250 2 75 500 3 76 350 4 70 1000 I want to add up column C, if column_A = 2 and column_B = 75. Can someone help me out with this? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Adding data in columns based on criteria in more than one column.. | Excel Worksheet Functions | |||
Count based on criteria from two different columns | Excel Discussion (Misc queries) | |||
sum items in a column based on criteria located in other columns | Excel Discussion (Misc queries) | |||
sumproduct 2 columns based on criteria in 3rd column | Excel Discussion (Misc queries) | |||
move contents of column C based on criteria related to column A | Excel Discussion (Misc queries) |