Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

COUNTIF Multiple conditions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
stretch - 12 May 2008 08:55 GMT
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
Pete_UK - 12 May 2008 09:13 GMT
You could try it this way:

=SUMPRODUCT((A1:A100="May")*(B1:B100>0))

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

Hope this helps.

Pete

> 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
[quoted text clipped - 7 lines]
> 4    March    40
> 5    May       50
Adilson Soledade - 12 May 2008 12:05 GMT
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:B100>0))

Signature

Adilson Soledade

> You could try it this way:
>
[quoted text clipped - 18 lines]
> > 4    March    40
> > 5    May       50
stretch - 12 May 2008 15:43 GMT
Data was formatted to show month only, many thanks, problem solved.

> If the data in column A are data formated to show month only, you could use
> this:
[quoted text clipped - 22 lines]
> > > 4    March    40
> > > 5    May       50

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.