+ Reply to Thread
Results 1 to 4 of 4

Show YTD value based on a dynamic date extracted from monthly values.

  1. #1
    Registered User
    Join Date
    07-11-2019
    Location
    Stavanger, Norway
    MS-Off Ver
    Office 2010
    Posts
    13

    Question Show YTD value based on a dynamic date extracted from monthly values.

    Hi,

    I am trying to get an Average YTD value based on one chosen date, where the values is listed in a monthly table, and the values is constant for the whole month showing an average rate for each day.
    This average rate for each day I am trying to multiply by number of days in the prior months up till the chosen day (for example 24th of August).

    Either a mix of INDEX and MATCH, VLOOKUP or SUMIF have worked, and I can't figure it out...


    Kind Regards
    Ctrl+V

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Show YTD value based on a dynamic date extracted from monthly values.

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-11-2019
    Location
    Stavanger, Norway
    MS-Off Ver
    Office 2010
    Posts
    13

    Re: Show YTD value based on a dynamic date extracted from monthly values.

    An example sheet
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Show YTD value based on a dynamic date extracted from monthly values.

    As no manually mocked up results are given, as Ali requested in post #3, these are just guesses.
    F14: =SUMIF(Sheet2!B4:B15,"<="&H6,Sheet2!C4:C15)/DATEDIF(E5,H6,"m")
    F18: =SUMIF(Sheet2!B20:B31,"<="&H6,Sheet2!C20:C31)/DATEDIF(E5,H6,"m")
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 08-08-2019, 10:23 AM
  2. New and needing a lil help - dynamic monthly values
    By anonitachi in forum Hello..Introduce yourself
    Replies: 4
    Last Post: 02-10-2015, 06:00 AM
  3. [SOLVED] SUMIF Query: How to summarise values based on data extracted from a text string
    By The_Snook in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-17-2013, 10:12 AM
  4. Replies: 1
    Last Post: 03-08-2013, 04:18 PM
  5. Replies: 5
    Last Post: 03-07-2013, 11:38 AM
  6. Summing values based on a dynamic date range
    By welchs101 in forum Excel General
    Replies: 2
    Last Post: 09-27-2011, 07:00 PM
  7. How to show monthly values
    By svn_pie in forum Excel General
    Replies: 2
    Last Post: 11-18-2007, 02:46 PM

Tags for this Thread

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