+ Reply to Thread
Results 1 to 11 of 11

Calculating YTD of Monthly Averages

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    26

    Calculating YTD of Monthly Averages

    Quick question:

    I've currently developed a data base with monthly sales to calculate YTD depending on a specific date chosen from a dropdown menu.

    Formula is as follows:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Where $L$1 is a droplist from which you can choose a date
    $BH$3:$DD$3 is where the months are referenced
    And $BH$4:$DD$4 is where the monthly sales are available

    Now I would like to apply the same principle except divide each month by a number that is also available monthly in order to get the YTD of that ratio.

    I know it can be easily done by simply recalculating monthly averages (i.e. Monthly Sales / Number of that same month) and then adding them up with the same formula as above but i'd really like to avoid doing that.

    Any ideas?

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

    Re: Calculating YTD of Monthly Averages

    Hi Bobby,

    Please upload a sample workbook along with your expected results.... thx


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-10-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Calculating YTD of Monthly Averages

    Here you go.

    Thanks for your help!!!
    Attached Files Attached Files

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

    Re: Calculating YTD of Monthly Averages

    Hi Bobby,

    See the attached file..

    YTDCalculations(1).xlsx

    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    01-10-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Calculating YTD of Monthly Averages

    The method is correct, and I was tempted to do that, but because i'm handling a huge database I was trying to find a way to avoid having to calculate the ratios each month (=IFERROR(B4/AA4,0)) and having it directly integrated in the formula (if you see what i mean...)

    So the formula would directly return the '3505.66' but without going through *($AA$5:$AX$5) but rather directly using ($AA$4:$AX$4)

    I don't know whether that's possible but ideally, this is the approach I'd like to have.

    Any further ideas?

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

    Re: Calculating YTD of Monthly Averages

    Hi bobby,

    since you are already using AA2:AZ4 they why not AA5:AZ5 ?
    Just one extra row and your problem stands resolved.


    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Registered User
    Join Date
    01-10-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Calculating YTD of Monthly Averages

    I understand where you're coming from, and I was tempted to do that but to set you in the context. There more than 10,000 rows and column of dates that range over four years, each with their own monthly sales and teams. Your suggestion would have me create an array over the four years where the ratio would be calculated. Ideally, avoiding congesting the table with further data would be ideal.

    Let me know if an idea pops into your head!

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

    Re: Calculating YTD of Monthly Averages

    Okay.. if you already have both the tables available with you and you don't want to include a new calculated row, use below formula:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    enter with key combination: ctrl shift enter.

    see attached:- YTDCalculations-rev.xlsx


    Regards,
    DILIPandey
    <click on below * if this helps>

  9. #9
    Registered User
    Join Date
    01-10-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Calculating YTD of Monthly Averages

    Thanks a lot!

    That was what i was looking for!

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

    Re: Calculating YTD of Monthly Averages

    you are welcome bobby... cheers



    Regards,
    DILIPandey
    <click on below * if this helps>

  11. #11
    Registered User
    Join Date
    12-26-2012
    Location
    Meerut
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Calculating YTD of Monthly Averages

    u may try this one

    =SUMPRODUCT(IFERROR(($B$2:$Y$2<=$B$8)*(B4:Y4)/($AA$4:$AX$4),""))

+ 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