Search code examples
excelexcel-formulaformula

Calculating new and returning Customer Per Month in Excel


I am using this formula to calculate the new and returning customers per month.

=COUNTIFS(neww,1,date,">="&BH2,date,"<="&EOMONTH(BH2,0))

enter image description here

Im getting 0 everywhere. What I am doing wrong here?

This is the excel file : https://docs.google.com/spreadsheets/d/1PbB1XdRM539gyMvmclXUW8lXncDNJRzI/edit?usp=sharing&ouid=109497970689912563119&rtpof=true&sd=true


Solution

  • The problem is that EOMONTH() expects a number in it's 1st parameter. You currently use a text. Therefor you could try:

    =COUNTIFS(neww,1,date,">="&--("1-"&BH2),date,"<="&EOMONTH(--("1-"&BH2),0))
    

    enter image description here