countifs with conditional on specific text

drop05

Active Member
Joined
Mar 23, 2021
Messages
285
Office Version
  1. 365
Platform
  1. Windows
Hello i am trying to find a way to take the below countifs statement and update it to where through the range D23 to D8622 it counts the number of "X"s where the cells in the range B23 to B8622 equal "Section Mark X"
there are multiple cells down the B range where the cells have Section Mark X and they start from 24, the next one is 67, 110, 153 so about every 43 cells down and 2 columns down there may be an X so D24, D67, D110, but its not guaranteed that there will be an X

=COUNTIFS(D$23:D$8622,"X")

example if there was the sheet like this below the count looking for is 4 since there is 4 X for every section mark X cell
Section Mark XX
Section Mark XX
Section Mark X
Section Mark X
Section Mark XX
Section Mark XX
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Excel Formula:
=COUNTIFS(C$23:C$8622, "Section Mark X", D$23:D$8622, "X")
 
Upvote 0
Excel Formula:
=COUNTIFS(C$23:C$8622, "Section Mark X", D$23:D$8622, "X")
Thank you! Sorry forgot to add, how would it be possible to where the X in Section mark X is in quotes; Section Mark "X"
 
Upvote 0
Excel Formula:
=COUNTIFS(C$23:C$8622, "Section Mark ""X""", D$23:D$8622, "X")
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,120
Members
453,021
Latest member
Justyna P

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