Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4
Default Nested Countif

I have a spreadsheet with 2 columns

A B
we 6
re 4
re 3
we 6
we 5

How can I do a count of B = 6 and A= we
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Nested Countif

Try this:

=SUMPRODUCT(--(A1:A5="we"),--(B1:B5=6))


--
Biff
Microsoft Excel MVP


"joshpub" wrote in message
...
I have a spreadsheet with 2 columns

A B
we 6
re 4
re 3
we 6
we 5

How can I do a count of B = 6 and A= we



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4
Default Nested Countif

The formula worked I think but no matter the conditions I put it returns the
same answer

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A1:A5="we"),--(B1:B5=6))


--
Biff
Microsoft Excel MVP


"joshpub" wrote in message
...
I have a spreadsheet with 2 columns

A B
we 6
re 4
re 3
we 6
we 5

How can I do a count of B = 6 and A= we




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4
Default Nested Countif

WOULD IT HAVE MADE A DIFFERENCE IF THE COLUMNS ARE TEXT?

A B
We open
Re closed
Re open
We closed
We open



"joshpub" wrote:

The formula worked I think but no matter the conditions I put it returns the
same answer

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A1:A5="we"),--(B1:B5=6))


--
Biff
Microsoft Excel MVP


"joshpub" wrote in message
...
I have a spreadsheet with 2 columns

A B
we 6
re 4
re 3
we 6
we 5

How can I do a count of B = 6 and A= we




  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Nested Countif

Just make sure you enclose the TEXT criteria in quotes:

=SUMPRODUCT(--(A1:A5="we"),--(B1:B5="open"))

Or, use cells to hold the criteria then you don't have to worry about
quotes:

D1 = we
E1 = open

=SUMPRODUCT(--(A1:A5=D1),--(B1:B5=E1))

Also note that with SUMPRODUCT you can't use entire columns as range
references unless you're using Excel 2007.


--
Biff
Microsoft Excel MVP


"joshpub" wrote in message
...
WOULD IT HAVE MADE A DIFFERENCE IF THE COLUMNS ARE TEXT?

A B
We open
Re closed
Re open
We closed
We open



"joshpub" wrote:

The formula worked I think but no matter the conditions I put it returns
the
same answer

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A1:A5="we"),--(B1:B5=6))


--
Biff
Microsoft Excel MVP


"joshpub" wrote in message
...
I have a spreadsheet with 2 columns

A B
we 6
re 4
re 3
we 6
we 5

How can I do a count of B = 6 and A= we







  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4
Default Nested Countif

Thank you that worked perfect

"T. Valko" wrote:

Just make sure you enclose the TEXT criteria in quotes:

=SUMPRODUCT(--(A1:A5="we"),--(B1:B5="open"))

Or, use cells to hold the criteria then you don't have to worry about
quotes:

D1 = we
E1 = open

=SUMPRODUCT(--(A1:A5=D1),--(B1:B5=E1))

Also note that with SUMPRODUCT you can't use entire columns as range
references unless you're using Excel 2007.


--
Biff
Microsoft Excel MVP


"joshpub" wrote in message
...
WOULD IT HAVE MADE A DIFFERENCE IF THE COLUMNS ARE TEXT?

A B
We open
Re closed
Re open
We closed
We open



"joshpub" wrote:

The formula worked I think but no matter the conditions I put it returns
the
same answer

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A1:A5="we"),--(B1:B5=6))


--
Biff
Microsoft Excel MVP


"joshpub" wrote in message
...
I have a spreadsheet with 2 columns

A B
we 6
re 4
re 3
we 6
we 5

How can I do a count of B = 6 and A= we






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 I use nested countif statements? Frank P Florida Excel Worksheet Functions 11 May 3rd 23 07:41 PM
Nested IF and Countif ? LPS Excel Worksheet Functions 6 December 5th 07 07:45 PM
nested countif FLChick Excel Worksheet Functions 5 September 4th 07 05:18 PM
Using nested IFs with CountIf Excel novice Excel Worksheet Functions 7 May 12th 06 11:32 AM
Nested Countif wayne75 Excel Worksheet Functions 2 June 3rd 05 04:30 PM


All times are GMT +1. The time now is 03:08 PM.

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"