From column A:A I want to find out how many times a 0 appears in a prior row and immediately following row does a 1 appear?
There are over 500 rows.
Each row of Column A is a single number ranging from 0 through 9.
My original coding in column B2 for each row is =IF(A1=0,A2=1) working down to last entry =IF(A520=0,A521=1, giving me a true or false for all those cells. This obviously eats up a ton of space and time. Which I manually update daily.
In H1, I count "TRUE" using =COUNTIF(B:B,"TRUE") for a total of how many times a 0 and 1 combination has appeared in A:A.
Eventually I want to total all combinations from: 0 and 1 through to 9 and 9.
What would a simpler code be to give just a total on what combination I want?
Like 0 & 1 or 2 & 4 etc.
Bookmarks