Question

I am working on a project, and want to do the following:

I have a spreadsheet that has a datetime timestamp, a username (text string) and some other data irrelevant to me.

I want to count the number of rows in a date range and where the username equals a certain text string.

Please help! I have been looking at lots of message boards to try find the answers to this.

Thanks in advance

Was it helpful?

Solution

This formula can help:

=COUNTIFS(K:K,"abc",J:J,">="&J2,J:J,"<="&J15)

Where K:K is the range where you have the usernames and "abc" is a sample name. And J:J is the timestamps range. J2 contains begin date and J15 contains end date for the required range.

Make sure date in J2 is lower than the date in J15 otherwise it will give 0 as answer

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top