Need count formula

kelly1

Well-known Member
Joined
May 11, 2003
Messages
525
I need to create an analysis on ‘sheet 2’ of the data on ‘sheet 1’


I need a formula that counts the occurrences of when the following match:

Sheet 2 ‘Column A’ = ‘Date’
Sheet 1 ‘Column G’ = ‘Date’
Sheet 1 ‘Column I’ = ‘Finish’
Sheet 1 ‘Column K’ = ‘Paul’

And put the result in Sheet 2 ‘Column B’

Any help appreciated

Kelly
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
kelly1 said:
I need to create an analysis on ‘sheet 2’ of the data on ‘sheet 1’


I need a formula that counts the occurrences of when the following match:

Sheet 2 ‘Column A’ = ‘Date’
Sheet 1 ‘Column G’ = ‘Date’
Sheet 1 ‘Column I’ = ‘Finish’
Sheet 1 ‘Column K’ = ‘Paul’

And put the result in Sheet 2 ‘Column B’

Any help appreciated

Kelly

Did you mean Sheet 2 (in red) above?
 
Upvote 0
Given the way you specify what must be counted...

=SUMPRODUCT((Sheet1!$A$2:$A$100=A2)*(Sheet1!$I$2:$I$100="Finish")*(Sheet1!$K$2:$K$100="Paul"))

If this is way off, try again.
 
Upvote 0
I used the sumproduct and it worked fine.
I had a similar one but wanted to be sure and get other opinions as I am working on such a vital project for work.

Thanks for the help

kelly
 
Upvote 0
Since you expressed an interest in varied approaches, here's another...

{=COUNT(IF(Sheet1!$A$2:$A$100=A2,IF(Sheet1!$I$2:$I$100="Finish",IF(Sheet1!$K$2:$K$100="Paul",1))))}

Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. For more on array formulas see the Excel Help topic for "About array formulas...".
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top