Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default COUNTIF with adjacent columns

I have a spreadsheet which has a list of tasks in one column and
directly next to it whether that task is complete/not complete/
rescheduled.

For example in cell B2 the task is CL and in column C2 the task is
complete:

B C
2 CL Complete

I would like to add a tally box at the bottom for all CL tasks which
are complete, then another for not complete and another for
rescheduled. At the moment, I can only get it to COUNTIF on either the
CL or the complete value but not both together.

Any help greatly appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default COUNTIF with adjacent columns

Try this:
A B C D
20 complete not complete rescheduled
21 CL 2 2 1
22 BN 1 2 2

Formula in B21:

=SUMPRODUCT(--($A$2:$A$11=$A21),--($B$2:$B$11=B$20))

Fill it to the right and down!
Adjust ranges!


--
Regards!
Stefi



€˛Custard Tart€¯ ezt Ć*rta:

I have a spreadsheet which has a list of tasks in one column and
directly next to it whether that task is complete/not complete/
rescheduled.

For example in cell B2 the task is CL and in column C2 the task is
complete:

B C
2 CL Complete

I would like to add a tally box at the bottom for all CL tasks which
are complete, then another for not complete and another for
rescheduled. At the moment, I can only get it to COUNTIF on either the
CL or the complete value but not both together.

Any help greatly appreciated!
.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default COUNTIF with adjacent columns

On 26 Jan, 12:03, Stefi wrote:
=SUMPRODUCT(--($A$2:$A$11=$A21),--($B$2:$B$11=B$20))

Fill it to the right and down!
Adjust ranges!


Thanks for your quick reply, Stefi, but I'm not sure what I'm supposed
to be doing with that formula! I hope I've explained it well.

Tile of Column / Title of Column
CL / Complete
BL / Not Complete

Etc. with various different tasks (CL, BL, AC etc.) and complete/not
complete/rescheduled.

Thanks for any help.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default COUNTIF with adjacent columns

On Jan 26, 1:26*pm, Custard Tart wrote:
On 26 Jan, 12:03, Stefi wrote:

=SUMPRODUCT(--($A$2:$A$11=$A21),--($B$2:$B$11=B$20))


Fill it to the right and down!
Adjust ranges!


Thanks for your quick reply, Stefi, but I'm not sure what I'm supposed
to be doing with that formula! I hope I've explained it well.

Tile of Column / Title of Column
CL / Complete
BL / Not Complete

Etc. with various different tasks (CL, BL, AC etc.) and complete/not
complete/rescheduled.

Thanks for any help.


In a range at the bottom of your task list, in my example A20:D22, in
column A list all tasks (CL, BL, AC etc.), in B20:D20 list statuses
(complete/not complete/rescheduled), and copy the formula in B21, the
fill it to the right to D21 then down to D22 (of course in the real
table to Dlast_task).
In cell B21 you'll see the number of completed CL tasks, in C21 the
number of not completed CL tasks, etc.

Hope you meant this.

Regards,
Stefi
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default COUNTIF with adjacent columns

Hi,

Create a pivot table. Drag column B to the row area, column C to the column
area and column B(again) to the data area

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Custard Tart" wrote in message
...
I have a spreadsheet which has a list of tasks in one column and
directly next to it whether that task is complete/not complete/
rescheduled.

For example in cell B2 the task is CL and in column C2 the task is
complete:

B C
2 CL Complete

I would like to add a tally box at the bottom for all CL tasks which
are complete, then another for not complete and another for
rescheduled. At the moment, I can only get it to COUNTIF on either the
CL or the complete value but not both together.

Any help greatly appreciated!




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
Add cells on two adjacent rows but non-adjacent columns Eve Excel Worksheet Functions 14 October 20th 09 02:32 AM
Countif in non adjacent columns mickjjuk Excel Worksheet Functions 3 October 8th 08 02:57 PM
Using CountIf with non-adjacent cells in same column RS Excel Discussion (Misc queries) 3 June 28th 07 05:45 PM
countif = < AND value in adjacent columns match criteria crafty_girl Excel Worksheet Functions 3 April 27th 06 08:40 PM
How do I use countif across non-adjacent cells? Nick Excel Worksheet Functions 2 June 9th 05 03:28 AM


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