I have two columns A:A (dates) and B:B (items)
..... I need to find a formula to calculate how many of each unique item are in column B : B in the last 365 days. In the example the right value in the formula is 2
I have two columns A:A (dates) and B:B (items)
..... I need to find a formula to calculate how many of each unique item are in column B : B in the last 365 days. In the example the right value in the formula is 2
=count(unique(filter(B:B; A:A > today() - 365)))
The most interesting part is filter(B:B; A:A > today() - 365), which finds all items in 'B' column where there are 'A' column values greater than 365 days ago. Then leave only unique values and count them.