+ Reply to Thread
Results 1 to 4 of 4

Formula to add to get YTD

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to add to get YTD

    Hello:

    Please refer to attached file.
    I will be selecting Month and item to be added from cell A3 and A4.

    I need formula in cell D2 and D3 to give me the result as shown.
    (D2=D9+D14+D19+D24)

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Formula to add to get YTD

    For D2 :

    =IFERROR(INDEX(D8:D66,MATCH(C2,C8:C66,0)+MATCH("NET SALE",C8:C66,0)-1),"")
    Last edited by azumi; 12-21-2018 at 12:25 AM.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Formula to add to get YTD

    Please try D3 and press Ctrl+Shift+Enter

    =SUM(D9:D61*IFERROR(--(--(C8:C60&C7)< =--(C2&C7)),))

    or normal Enter

    =SUMPRODUCT(D9:D61,(C9:C61=C9)*(ROW(C9:C61)< MATCH(C2,O5:O16,)*4+ROW(C9)))

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to add to get YTD

    Hello azumi and Bo_Ry:

    Thanks a lot.

    Riz

+ 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: 5
    Last Post: 02-16-2018, 06:50 AM
  2. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  3. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  4. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  5. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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