What I am looking for is hard to explain in the title. I have two columns of data (about 35,000) rows.
One column has simply a Y or N in the cells going down. The second column is blank. I want the second column to look in the first and determine if it is a Y then the result is a 1. This is where it gets tricky. It needs to count the number of N's after a Y. So if it goes Y, N, N, N, Y the corresponding cells would read 1, 2, 3, 4, 1. I have posted some below for you to see what I mean. Hopefully this is kind of easy to understand. I am having a hard time trying to explain.
REAL Cycle
Y 1
Y 1
Y 1
N 2
Y 1
Y 1
Y 1
Y 1
Y 1
N 2
N 3
Y 1
Y 1
Y 1
Y 1
N 2
Y 1
N 2
N 3
N 4
Thanks for the help!
Zach
One column has simply a Y or N in the cells going down. The second column is blank. I want the second column to look in the first and determine if it is a Y then the result is a 1. This is where it gets tricky. It needs to count the number of N's after a Y. So if it goes Y, N, N, N, Y the corresponding cells would read 1, 2, 3, 4, 1. I have posted some below for you to see what I mean. Hopefully this is kind of easy to understand. I am having a hard time trying to explain.
REAL Cycle
Y 1
Y 1
Y 1
N 2
Y 1
Y 1
Y 1
Y 1
Y 1
N 2
N 3
Y 1
Y 1
Y 1
Y 1
N 2
Y 1
N 2
N 3
N 4
Thanks for the help!
Zach