smokeyclimber
New Member
- Joined
- Aug 5, 2014
- Messages
- 4
I have a data set with unique IDs in column B and dates in row 2. I am trying to make a formula that looks at a date I've selected, finds that column in the data sheet, looks at at a range that includes the found column and the 11 before it (i.e., a whole year), then counts the number of rows that have a value > 0 in that range.
I have a formula right now that returns the raw count, but I'm struggling with how to only count a row once.
The formula I started with is below.
=COUNTIFS(INDIRECT(CONCATENATE("Data!",LEFT(INDEX(Data!$A$1:$DK$2,1,MATCH(B$1,Data!$A$2:$DK$2,0)),3),":",LEFT(OFFSET(INDEX(Data!$A$1:$DK$2,1,MATCH(B$1,Data!$A$2:$DK$2,0)),0,-12),3))),">"&0)-2
If there was a ROWSIF function, I'd just use that.
Does anyone know how to count the rows only once without making a helper sheet?
I have a formula right now that returns the raw count, but I'm struggling with how to only count a row once.
The formula I started with is below.
=COUNTIFS(INDIRECT(CONCATENATE("Data!",LEFT(INDEX(Data!$A$1:$DK$2,1,MATCH(B$1,Data!$A$2:$DK$2,0)),3),":",LEFT(OFFSET(INDEX(Data!$A$1:$DK$2,1,MATCH(B$1,Data!$A$2:$DK$2,0)),0,-12),3))),">"&0)-2
If there was a ROWSIF function, I'd just use that.
Does anyone know how to count the rows only once without making a helper sheet?