Excel Formulas: Dynamic YTD Calculations that Work

Excel Formulas: Dynamic YTD Calculations that Work

Q: What's the main problem you come across when you're writing a Year-to-Date (YTD) formula in Excel and your data set goes over a few years?

A: You need to revise it every time you get to January of the next year. You can't just drag your YTD formula that starts in January of 2015 all the way down to January 2017. It needs to be revised every time you get to January.

Take a look at this:

To get YTD Volume you just need to use a simple SUM formula and fix the first cell reference in the sum range. The problem comes when you get to January of the next year. Here, you need to revise the formula again and change the first cell reference to reference the amount in that January like this:

What's the problem with this approach?

  1. Prone to Errors: Excel users are generally used to seeing spreadsheets where the first formula in a row (if your data set is vertical) or column (if your data set is horizontal) applies to the cells in the next rows & columns. If your colleague gets a hold of this spreadsheet, they are tempted to drag the formula in cell B11 all the way across to O11.
  2. Boring Manual Work: You need to go to each January of every year: Update formula. Drag to December. Change formula in January. Drag to December. Repeat.

Watch this Video to find out how you can write the formula just ONCE in the first cell and drag across for how many years & months you have in your data set.

You'll see that calculating YTD volume is easier than YTD Price which is a bit trickier.

To get the volume weighted average price (VWAP), you need to multiply the volume by the price and add each month to the next, up to the current month. Then divide that value by the YTD volume. 

This is when knowing how to use Excel's advanced formulas together, can come in handy. In the video you'll see how SUMPRODUCT and OFFSET assist each other to do the work for you.

The best part about creating dynamic formulas? You just need to type them in once and drag them all the way across!

P.S. If you'd like to become faster in solving complex Excel problems, check out my Excel Advanced: Top Tips & Formulas course. Discount available HERE.


Sylvia Ionita

CFO at waterdrop? WE ARE HIRING!

8 年

thanks a lot for your great guidance! don't know what I'd do without sumproduct & co :)

回复
Erol Muminovikj

Owner of Premium Motors

8 年

excelce milo excelce:)

要查看或添加评论,请登录

Leila Gharani的更多文章

  • Dynamic WordArt in Excel (with bar-in-bar chart)

    Dynamic WordArt in Excel (with bar-in-bar chart)

    Can you conditionally format WordArt in Excel? When I received this question, I thought it's going to be a fun one to…

    18 条评论
  • How do I Create a Chart in Excel?

    How do I Create a Chart in Excel?

    Are you overwhelmed with Excel's Chart options? If yes, this tutorial is for you. You'll learn: How to insert an Excel…

  • Are you using this custom formatting trick in Excel?

    Are you using this custom formatting trick in Excel?

    Here is an Excel question for you: Do you think the up/down arrows in the report below are created using custom…

    8 条评论
  • Quick Gantt Chart in Excel

    Quick Gantt Chart in Excel

    Gantt charts are great for visualizing and presenting your project plan. Excel doesn't have a built-in Gantt chart…

  • 5 Design Tips for Better Excel Reports

    5 Design Tips for Better Excel Reports

    (scroll down for video) #1 Contrast Add a strong contrast to headings to show at a glance what your report is about…

    3 条评论
  • Better Variance Charts in Excel: 4 Ways

    Better Variance Charts in Excel: 4 Ways

    You've been asked to visualize actual sales by company. You have a couple of companies.

    2 条评论
  • 3 ways to lookup values in Excel when you have more than one header per column

    3 ways to lookup values in Excel when you have more than one header per column

    In the last article I covered the basics behind INDEX & MATCH - If you'd like to brush up on that, make sure you check…

    2 条评论
  • How to do Complex Lookups in Excel

    How to do Complex Lookups in Excel

    Have you ever come across a case where you needed to lookup a value in a table but had multiple table headers? In this…

  • Say Goodbye to VLOOKUP

    Say Goodbye to VLOOKUP

    The most searched Excel formula on Google and YouTube is VLOOKUP. It makes sense.

    10 条评论
  • How to Create Info-Charts in Excel

    How to Create Info-Charts in Excel

    I'm not really sure what to call this chart: non-standard bar chart, Info-chart or rounded bar chart - someone said…

    12 条评论

社区洞察

其他会员也浏览了