A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
You can do it with this ARRAY formula, see below on how to enter it
=MAX(FREQUENCY(IF(A1:A20="Yes",ROW(A1:A20)),IF(A1:A20<>"Yes",ROW(A1:A20))))
This is an array formula which must be entered by pressing CTRL+Shift+Enter
and not just Enter. If you do it correctly then Excel will put curly brackets
around the formula {}. You can't type these yourself. If you edit the formula
you must enter it again with CTRL+Shift+Enter.