Hi Guilbj2,
Assuming your month names (January, February, etc.) are in A1:A12 (formatted as text) and your values are in B1:B12, then in B13 (or any other cell) you can try:
This will lookup the month name and assign its serial number (1 through 12), then compare that with today's month. Finally, it averages the three previous months by dividing the sumproduct by 3.
Hope that helps.. and maybe someone knows a shorter route to getting the month names converted to numbers. (Of course, if you changed your spreadsheet so that you would put 1/1/07 for January, 2/1/07 for February, etc., and then formatted the cells as Custom, "mmmm", the whole LOOKUP part would go away.)
Bookmarks