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
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
=SUM((FREQUENCY(IF(B2:M2>0,COLUMN(B2:M2)),IF(B2:M2<=0,COLUMN(B2:M2)))>0)*1)
try this array formula(Shift+Ctrl+Enter) and copy towards down
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
If your report gets too big, UDF might be a better option since it doesn't require as much memory as array formula.
![]()
Please Login or Register to view this content.
Unfortunately that didn't quite work. If an item was ordered for one month, it is counting that in the total. One month shouldn't be calculated. An item would need to be ordered for two months or more
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks