count index collect returning 1

Options
RaffyM
RaffyM ✭✭✭✭✭

Hello all,

Need your assistance. I read some of the similar issues here in the community but still I can't figure out what I did wrong.

I have this formula to get the unique serial number of specific product offering. The formula works fine. But if I add a date range, it returns 1. In some product offering, it also returns 1 but it should be zero (0). I tried creating helper column for serial number, but still returns 1.

Formula without date range: =COUNT(DISTINCT(COLLECT({Serial Number}, {Product Offering}, ="DT")))

Formula with date range: =COUNT(DISTINCT(COLLECT({Serial Number}, {Product Offering}, ="DT", {Audit Date}, AND(@cell >= DATE(TODAY(-14)), @cell <= DATE(TODAY(-3))))))

My goal is to count the unique SN of specific product offering in the last two weeks (Monday to Friday).

Appreciate if someone could help me out, thank you in advance. πŸ˜‰

Best Answers

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!