Forum Discussion

VanDerWallas's avatar
VanDerWallas
Copper Contributor
May 09, 2024

Wildcard characters not working in COUNTIFS function

Hi y'all, this was a real brain scratcher for me, I gave up and went to the internet looking for answers. Here's my situation: I have two columns. Column 1 has names in it, Column 2 has dates (in t...
  • HansVogelaar's avatar
    May 09, 2024

    VanDerWallas 

    This is because Excel stores dates as numbers not as text.

    "30.04.2024" works because it is a complete date, but "*.04.2024" is not recognized as a date.

    Also, the ranges are specified incorrectly.

    Use this instead:

     

    =COUNTIFS(A21:A500; "John Doe"; B21:B500; ">="&DATE(2024; 4; 1); B21:B500; "<="&DATE(2024; 4; 30))

Resources