I know this is an AppSheet community...but th...

I know this is an AppSheet communityโ€ฆbut there are some pretty knowledgeable folks here when it comes to formulation.

Iโ€™ve got a situation that I need help with.

This formula has work well to count the unique customer numbers amongst a huge amount of data:

=arrayformula(countunique(filter(โ€˜Schedule and Call Reportโ€™!$K$2:$K,โ€˜Schedule and Call Reportโ€™!$BC$2:$BC=โ€œxxxxxx@xxxxxxxx.comโ€,โ€˜Schedule and Call Reportโ€™!$AH$2:$AH=โ€œYesโ€))))

What I need to do now since it is a new year is dissect the data by calendar years, 2017, 2018, etc.

I thought that this would be the formula to do this:

=arrayformula(countunique(filter(โ€˜Schedule and Call Reportโ€™!$K$2:$K,โ€˜Schedule and Call Reportโ€™!$BC$2:$BC=โ€œxxxxxx@xxxxxxxx.comโ€,โ€˜Schedule and Call Reportโ€™!$AH$2:$AH=โ€œYesโ€,โ€˜Schedule and Call Reportโ€™!c:c,">=1/1/2018",โ€˜Schedule and Call Reportโ€™!c:c,"<=12/31/2018"))))

However, all this does is give me a zero when is should be 7 as my rep have entered 7 call reports, all for different (unique) customers.

Is there anyone out there that can help me with the format and where information should be entered in the formula to generate the accurate result?

In addition, this must populate automatically as new records are inputted which the original formula (first listed above) has done.

Thank you!

0 5 337
5 REPLIES 5

#ERROR!

@Bellave_Jayaram, no goโ€ฆI get #error!

@Aleksi_Alkio, anything come time mind for you on how to make this work?

Try this:

=arrayformula(countunique(filter(โ€˜Schedule and Call Reportโ€™!$K$2:$K,โ€˜Schedule and Call Reportโ€™!$BC$2:$BC=โ€œxxxxxx@xxxxxxxx.comโ€,โ€˜Schedule and Call Reportโ€™!$AH$2:$AH=โ€œYesโ€,โ€˜Schedule and Call Reportโ€™!C2:C>=DATE(2018,1,1),โ€˜Schedule and Call Reportโ€™!C2:C<=DATE(2018,12,31)))))

@Bellave_Jayaram HOLY S@%&!

It works.

That effort is worth a full dayโ€™s wage, thank you very much.

I actually thought about formatting the dates like that, but I only assumed it wouldnโ€™t make a difference.

I would love to know why that format works and the other one (1/1/2018 does notโ€ฆbut works in my other formulas).

Thank you very much.

Top Labels in this Space