Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Leonhardtk
 
Posts: n/a
Default COUNTIF with Logic?

I have a statement (below) that works fine for finding all instances where a
person performed a task:

=COUNTIF('Doc Log'!B2:B126,STATS!B3)

(B2-B126 is where I'd find the person's name, and STATS!B3 is their name
from a summary table) I want to add a statement so that I'd only count their
name if, say C2:C126 has the value "Delivered" in it for that same line.
For example if the first three lines we

A1 B1 C1
1 Jan 06 | Smith|Delivered
1 Jan 06 | Simms|Reviewed
1 Jan 06 | Smith| Reviewed
1 Jan 06 | Smith| Delivered

I need two statements for Smith
COUNTIF "SMITH" and "Delivered" (SMITH and Delivered must be on same row!)
COUNTIF "SMITH" and "Reviewed"
In the example above, I also need to do
COUNTIF "Simms" and "Reviewed" etc.

Appreciate any help anyone might be able to provide!

KSL
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default COUNTIF with Logic?

=SUMPRODUCT)--('Doc Log'!B2:B126=STATS!B3),--('Doc
Log'!C2:C126="Delivered"))

etc.


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leonhardtk" wrote in message
...
I have a statement (below) that works fine for finding all instances where

a
person performed a task:

=COUNTIF('Doc Log'!B2:B126,STATS!B3)

(B2-B126 is where I'd find the person's name, and STATS!B3 is their name
from a summary table) I want to add a statement so that I'd only count

their
name if, say C2:C126 has the value "Delivered" in it for that same line.
For example if the first three lines we

A1 B1 C1
1 Jan 06 | Smith|Delivered
1 Jan 06 | Simms|Reviewed
1 Jan 06 | Smith| Reviewed
1 Jan 06 | Smith| Delivered

I need two statements for Smith
COUNTIF "SMITH" and "Delivered" (SMITH and Delivered must be on same row!)
COUNTIF "SMITH" and "Reviewed"
In the example above, I also need to do
COUNTIF "Simms" and "Reviewed" etc.

Appreciate any help anyone might be able to provide!

KSL



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Leonhardtk
 
Posts: n/a
Default COUNTIF with Logic?

Perfect (except the first Parenthesis, which is backwards). Exactly what I
was looking for.

KSL

"Bob Phillips" wrote:

=SUMPRODUCT)--('Doc Log'!B2:B126=STATS!B3),--('Doc
Log'!C2:C126="Delivered"))

etc.


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leonhardtk" wrote in message
...
I have a statement (below) that works fine for finding all instances where

a
person performed a task:

=COUNTIF('Doc Log'!B2:B126,STATS!B3)

(B2-B126 is where I'd find the person's name, and STATS!B3 is their name
from a summary table) I want to add a statement so that I'd only count

their
name if, say C2:C126 has the value "Delivered" in it for that same line.
For example if the first three lines we

A1 B1 C1
1 Jan 06 | Smith|Delivered
1 Jan 06 | Simms|Reviewed
1 Jan 06 | Smith| Reviewed
1 Jan 06 | Smith| Delivered

I need two statements for Smith
COUNTIF "SMITH" and "Delivered" (SMITH and Delivered must be on same row!)
COUNTIF "SMITH" and "Reviewed"
In the example above, I also need to do
COUNTIF "Simms" and "Reviewed" etc.

Appreciate any help anyone might be able to provide!

KSL




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default COUNTIF with Logic?

Just checking you were paying attention <vbg

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leonhardtk" wrote in message
...
Perfect (except the first Parenthesis, which is backwards). Exactly what

I
was looking for.

KSL

"Bob Phillips" wrote:

=SUMPRODUCT)--('Doc Log'!B2:B126=STATS!B3),--('Doc
Log'!C2:C126="Delivered"))

etc.


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leonhardtk" wrote in message
...
I have a statement (below) that works fine for finding all instances

where
a
person performed a task:

=COUNTIF('Doc Log'!B2:B126,STATS!B3)

(B2-B126 is where I'd find the person's name, and STATS!B3 is their

name
from a summary table) I want to add a statement so that I'd only

count
their
name if, say C2:C126 has the value "Delivered" in it for that same

line.
For example if the first three lines we

A1 B1 C1
1 Jan 06 | Smith|Delivered
1 Jan 06 | Simms|Reviewed
1 Jan 06 | Smith| Reviewed
1 Jan 06 | Smith| Delivered

I need two statements for Smith
COUNTIF "SMITH" and "Delivered" (SMITH and Delivered must be on same

row!)
COUNTIF "SMITH" and "Reviewed"
In the example above, I also need to do
COUNTIF "Simms" and "Reviewed" etc.

Appreciate any help anyone might be able to provide!

KSL






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 or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Logic question ACDenver Excel Discussion (Misc queries) 1 August 16th 05 04:29 AM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif with AND logic mlkpied Excel Worksheet Functions 8 December 9th 04 11:47 AM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 10:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"