Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default COUNTIF Multiple conditions

I have a worksheet were I want to count the number of times a number larger
than 0 appears in the second column 'B', but only if the month is 'May' in
the first column 'A'. I seem to have problems using multiple COUNTIF
conditions, the solution is probably easy but its driving me mad!


A B
1 May 0
2 Feb 0
3 May 15
4 March 40
5 May 50


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default COUNTIF Multiple conditions

You could try it this way:

=SUMPRODUCT((A1:A100="May")*(B1:B1000))

This assumes that your months are entered as text values and not as
dates formatted to show only the month.

Hope this helps.

Pete

On May 12, 8:55*am, stretch wrote:
I have a worksheet were I want to count the number of times a number larger
than 0 appears in the second column 'B', but only if the month is 'May' in
the first column 'A'. I seem to have problems using multiple COUNTIF
conditions, the solution is probably easy but its driving me mad!

* * * * A * * * *B
1 * *May * * * 0
2 * *Feb * * * *0
3 * *May * * * 15
4 * *March * *40
5 * *May * * * 50


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default COUNTIF Multiple conditions

If the data in column A are data formated to show month only, you could use
this:
=SUMPRODUCT(N(MONTH(A1:A100)=5),N(B1:B1000))

--
Adilson Soledade


"Pete_UK" wrote:

You could try it this way:

=SUMPRODUCT((A1:A100="May")*(B1:B1000))

This assumes that your months are entered as text values and not as
dates formatted to show only the month.

Hope this helps.

Pete

On May 12, 8:55 am, stretch wrote:
I have a worksheet were I want to count the number of times a number larger
than 0 appears in the second column 'B', but only if the month is 'May' in
the first column 'A'. I seem to have problems using multiple COUNTIF
conditions, the solution is probably easy but its driving me mad!

A B
1 May 0
2 Feb 0
3 May 15
4 March 40
5 May 50



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default COUNTIF Multiple conditions

Data was formatted to show month only, many thanks, problem solved.

"Adilson Soledade" wrote:

If the data in column A are data formated to show month only, you could use
this:
=SUMPRODUCT(N(MONTH(A1:A100)=5),N(B1:B1000))

--
Adilson Soledade


"Pete_UK" wrote:

You could try it this way:

=SUMPRODUCT((A1:A100="May")*(B1:B1000))

This assumes that your months are entered as text values and not as
dates formatted to show only the month.

Hope this helps.

Pete

On May 12, 8:55 am, stretch wrote:
I have a worksheet were I want to count the number of times a number larger
than 0 appears in the second column 'B', but only if the month is 'May' in
the first column 'A'. I seem to have problems using multiple COUNTIF
conditions, the solution is probably easy but its driving me mad!

A B
1 May 0
2 Feb 0
3 May 15
4 March 40
5 May 50



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
Countif with multiple conditions torooo Excel Discussion (Misc queries) 5 December 7th 07 07:03 PM
CountIf multiple conditions ashg657 Excel Worksheet Functions 2 March 12th 07 08:55 AM
CountIf with multiple conditions Thor Excel Worksheet Functions 2 September 22nd 06 08:59 PM
Multiple conditions on a countif Mr Mike Excel Worksheet Functions 5 January 24th 06 01:52 PM
COUNTIF using multiple conditions? Muse of Fire New Users to Excel 3 December 29th 04 08:49 PM


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