This is my first post, so please go easy on me 
I'm trying to calculate the number of consecutive cells in which a value appears, but the most right/recent set of consecutive only.
I'm currently using the following formula, but it's presenting the highest consecutive value, rather than the most recent.
=MAX(FREQUENCY(IF(B2:O2<>"",COLUMN(B2:O2)),IF(B2:O2="",COLUMN(B2:O2))))
The red values are the desired result, and those next to it are what the above formula is currently producing.

Any help is much appreciated!
Thanks so much in advanc
I'm trying to calculate the number of consecutive cells in which a value appears, but the most right/recent set of consecutive only.
I'm currently using the following formula, but it's presenting the highest consecutive value, rather than the most recent.
=MAX(FREQUENCY(IF(B2:O2<>"",COLUMN(B2:O2)),IF(B2:O2="",COLUMN(B2:O2))))
The red values are the desired result, and those next to it are what the above formula is currently producing.

Any help is much appreciated!
Thanks so much in advanc