Is it possible to create a formula in Excel that takes a certain sequence in the range that is repeated but according to the exactly selected sequence.
I have a range of 30 days per month from A1 to U1. Cells are filled with days that start randomly, eg: Wed, Thu, Fri, Sat, Sun, Mon, Tue, Wed, Thu, Fri, Sat, Sun, Mon, Tue, and so in 30 days.
1. Below in A21 to U2 I have values that I want, for only example, to SUM, but according to the criterion that only those cells from the top row that are in the range from Mon to Sun, that means the whole week, so it skips if the row starts from Wed, or end in middle day of week, but it searches for the whole week .
2. When it finds the first whole sequence Mon to Sun, it calculates it, then it searches for the next sequence Mon to Sun, calculates that and then the next sequence if there is one.
I know it sounds a bit complicated, but that's why I can't figure it out myself.
Example in attachment
Bookmarks