Formula not capturing information

datadummy

Active Member
Joined
Mar 16, 2017
Messages
313
Office Version
  1. 365
Platform
  1. Windows
I have a countifs formula that is as follows =COUNTIFS($B73,"May",$C73,"N") and each of the cells has the necessary data entered to be counted but its not counting. After trial and error I have determined that its not counting because cell B73 has multiple entries May and July so I am wondering how do I still account for the May entry while still allowing for multiple entries in B73?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Why would you be using a COUNTIFS function on a single row? It is usually applied on a whole range of rows (otherwise your count will just be 1 or 0).
Do you just want to see if the word "May" appears anywhere in cell B73 and C73 is equal to "N"?

If so, you could use either of these to return the count (of 1 or 0):
=COUNTIFS($B73,"*May*",$C73,"N")
=ISNUMBER(SEARCH("May",$B73))*($C73="N")

or this to return TRUE or FALSE
=AND(ISNUMBER(SEARCH("May",$B73)),($C73="N"))
 
Upvote 0
If you are trying to find out how many times May exists in the cell, try something like
=IF(C73="n",(LEN(B73)-LEN(SUBSTITUTE(B73,"May","")))/3,0)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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