+ Reply to Thread
Results 1 to 8 of 8

Average current 3month based on TODAY()

  1. #1
    Registered User
    Join Date
    05-05-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2010
    Posts
    33

    Average current 3month based on TODAY()

    Hello,
    I am trying to calculate the average of current 3month based on todays month.

    image.png

    As you can see in the attached image I want
    e.g for today to calculate in red cell the average of months APRIL,MAY,JUNE and when the month is e.g August to calulate the average of months JULY,AUGUST,SEPTEMBER.

    hope to be understandable

    thank you in advanve

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Average current 3month based on TODAY()

    Hi V!ctor,


    Would you mind posting excel workbook to enable us to give a quick try... please upload. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    05-05-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Average current 3month based on TODAY()

    thanks for reply

    Attached file
    Attached Files Attached Files

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Average current 3month based on TODAY()

    Try

    =AVERAGE(CHOOSE(INT((MONTH(TODAY())-1)/3)+1,D3:F3,G3:I3,J3:L3,M3:O3))
    Last edited by Cutter; 05-12-2012 at 07:30 AM.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Average current 3month based on TODAY()

    Hi Victor,

    See the attached file where I have used the dynamic name "data" as :-
    =OFFSET(INDIRECT(VLOOKUP(Φύλλο1!$A$1,Φύλλο1!$Q:$R,2,0)),ROW(Φύλλο1!$C$4)-3,0)

    Sample book.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  6. #6
    Registered User
    Join Date
    05-05-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Average current 3month based on TODAY()

    Thank you very much....it works perfect!!!
    I have one more question about this problem.
    in the same worksheet I want to add a column to calculate the higher value between ''column C'' and todays month.

    thanks one more time for your help!!

  7. #7
    Registered User
    Join Date
    05-05-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Average current 3month based on TODAY()

    after this....
    =AVERAGE(CHOOSE(INT((MONTH(TODAY())-1)/3)+1,D3:F3,G3:I3,J3:L3,M3:O3))

    I tried this:
    =IF(C3>MONTH(TODAY());C3;MONTH(TODAY()))
    but I get wrong results

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Average current 3month based on TODAY()

    Try
    =MAX(C3;INDEX(D3:O3;1;MONTH($A$1)))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1