Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sum a column is criteria in two in column and other column are met
My formula:
=COUNT(IF(AND('Jan UA'!$C:$C,"ORD",'Jan UA'!$P:$P,M3),COUNT('Jan UA'!$P:$P))) I want to Count all the cells in column P when column C = ORD and column P = what is in M3 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sum a column is criteria in two in column and other column are met
Hi,
Try this =sumproduct(('Jan UA'!$C$2:$C$5000="ORD")*('Jan UA'!$P2:$P5000=M3)) -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "John" wrote in message ... My formula: =COUNT(IF(AND('Jan UA'!$C:$C,"ORD",'Jan UA'!$P:$P,M3),COUNT('Jan UA'!$P:$P))) I want to Count all the cells in column P when column C = ORD and column P = what is in M3 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sum a column is criteria in two in column and other column are met
Hi John
When you have multiple criteria use SUMPRODUCT() =SUMPRODUCT((C1:C1000="ORD")*(P1:P1000=M3)) If you are using Excel 2007 check out help on COUNTIFS() =COUNTIFS( Criteriarange1,Criteria1,Criteriarange2,Criteria2, ...) -- Jacob "John" wrote: My formula: =COUNT(IF(AND('Jan UA'!$C:$C,"ORD",'Jan UA'!$P:$P,M3),COUNT('Jan UA'!$P:$P))) I want to Count all the cells in column P when column C = ORD and column P = what is in M3 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Based on Mulipple Criteria acrossed Column count last column | Excel Worksheet Functions | |||
COUNTIF: 2 criteria: Date Range Column & Text Column | Excel Worksheet Functions | |||
compare cells in column to criteria, then average next column cell | Excel Worksheet Functions | |||
calculate average in a column based on criteria in another column | Excel Discussion (Misc queries) | |||
move contents of column C based on criteria related to column A | Excel Discussion (Misc queries) |