Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Formula for counting cells with value 'x' provided Col U = 'y'

Hi guys,
Need some help with a formula please. Have tried myself and know that the
answer is straightforward but going through a mental block!

Col Q Col R
A01 58
A01 62
P02 62

Both columns data starts in cell 14 and runs down to cell 10000.
I need to count the entries in Column Q that = A01 ONLY IF Col R = 62. Then
do the same for Q = A01 ONLY IF R = 58, and so on. The worksheet is a
year-to-date file and will be updated weekly with many entries in both
columns with varying values.

Many thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Formula for counting cells with value 'x' provided Col U = 'y'

Hi,

=SUMPRODUCT((Q1:Q10000="A01")*(R1:R10000=62))

change values to get the other conbinations

"J.Scargill" wrote:

Hi guys,
Need some help with a formula please. Have tried myself and know that the
answer is straightforward but going through a mental block!

Col Q Col R
A01 58
A01 62
P02 62

Both columns data starts in cell 14 and runs down to cell 10000.
I need to count the entries in Column Q that = A01 ONLY IF Col R = 62. Then
do the same for Q = A01 ONLY IF R = 58, and so on. The worksheet is a
year-to-date file and will be updated weekly with many entries in both
columns with varying values.

Many thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula for counting cells with value 'x' provided Col U = 'y'

Try one of these...

Any version of Excel:

=SUMPRODUCT(--(Q14:Q10000="A01"),--(R14:R10000=62))

Excel 2007 or later:

=COUNTIFS(Q14:Q10000,"A01",R14:R10000,62)

--
Biff
Microsoft Excel MVP


"J.Scargill" wrote in message
...
Hi guys,
Need some help with a formula please. Have tried myself and know that the
answer is straightforward but going through a mental block!

Col Q Col R
A01 58
A01 62
P02 62

Both columns data starts in cell 14 and runs down to cell 10000.
I need to count the entries in Column Q that = A01 ONLY IF Col R = 62.
Then
do the same for Q = A01 ONLY IF R = 58, and so on. The worksheet is a
year-to-date file and will be updated weekly with many entries in both
columns with varying values.

Many thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Formula for counting cells with value 'x' provided Col U = 'y'

Hi,

Select the range of data (including the header row) and convert it to a
Table/List (Ctrl+L). Now create a pivot table. Drag column Q to the row
area, column R also to the row area and column Q to the data area. This
should get you what you want.

Now when you add any row of data to the range, just right click and refresh
the pivot

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"J.Scargill" wrote in message
...
Hi guys,
Need some help with a formula please. Have tried myself and know that the
answer is straightforward but going through a mental block!

Col Q Col R
A01 58
A01 62
P02 62

Both columns data starts in cell 14 and runs down to cell 10000.
I need to count the entries in Column Q that = A01 ONLY IF Col R = 62.
Then
do the same for Q = A01 ONLY IF R = 58, and so on. The worksheet is a
year-to-date file and will be updated weekly with many entries in both
columns with varying values.

Many thanks.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Formula for counting cells with value 'x' provided Col U = 'y'

Great, thanks for your help with this and the last few Biff! Greatly
appreciated.

"T. Valko" wrote:

Try one of these...

Any version of Excel:

=SUMPRODUCT(--(Q14:Q10000="A01"),--(R14:R10000=62))

Excel 2007 or later:

=COUNTIFS(Q14:Q10000,"A01",R14:R10000,62)

--
Biff
Microsoft Excel MVP


"J.Scargill" wrote in message
...
Hi guys,
Need some help with a formula please. Have tried myself and know that the
answer is straightforward but going through a mental block!

Col Q Col R
A01 58
A01 62
P02 62

Both columns data starts in cell 14 and runs down to cell 10000.
I need to count the entries in Column Q that = A01 ONLY IF Col R = 62.
Then
do the same for Q = A01 ONLY IF R = 58, and so on. The worksheet is a
year-to-date file and will be updated weekly with many entries in both
columns with varying values.

Many thanks.



.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula for counting cells with value 'x' provided Col U = 'y'

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"J.Scargill" wrote in message
...
Great, thanks for your help with this and the last few Biff! Greatly
appreciated.

"T. Valko" wrote:

Try one of these...

Any version of Excel:

=SUMPRODUCT(--(Q14:Q10000="A01"),--(R14:R10000=62))

Excel 2007 or later:

=COUNTIFS(Q14:Q10000,"A01",R14:R10000,62)

--
Biff
Microsoft Excel MVP


"J.Scargill" wrote in message
...
Hi guys,
Need some help with a formula please. Have tried myself and know that
the
answer is straightforward but going through a mental block!

Col Q Col R
A01 58
A01 62
P02 62

Both columns data starts in cell 14 and runs down to cell 10000.
I need to count the entries in Column Q that = A01 ONLY IF Col R = 62.
Then
do the same for Q = A01 ONLY IF R = 58, and so on. The worksheet is a
year-to-date file and will be updated weekly with many entries in both
columns with varying values.

Many thanks.



.



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
Counting blank cells in a formula Krashn Excel Worksheet Functions 4 September 20th 07 03:47 AM
Confirmation ID provided? chevy New Users to Excel 2 April 15th 06 06:22 PM
Formula for counting number of cells Pawan Excel Discussion (Misc queries) 2 February 22nd 06 05:20 AM
Counting cells with formula CF (not value CF) jc Excel Worksheet Functions 2 December 22nd 05 08:21 PM
How do I write a formula to color code based on dates provided or. jaime Excel Worksheet Functions 2 February 17th 05 12:41 AM


All times are GMT +1. The time now is 06:11 AM.

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"