Formula not capturing information

datadummy

Active Member
Joined
Mar 16, 2017
Messages
312
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,214,641
Messages
6,120,688
Members
448,978
Latest member
rrauni

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