I have a table with the following data:
| <A> | <B> |
| Event | Date |
| Evt1 | 1 Oct |
| Evt1 | 1 Oct |
| Evt2 | 1 Oct |
| Evt1 | 2 Oct |
I wish to create a formula which will return how many days there were when event1 occured at least once. I.e. count how many unique values are there in the column <B>
in such rows, where the value in <A>
is “Evt1”. I’m not interested in this information for any other events. Which functions should I use? Is it possible at all without a macro?
In my particular case this formula must return 2 (there were two distinct days: 1 Oct and 2 Oct).
BTW I’ve found something that looks relevant but failed to adapt it to my case: MSOffice help article.
I’d prefer not using a macro since it’s more portable across LO/MS Office and since it does not issue a warning about embedded macros.