Home > Mobile >  how to count how many Tuesdays and Wednesdays between two dates?
how to count how many Tuesdays and Wednesdays between two dates?

Time:01-13

The input is an array [Tuesday, Wednesday] but it is should be stored in one cell only. Using this input I want to know how many days between two dates.

I found a reference but I don't know how to make it as dynamic because it only accept integer weekday.

enter image description here

CodePudding user response:

use:

=SUMPRODUCT(REGEXMATCH(TEXT(SEQUENCE(DAYS(B2, B1) 1, 1, B1), 
 "dddd"), REGEXREPLACE(A4, ", ?", "|")))

enter image description here

  • Related