Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DAT DAT is offline
external usenet poster
 
Posts: 2
Default Help required with COUNTIF/AND function

Hi
I am desperately trying to count a column of items using 2 pieces of
criteria instead of the one used in 'countif' and have tried using 'countif'
and 'And' function nested. i have a column of number which are item numbers
(column A). Column 'B' uses 2 criteria 'Good', 'Bad'. In column 'C' I am
trying to count all item numbers in the column of the same type which are
'Good'. i.e countif(if A1='item type',"Good"). However, counif only allows
one piec of criteria. Can anyone help please?

Thanks in advance
DAT


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Help required with COUNTIF/AND function

=SUMPRODUCT(--(A2:A20="item type"),--(B2:B20="Good"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"DAT" wrote in message
...
Hi
I am desperately trying to count a column of items using 2 pieces of
criteria instead of the one used in 'countif' and have tried using

'countif'
and 'And' function nested. i have a column of number which are item

numbers
(column A). Column 'B' uses 2 criteria 'Good', 'Bad'. In column 'C' I am
trying to count all item numbers in the column of the same type which are
'Good'. i.e countif(if A1='item type',"Good"). However, counif only

allows
one piec of criteria. Can anyone help please?

Thanks in advance
DAT




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Help required with COUNTIF/AND function

hi Dat,

use sumproduct

=sumproduct(--(a1:a1000="good")*(b1:b1000=2))

hth
regards from Brazil
Marcelo

"DAT" escreveu:

Hi
I am desperately trying to count a column of items using 2 pieces of
criteria instead of the one used in 'countif' and have tried using 'countif'
and 'And' function nested. i have a column of number which are item numbers
(column A). Column 'B' uses 2 criteria 'Good', 'Bad'. In column 'C' I am
trying to count all item numbers in the column of the same type which are
'Good'. i.e countif(if A1='item type',"Good"). However, counif only allows
one piec of criteria. Can anyone help please?

Thanks in advance
DAT



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DAT DAT is offline
external usenet poster
 
Posts: 2
Default Help required with COUNTIF/AND function

Many thanks that worked a treat!
"Marcelo" wrote in message
...
hi Dat,

use sumproduct

=sumproduct(--(a1:a1000="good")*(b1:b1000=2))

hth
regards from Brazil
Marcelo

"DAT" escreveu:

Hi
I am desperately trying to count a column of items using 2 pieces of
criteria instead of the one used in 'countif' and have tried using
'countif'
and 'And' function nested. i have a column of number which are item
numbers
(column A). Column 'B' uses 2 criteria 'Good', 'Bad'. In column 'C' I
am
trying to count all item numbers in the column of the same type which are
'Good'. i.e countif(if A1='item type',"Good"). However, counif only
allows
one piec of criteria. Can anyone help please?

Thanks in advance
DAT





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
Required fields in Excel [email protected] New Users to Excel 5 November 4th 10 05:33 PM
Make text cells and combo boxes required? mlroy@savvis Excel Discussion (Misc queries) 2 July 24th 06 08:19 PM
can you make a cell value required? nishapurohit Excel Discussion (Misc queries) 2 January 30th 06 11:42 PM
highlighting required fields maryann Excel Worksheet Functions 2 June 23rd 05 06:16 PM
SPECIFY REQUIRED PAPER SIZE IN EXCEL 2000 Augustine Excel Discussion (Misc queries) 0 January 17th 05 12:05 PM


All times are GMT +1. The time now is 02:37 AM.

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

About Us

"It's about Microsoft Excel"