I am trying to count the number of instances where an item has received orders in consecutive months.

In column P I have hardcoded the answers but I want to find a formula that will do this for me

Book3.xlsx