Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Counting based on criteria from two cells???

I want to count in the following table the number of records where ColA0 and
ColB=R:

ColA ColB
1000 R
1200 R
1300 R
0 R
11150 ADJ

I tried using SUMPRODUCT(--(colA_NAME0),--(colB_NAME="R"). I defined ColA
and ColB as named ranges.

This does not seem to work and from researching on the net it seems that it
should. Any suggestions??????

Thanks in advance,

Attila
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Counting based on criteria from two cells???

Use SUMPRODUCT. You must specify a range.


=SUMPRODUCT(--(A1:A1000),--(B1:B100="R"))

HTH,
Paul

--

"bevpike" wrote in message
...
I want to count in the following table the number of records where ColA0
and
ColB=R:

ColA ColB
1000 R
1200 R
1300 R
0 R
11150 ADJ

I tried using SUMPRODUCT(--(colA_NAME0),--(colB_NAME="R"). I defined
ColA
and ColB as named ranges.

This does not seem to work and from researching on the net it seems that
it
should. Any suggestions??????

Thanks in advance,

Attila



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Counting based on criteria from two cells???

If the named ranges refer to entire columns....SUMPRODUCT won't work.
You'd need to specify a range.

Example:
=SUMPRODUCT(A:A) returns an error

but this one returns a correct value:
=SUMPRODUCT(A1:A1000)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"bevpike" wrote in message
...
I want to count in the following table the number of records where ColA0
and
ColB=R:

ColA ColB
1000 R
1200 R
1300 R
0 R
11150 ADJ

I tried using SUMPRODUCT(--(colA_NAME0),--(colB_NAME="R"). I defined
ColA
and ColB as named ranges.

This does not seem to work and from researching on the net it seems that
it
should. Any suggestions??????

Thanks in advance,

Attila



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Counting based on criteria from two cells???

Thank you, this did help.

Attila

"Ron Coderre" wrote:

If the named ranges refer to entire columns....SUMPRODUCT won't work.
You'd need to specify a range.

Example:
=SUMPRODUCT(A:A) returns an error

but this one returns a correct value:
=SUMPRODUCT(A1:A1000)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"bevpike" wrote in message
...
I want to count in the following table the number of records where ColA0
and
ColB=R:

ColA ColB
1000 R
1200 R
1300 R
0 R
11150 ADJ

I tried using SUMPRODUCT(--(colA_NAME0),--(colB_NAME="R"). I defined
ColA
and ColB as named ranges.

This does not seem to work and from researching on the net it seems that
it
should. Any suggestions??????

Thanks in advance,

Attila




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
Counting Nonblank cells based on criteria in another cell [email protected] Excel Discussion (Misc queries) 2 May 8th 07 03:50 PM
Function - counting based on criteria Candace Excel Worksheet Functions 2 April 20th 06 07:41 PM
counting cells (COUNTIF) based on two or more criteria Tricia S. Excel Worksheet Functions 10 March 17th 05 02:17 PM
counting based on criteria SOT Excel Worksheet Functions 0 March 9th 05 05:25 PM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM


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