+ Reply to Thread
Results 1 to 5 of 5

Make YTD formula dynamic.

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Make YTD formula dynamic.

    Hello. This is a YTD formula.SUMIFS(Sheet1!$D3:$O3,Sheet1!$D$2:$O$2,">="&Sheet2!C$3,Sheet1!$D$2:$O$2,"<="&Sheet2!D$3) How can I make it dynamic so that it looks in a row based on a lookup value. In this if I drag the formula down it will look in the next row, but I want it to specific rows based on specific values.
    Attached Files Attached Files

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Make YTD formula dynamic.

    Hi,

    I have updated the formula for the Month & YTD in the attached file. Please see if it suits your requirement.


    MONTH: INDEX(Sheet1!$C$2:$O$5,MATCH(Sheet2!$B4,Sheet1!$C$2:$C$5,0),MATCH(Sheet2!C$3,Sheet1!$C$2:$O$2,0))


    YTD: SUM(INDEX(Sheet1!$C$2:$O$5,MATCH($B4,Sheet1!$C$2:$C$5,0),2):INDEX(Sheet1!$C$2:$O$5,MATCH($B4,Sheet1!$C$2:$C$5,0),MATCH(D$3,Sheet1!$C$2:$O$2,0)))
    Last edited by cbatrody; 03-23-2015 at 07:55 AM. Reason: NA

  3. #3
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: Make YTD formula dynamic.

    Thanks. Is there a way that you can modify this YTD formula to be dynamic? SUMIFS(Sheet1!$D3:$O3,Sheet1!$D$2:$O$2,">="&Sheet2!C$3,Sheet1!$D$2:$O$2,"<="&Sheet2!D$3)

    The reason I like it is because it's actually more than a YTD...It lets you pick the ranges (Feb-April) for example.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,655

    Re: Make YTD formula dynamic.

    For month, cell C4:

    Please Login or Register  to view this content.
    For YTD, cell D4:

    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Make YTD formula dynamic.

    Hi,

    I have modified the formula in the attached file.

+ 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. FORMULA TO RANK data in the order 1,2,3,... and make it dynamic
    By SYLVIUS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-20-2014, 05:07 AM
  2. I Want to know how I can make this formula into vba code for dynamic cell address
    By dgdgdg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2013, 02:41 PM
  3. [SOLVED] I Want to know how I can make this formula into vba code for dynamic cell address
    By dgdgdg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2013, 12:54 PM
  4. make a sumif formula dynamic
    By amartino44 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-08-2013, 11:19 AM
  5. VLookup formula (how to make it dynamic) in vba
    By david1816 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2012, 10:10 AM

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