Hello!
I have a worksheet where every tab needs to be a month of the year, and every Thursday I have to report certain sums of the columns from the tabs. After some trial and errors I managed to get a formula to do that, but it had a minor setback: the weeks between months donīt count the previous tabs.
So here I am trying to fix that issue, I have considered using SUM and OFFSET, COUNTA and even INDEX to get it right; but I am not being able to have it done what I need.
The attachment contains a small draft of the worksheets and its tabs and here is briefing on the columns formulas and what was supposed to do:
Columns N, P and E will calculate the last 7 days of operations, if it is a Wednesday. The formula is:
Formula:Please Login or Register to view this content.
I used the months of July, August and September as example, on the Sep2019 tab the value on cell N8 should return the 4 days prior September 5th and should also calculate the 3 days from the Aug2019 tab. Here is the point I canīt seem to build the formula correctly, since I have to deal with months that ends on 28, 29 (Leap Years), 30 or 31.
Hope someone can help me with this conundrum!
Cheers,
Diogo Cuba
Bookmarks