I would like to keep a running total in column A if certain text is present in column B. If that text isn't present, I would like column A to be blank, but pick up counting where it left off on the next time the criteria is met.
Example: When column B contains blue, yellow, or red, count in column A, lest leave blank
| A | B |
|---|---|
| 1 | blue |
| 2 | yellow |
| green | |
| orange | |
| 3 | blue |
| green | |
| 4 | red |