#1   Report Post  
Lisa
 
Posts: n/a
Default COUNTIF FUNCTION

How can I COUNTIF values in Column A = "Manchester" AND values in column B =
"Overdue"
i.e I have a sheet with lots of locations in Column A, and Overdue or "OK"
in Column B, but i want to know how many overdues there arevfor particular
locations!
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Lisa

one way

=SUMPRODUCT(--(A1:A1000="Manchester"),--(B1:B1000="Overdue"))

note however that you can not use A:A or B:B with SUMPRODUCT

for more details on how this function works check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Cheers
julieD


"Lisa" wrote in message
...
How can I COUNTIF values in Column A = "Manchester" AND values in column B
=
"Overdue"
i.e I have a sheet with lots of locations in Column A, and Overdue or "OK"
in Column B, but i want to know how many overdues there arevfor particular
locations!



  #3   Report Post  
K.S.Warrier
 
Posts: n/a
Default

Hi,
To count the numbers only,try this
=countif(A1:A1000,"Manchester")+countif(B1:B1000," Overdue")

Thanking you,
K.S.Warrier

"JulieD" wrote:

Hi Lisa

one way

=SUMPRODUCT(--(A1:A1000="Manchester"),--(B1:B1000="Overdue"))

note however that you can not use A:A or B:B with SUMPRODUCT

for more details on how this function works check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Cheers
julieD


"Lisa" wrote in message
...
How can I COUNTIF values in Column A = "Manchester" AND values in column B
=
"Overdue"
i.e I have a sheet with lots of locations in Column A, and Overdue or "OK"
in Column B, but i want to know how many overdues there arevfor particular
locations!




  #4   Report Post  
JulieD
 
Posts: n/a
Default

Hi KS

this will give a count of ALL Manchester plus ALL overdue - not overdue in
Manchester.
i.e.
Location Status
Manchester Paid
Machester Overdue
Lincolnshire Overdue

you're formula will return 4 not 1

Cheers
JulieD

"K.S.Warrier" wrote in message
...
Hi,
To count the numbers only,try this
=countif(A1:A1000,"Manchester")+countif(B1:B1000," Overdue")

Thanking you,
K.S.Warrier

"JulieD" wrote:

Hi Lisa

one way

=SUMPRODUCT(--(A1:A1000="Manchester"),--(B1:B1000="Overdue"))

note however that you can not use A:A or B:B with SUMPRODUCT

for more details on how this function works check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Cheers
julieD


"Lisa" wrote in message
...
How can I COUNTIF values in Column A = "Manchester" AND values in
column B
=
"Overdue"
i.e I have a sheet with lots of locations in Column A, and Overdue or
"OK"
in Column B, but i want to know how many overdues there arevfor
particular
locations!






  #5   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Another way to summarize the data is by using a pivot table. There are
instructions in Excel's help, and some instructions and links he

http://peltiertech.com/Excel/Pivots/pivotstart.htm

Create a pivot table with Location in the row area, and Status in the
column area. Add another copy of Location to the Data area, where it
will become Count of Location.

Lisa wrote:
How can I COUNTIF values in Column A = "Manchester" AND values in column B =
"Overdue"
i.e I have a sheet with lots of locations in Column A, and Overdue or "OK"
in Column B, but i want to know how many overdues there arevfor particular
locations!



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



  #6   Report Post  
Lisa
 
Posts: n/a
Default

Brilliant! - Thanks Julie

"JulieD" wrote:

Hi Lisa

one way

=SUMPRODUCT(--(A1:A1000="Manchester"),--(B1:B1000="Overdue"))

note however that you can not use A:A or B:B with SUMPRODUCT

for more details on how this function works check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Cheers
julieD


"Lisa" wrote in message
...
How can I COUNTIF values in Column A = "Manchester" AND values in column B
=
"Overdue"
i.e I have a sheet with lots of locations in Column A, and Overdue or "OK"
in Column B, but i want to know how many overdues there arevfor particular
locations!




  #7   Report Post  
Lisa B
 
Posts: n/a
Default

Brilliant - Thanks Julie!Lisa

"JulieD" wrote:

Hi Lisa

one way

=SUMPRODUCT(--(A1:A1000="Manchester"),--(B1:B1000="Overdue"))

note however that you can not use A:A or B:B with SUMPRODUCT

for more details on how this function works check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Cheers
julieD


"Lisa" wrote in message
...
How can I COUNTIF values in Column A = "Manchester" AND values in column B
=
"Overdue"
i.e I have a sheet with lots of locations in Column A, and Overdue or "OK"
in Column B, but i want to know how many overdues there arevfor particular
locations!




  #8   Report Post  
JulieD
 
Posts: n/a
Default

you're welcome

"Lisa B" <Lisa wrote in message
...
Brilliant - Thanks Julie!Lisa

"JulieD" wrote:

Hi Lisa

one way

=SUMPRODUCT(--(A1:A1000="Manchester"),--(B1:B1000="Overdue"))

note however that you can not use A:A or B:B with SUMPRODUCT

for more details on how this function works check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Cheers
julieD


"Lisa" wrote in message
...
How can I COUNTIF values in Column A = "Manchester" AND values in
column B
=
"Overdue"
i.e I have a sheet with lots of locations in Column A, and Overdue or
"OK"
in Column B, but i want to know how many overdues there arevfor
particular
locations!






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
using countif function to add only a half of a number ryanjh79 Excel Discussion (Misc queries) 9 April 26th 23 03:42 AM
something wrong with my "countif" function ryanjh79 Excel Discussion (Misc queries) 3 December 17th 04 06:59 PM
Advanced COUNTIF Function License Boy Excel Worksheet Functions 3 December 8th 04 02:23 PM
The countif function in Excel 2002. Lounsbud Excel Worksheet Functions 1 November 22nd 04 03:19 PM
hOW TO USE THE AND OPERATOR WITH THE COUNTIF FUNCTION Marty Excel Worksheet Functions 1 November 11th 04 09:45 PM


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