I am trying to count the number of times the number 7 appears in the date for any given month, and add them so I can count down to the next occurrence - like the 7, 17, and 27 of each month. So far I have a formula which will only return a positive result if the current day has a 7 in it - such as today. My formula, =COUNTIF(B1,"*7*")
, where B1 is the cell with today’s date in it, returns a 1. I have tried combining this with the MONTH()
function, but that results in an error.
Thank you for any assistance.