I have a column of days of the week in an Excel 2008 spreadsheet. In another column, I want to execute code that involves the Friday in the current row and its following Friday further down in the column. The problem is, it's five years of data that lists the days consecutively for most weeks, but sometimes there's a day missing in the week due to holidays. Hence I can't reference a fixed number of cells away to compare data from Friday to Friday.
So I'm looking for a means of doing the following pseudo-code:
=if(xcell = "Friday" and the_next_cell_named_Friday_down_in_the_list = "Friday", do "code that works with the row xcell is in and the row the next Friday cell is in")
I know there's a way of doing it, but I can't quite see how to execute it.
(If it's not too hard to answer this as well, I also want to be able to do the same thing as above, except check the Friday after the next (every two weeks).)