kengooch
Member
- Local time
- Today, 03:22
- Joined
- Feb 29, 2012
- Messages
- 137
So I have an equation that counts the number of Yes, No in a workbook, but the workbook number of rows changes each day. Here is the equation
I can figure out the last row using
So the question is... How do I incorporate the Last Row lookup code into the Count formula. I have tried using " & in many various combinations with no luck. What I need to do is CountA(A3:A"&LOOKUP(2,1 / (A:AB <> ""),ROW(A:A))&")" or something like that is my guess...
="MWV has "&COUNTA(A3:A307)&" positive COVID Cases."&" Of those cases "&TEXT((COUNTIF(J3:J281,"*Y*")/COUNTA(A3:A307))*100,"###.#")&"% or ("&(COUNTIF(J3:J281,"*Y*")&" cases) were vaccinated and we have ("&COUNTIF(J3:J281,"*n*")&" cases) or "&TEXT((COUNTIF(J3:J281,"*n*")/COUNTA(A3:A307))*100,"###.#")&"% from non-vaccinated staff.")
I can figure out the last row using
LOOKUP(2,1 / (A:AB <> ""),ROW(A:A))
So the question is... How do I incorporate the Last Row lookup code into the Count formula. I have tried using " & in many various combinations with no luck. What I need to do is CountA(A3:A"&LOOKUP(2,1 / (A:AB <> ""),ROW(A:A))&")" or something like that is my guess...