Sajan
Excel Ninja
Challenge Name
-- Count the number of times a sublist occurs in a list
Challenge Description
-- This is a formula challenge. As such, only formula submissions are accepted.
-- For two lists named "List" and "Sublist", count the number of times "Sublist" appears in "List".
-- "List" and "Sublist" could be of variable length.
-- Goal is to calculate the count without using any helper cells.
Assumptions
-- You may assume a different location for "List" and "Sublist" than cell A1 and B1
-- You may assume that both lists are in rows
-- Items in the "Sublist" may repeat. However, there needs to be an exact match in "List" for it to be counted.
Sample data and output:
List
One
Two
Three
Two
Two
Three
Four
Two
Three
Two
Five
Six
Sublist
Two
Three
Two
In this case, the output expected is 2 since the sublist occurs twice in list.
Enjoy!
-Sajan.
-- Count the number of times a sublist occurs in a list
Challenge Description
-- This is a formula challenge. As such, only formula submissions are accepted.
-- For two lists named "List" and "Sublist", count the number of times "Sublist" appears in "List".
-- "List" and "Sublist" could be of variable length.
-- Goal is to calculate the count without using any helper cells.
Assumptions
-- You may assume a different location for "List" and "Sublist" than cell A1 and B1
-- You may assume that both lists are in rows
-- Items in the "Sublist" may repeat. However, there needs to be an exact match in "List" for it to be counted.
Sample data and output:
List
One
Two
Three
Two
Two
Three
Four
Two
Three
Two
Five
Six
Sublist
Two
Three
Two
In this case, the output expected is 2 since the sublist occurs twice in list.
Enjoy!
-Sajan.