Home |
Search |
Today's Posts |
#1
|
|||
|
|||
COUNTIF Function
Hi,
I have this formula that works between worksheets: =IF(SUMIF('Transaction Data'!$C:$C,$B10,'Transaction Data'!P:P)<0.05*$H$1,0,SUMIF('Transaction Data'!$C:$C,$B10,'Transaction Data'!N:N)) Can I make it to work with COUNTIF function where I want to look for a # of transactions 0? but only when 1) D10 is greater than 0, then 2) for those values in the second worksheet that much the value $B10 from the first worksheet, 3) I need # of transactions in column N 0, or otherwise if no match return 0. This is what I am having trouble with: =IF(D100,COUNTIF('Transaction Data'!$C:$C,$B10,'Transaction Data'!P:P),"0"),0) Any idea how I should change the above formula to work with COUNTIF? Again, it works with SUMIF. Thank you for your help. -- Natalia |
#2
|
|||
|
|||
=IF(D100,sumproduct(--('Transaction Data'!$C1:$C9999=$B10),--('Transaction
Data'!P1:P1000)),0) "Natalia" wrote in message ... Hi, I have this formula that works between worksheets: =IF(SUMIF('Transaction Data'!$C:$C,$B10,'Transaction Data'!P:P)<0.05*$H$1,0,SUMIF('Transaction Data'!$C:$C,$B10,'Transaction Data'!N:N)) Can I make it to work with COUNTIF function where I want to look for a # of transactions 0? but only when 1) D10 is greater than 0, then 2) for those values in the second worksheet that much the value $B10 from the first worksheet, 3) I need # of transactions in column N 0, or otherwise if no match return 0. This is what I am having trouble with: =IF(D100,COUNTIF('Transaction Data'!$C:$C,$B10,'Transaction Data'!P:P),"0"),0) Any idea how I should change the above formula to work with COUNTIF? Again, it works with SUMIF. Thank you for your help. -- Natalia |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
using countif function to add only a half of a number | Excel Discussion (Misc queries) | |||
How do I use COUNTIF in a SUBTOTAL function to differentiate the . | Excel Worksheet Functions | |||
Excel countif function | Excel Worksheet Functions | |||
countif function?? | Excel Worksheet Functions | |||
hOW TO USE THE AND OPERATOR WITH THE COUNTIF FUNCTION | Excel Worksheet Functions |