I have a text-based dataset that follows strict patterns. I want to see how many times a particular word - "Noun", for example - appears in every 5th cell for each row. "Noun" also appears in other cells that I don't want to include in the count, or I'd use COUNTIF for each row. Also, other words may appear in the cell (e.g. "Verb"), which I will count later, once I've figured out the formula. Each row starts in A column, but I started the array in C column because that's where the first instance of "Noun" that I want could be, so I figured I should count from there. I tried the following:
{=SUM(--(MOD(COLUMN($C2:$PC2),5)="Noun"),--($C2:$PC2="Noun"))}
but it seems to count all of the instances of "Noun" in that particular row, while
{=SUMPRODUCT((MOD(COLUMN(C2:PC2),5)="Noun")*($C2:$PC2))}
didn't work at all. I've tried several other variations as well, too many to write down here (those were just the most recent), but none of them returns the correct value.
In one sentence: I'd like to count all of the times that the word "Noun" appears in every 5th cell of each row in the dataset.
Any help would be appreciated.
{=SUM(--(MOD(COLUMN($C2:$PC2),5)="Noun"),--($C2:$PC2="Noun"))}
but it seems to count all of the instances of "Noun" in that particular row, while
{=SUMPRODUCT((MOD(COLUMN(C2:PC2),5)="Noun")*($C2:$PC2))}
didn't work at all. I've tried several other variations as well, too many to write down here (those were just the most recent), but none of them returns the correct value.
In one sentence: I'd like to count all of the times that the word "Noun" appears in every 5th cell of each row in the dataset.
Any help would be appreciated.