Hi,
I am trying to determine the maximum number of consecutive cells (across columns) that "contain" a specific text value (text within a string in the cell).
For example:
This command works if the cells contain the exact text of "partial":
=MAX(FREQUENCY(IF(A80:H80="partial",COLUMN(A80:H80)),IF(A80:H80<>"partial",COLUMN(A80:H80))))
Data:
A80 B80 C80 D80 E80 F80 G80 H80
partial full partial partial partial success partial full result would be 3
But I need it to work for finding the text "partial" in a string of text within the cell:
A80 B80 C80 D80 E80 F80 G80 H80
this is partial failure this is full failure this is partial failure this is partial failure this is partial failure this is success this is partial failure this is full failure
(NOTE: this is not the exact data but an example of a string that contains the text "partial").
I tried using this but it only totals the number of partials; it does not give me the max consecutive count:
=MAX(FREQUENCY(IF(ISNUMBER(SEARCH("*partial*",A80:H80)),COLUMN(A80:H80)),IF(ISNUMBER(SEARCH("<>*partial*",A80:H80)),COLUMN(A80:H80))))
Can you please help me to fix my formula or provide a different solution?
Thanks.
I am trying to determine the maximum number of consecutive cells (across columns) that "contain" a specific text value (text within a string in the cell).
For example:
This command works if the cells contain the exact text of "partial":
=MAX(FREQUENCY(IF(A80:H80="partial",COLUMN(A80:H80)),IF(A80:H80<>"partial",COLUMN(A80:H80))))
Data:
A80 B80 C80 D80 E80 F80 G80 H80
partial full partial partial partial success partial full result would be 3
But I need it to work for finding the text "partial" in a string of text within the cell:
A80 B80 C80 D80 E80 F80 G80 H80
this is partial failure this is full failure this is partial failure this is partial failure this is partial failure this is success this is partial failure this is full failure
(NOTE: this is not the exact data but an example of a string that contains the text "partial").
I tried using this but it only totals the number of partials; it does not give me the max consecutive count:
=MAX(FREQUENCY(IF(ISNUMBER(SEARCH("*partial*",A80:H80)),COLUMN(A80:H80)),IF(ISNUMBER(SEARCH("<>*partial*",A80:H80)),COLUMN(A80:H80))))
Can you please help me to fix my formula or provide a different solution?
Thanks.