+ Reply to Thread
Results 1 to 4 of 4

Calculate YTD based on week selected

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Calculate YTD based on week selected

    I need to calculate a YTD number from week 1 until the week selected from a drop-down list. If the week selected is 3, then the YTD from week 1 to week 3. If the week selected is week 4, then the YTD from week 1 to 4. I have attached a sample file.
    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculate YTD based on week selected

    See if this is what you're up to.

    I solved it with sumproduct.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Calculate YTD based on week selected

    In G3 use..

    =SUMIFS($C:$C,$B:$B,E3,$A:$A,"<="&$F$2)

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Calculate YTD based on week selected

    Thanks very much. Works perfectly & I learnt something new!

+ 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