#1   Report Post  
Lucien
 
Posts: n/a
Default CountIf formula help

I have a document with 2 worksheets. I need to count how many times item
12W45 occurs and how many times this item has a value of <=3 in another
column. Here is the formula that I am using, or trying to use:

=COUNT(IF((Detail!H4:H32606="12W45")*(Detail!L4:L3 2606<=3),L4:L32606))

Something is wrong because it is giving me a value of 1, when it should be
7.
Can anyone tell what I am doing wrong?

  #2   Report Post  
JMB
 
Posts: n/a
Default

hit F2 to edit your formula, then hit Cntrl+Shift+Enter.

if that fails try

=SUMPRODUCT((detail!H4:H32606="12W45")*(detail!L4: L32606<=3))
and just hit enter after keying it in.


"Lucien" wrote:

I have a document with 2 worksheets. I need to count how many times item
12W45 occurs and how many times this item has a value of <=3 in another
column. Here is the formula that I am using, or trying to use:

=COUNT(IF((Detail!H4:H32606="12W45")*(Detail!L4:L3 2606<=3),L4:L32606))

Something is wrong because it is giving me a value of 1, when it should be
7.
Can anyone tell what I am doing wrong?

  #3   Report Post  
Lucien
 
Posts: n/a
Default

Well, the SUMPRODUCT formula worked perfect.

Thanks for the quick answer!



"JMB" wrote:

hit F2 to edit your formula, then hit Cntrl+Shift+Enter.

if that fails try

=SUMPRODUCT((detail!H4:H32606="12W45")*(detail!L4: L32606<=3))
and just hit enter after keying it in.


"Lucien" wrote:

I have a document with 2 worksheets. I need to count how many times item
12W45 occurs and how many times this item has a value of <=3 in another
column. Here is the formula that I am using, or trying to use:

=COUNT(IF((Detail!H4:H32606="12W45")*(Detail!L4:L3 2606<=3),L4:L32606))

Something is wrong because it is giving me a value of 1, when it should be
7.
Can anyone tell what I am doing wrong?

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
How do you make a countif formula with 2 or more critera? Melissa Excel Worksheet Functions 1 September 25th 05 12:21 AM
countif formula Todd Nelson Excel Discussion (Misc queries) 1 September 21st 05 11:27 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
COUNTIF formula problems artisanpp Excel Discussion (Misc queries) 2 June 5th 05 01:30 AM
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM


All times are GMT +1. The time now is 01:58 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"