brianclong
Board Regular
- Joined
- Apr 11, 2006
- Messages
- 168
Master Guru's, hello. Is there a shorter formula to replace this one, which counts the number of instances a combination of text appears in adjacent columns (in other words, the word "Car" appears in column C and the word "Accident" appears in column D.
I'm thinking I could cut this down if I had a more efficient way to factor in an infinite range (in other words $C19:C+Infinity) - as right now I'm using offset/max/counta. Is there a better way? Thank you.
=SUMPRODUCT((Report!$C$19:OFFSET(Report!$C$19,MAX(COUNTA(Report!C:C)),0)=Backend!P2)*(Report!$D$19:OFFSET(Report!$D$19,MAX(COUNTA(Report!D:D)),0)=Backend!Q2))
I'm thinking I could cut this down if I had a more efficient way to factor in an infinite range (in other words $C19:C+Infinity) - as right now I'm using offset/max/counta. Is there a better way? Thank you.
=SUMPRODUCT((Report!$C$19:OFFSET(Report!$C$19,MAX(COUNTA(Report!C:C)),0)=Backend!P2)*(Report!$D$19:OFFSET(Report!$D$19,MAX(COUNTA(Report!D:D)),0)=Backend!Q2))