+ Reply to Thread
Results 1 to 9 of 9

Adding year to date data based on selected month

  1. #1
    Registered User
    Join Date
    04-11-2024
    Location
    Lille
    MS-Off Ver
    Office 365
    Posts
    3

    Adding year to date data based on selected month

    Hello,

    In the attached file, I would like numbers to be added up to a selected month so that only year to date data (based on selected month) are reported.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Adding year to date data based on selected month

    What version of Excel are you using?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Adding year to date data based on selected month

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


    Copy across and down. You will need to change your month column headers to Text values, not dates.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Adding year to date data based on selected month

    Similar to TMS. Copied across and down. Also need to change the dates to month names in row 5.

    =SUMPRODUCT(($B6:INDEX($6:$6,,MATCH($N$1,$5:$5,0)+COLUMNS($T9:T9)-1)=T$6)*$B9:INDEX(9:9,,MATCH($N$1,$5:$5,0)+COLUMNS($T9:T9)-1))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  5. #5
    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,987

    Re: Adding year to date data based on selected month

    Administrative Note:

    Welcome to the forum.

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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.

  6. #6
    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,987

    Re: Adding year to date data based on selected month

    If you have 365, here's an all-in-one spill solution:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-11-2024
    Location
    Lille
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Adding year to date data based on selected month

    Thank you for your guidance. I have now modified my profile with the correct Office version.
    Best

  8. #8
    Registered User
    Join Date
    04-11-2024
    Location
    Lille
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Adding year to date data based on selected month

    Thank you for your replies. This is really helpful.
    Both solutions work so well.

    Best

  9. #9
    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,987

    Re: Adding year to date data based on selected month

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. Vlookup on data table based on month + year to date
    By Jeroend in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-17-2022, 11:22 AM
  2. Replies: 3
    Last Post: 06-26-2019, 11:46 AM
  3. [SOLVED] Adding year and month to date
    By Ashrahmeka in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-16-2015, 12:58 AM
  4. [SOLVED] Display the first date of the month when the month and year are selected
    By john dalton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2013, 11:59 AM
  5. [SOLVED] How do I display the date when a year and month are selected
    By john dalton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2013, 12:32 PM
  6. Retrieving data from two pivot tables based on date (grouped by month and year)
    By TheCyrusVirus in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-05-2010, 04:37 AM
  7. Adding month and year to form date
    By Dino in forum Excel General
    Replies: 2
    Last Post: 11-17-2005, 10:10 PM

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