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 / Worksheet Functions / March 2006

Tip: Looking for answers? Try searching our database.

countif

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
play01 - 20 Mar 2006 17:35 GMT
=AND(COUNTIF(A1:A5,"HM"))*(COUNTIF(B1:B5,"5"))
Trying to calculate the following:
A       B
1   HM    5
2   HM    2
3   HM    4
4   HG    5
5   HM    5

Count the number of times "HM" is in column A and "5" is in column B.

Thanks for the help.
Tod
Trevor Shuttleworth - 20 Mar 2006 17:46 GMT
Todd

=SUMPRODUCT((A1:A5="HM")*(B1:B5=5))

Regards

Trevor

> =AND(COUNTIF(A1:A5,"HM"))*(COUNTIF(B1:B5,"5"))
> Trying to calculate the following:
[quoted text clipped - 9 lines]
> Thanks for the help.
> Todd
daddylonglegs - 20 Mar 2006 17:51 GMT
Try this

=SUMPRODUCT(--(A1:A5="HM"),--(B1:B5=5))

If the 5 is text not numeric then use "5" instea
 
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



©2009 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.