Row counts based on values in two columns

Ed Judge

New Member
Joined
Apr 20, 2012
Messages
5
I have a workbook ( actually several) with multiple, similar worksheets. I need to give a total row count (for each sheet) based on values found in two columns.
The values in Column F will either be 'Yes' or 'No'. The values in Column K will either be 'Absent' or 'Changed'.
I need to find the total rows where:
Col F = 'Yes' and Col K = 'Absent'
Col F = 'Yes' and Col K = 'Changed'
Col F = 'No' and Col K = 'Absent'
Col F = 'No' and Col K = 'Changed'

The number of rows in each sheet will vary.

Any assistance in pointing me in the right direction will be appreciated.

Ed Judge
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I have a workbook ( actually several) with multiple, similar worksheets. I need to give a total row count (for each sheet) based on values found in two columns.
The values in Column F will either be 'Yes' or 'No'. The values in Column K will either be 'Absent' or 'Changed'.
I need to find the total rows where:
Col F = 'Yes' and Col K = 'Absent'
Col F = 'Yes' and Col K = 'Changed'
Col F = 'No' and Col K = 'Absent'
Col F = 'No' and Col K = 'Changed'

The number of rows in each sheet will vary.

Any assistance in pointing me in the right direction will be appreciated.

Ed Judge
What version of Excel are you using?
 
Upvote 0
I'm using Excel for Mac 2011.
Try these...

=COUNTIFS(F:F,"yes",K:K,"absent")

=COUNTIFS(F:F,"yes",K:K,"changed")

=COUNTIFS(F:F,"no",K:K,"absent")

=COUNTIFS(F:F,"no",K:K,"changed")

You can use cells to hold the criteria and then refer to those cells instead of hardcoding like I did.
 
Upvote 0
Try these...

=COUNTIFS(F:F,"yes",K:K,"absent")

=COUNTIFS(F:F,"yes",K:K,"changed")

=COUNTIFS(F:F,"no",K:K,"absent")

=COUNTIFS(F:F,"no",K:K,"changed")

You can use cells to hold the criteria and then refer to those cells instead of hardcoding like I did.

Thanks, that worked well.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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