#1   Report Post  
Natalia
 
Posts: n/a
Default 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   Report Post  
N Harkawat
 
Posts: n/a
Default

=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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using countif function to add only a half of a number ryanjh79 Excel Discussion (Misc queries) 9 April 26th 23 03:42 AM
How do I use COUNTIF in a SUBTOTAL function to differentiate the . Lettie Excel Worksheet Functions 6 March 22nd 05 08:47 AM
Excel countif function bkcthecat Excel Worksheet Functions 2 March 13th 05 04:57 PM
countif function?? sbrimley Excel Worksheet Functions 4 March 1st 05 12:05 AM
hOW TO USE THE AND OPERATOR WITH THE COUNTIF FUNCTION Marty Excel Worksheet Functions 1 November 11th 04 09:45 PM


All times are GMT +1. The time now is 06:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"