+ Reply to Thread
Results 1 to 5 of 5

Thread: Mtd - qtd - ytd

  1. #1
    Registered User
    Join Date
    07-14-2011
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Mtd - qtd - ytd

    Hi All!

    I am putting together a worksheet that pulls from our data warehouse and gives me X data per month (dollars & headcount).

    I want to be able to open the file each month, change the fiscal month and have it trigger all the changes. I have already set the file (which is connected to our systems) to update system data, but am stuck on the analysis. I currently am pulling a pivot of data laid out like this

    Rows - Organizations where $$s are charged too

    Columns - Months

    Data - Total dollars by month by organization

    I am hoping to establish some automated analysis by which once i change the month to say June, i have columns of MTD / QTD / YTD which will pull the month (June), QTD (Apr - Jun), and YTD (Sept - June). Sorry for the long winded question. Hopefully someone out there has an idea!

    Thanks

    Matt

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010
    Posts
    474

    Re: Mtd - qtd - ytd

    Hi Matt

    Welcome to the forum.
    Can you upload a sample of your data and PT as it would make it easier to understand.
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  3. #3
    Registered User
    Join Date
    07-14-2011
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Mtd - qtd - ytd

    Thanks Roger!

    I updated a test case of my data (actual data changed for company confidentiality).

    The fiscal calendar is Oct - Sept, so in this case of June, it would be the end of Q3 in our calendar.
    Attached Files Attached Files
    Last edited by Paul; 07-14-2011 at 10:49 PM. Reason: Removed quote of previous post.

  4. #4
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010
    Posts
    474

    Re: Mtd - qtd - ytd

    Quote Originally Posted by qualtay View Post
    Thanks Roger!
    The fiscal calendar is Oct - Sept, so in this case of June, it would be the end of Q3 in our calendar.
    Hi
    Take a look at the attached file - I think it doe what you want.
    I put a small table of months on sheet 2, and then use some Vlookup and Index/Match formulae in R1 and S1 of Sheet1, which are triggered by the month dropdown in cell Q1

    I formatted R1 and S1 with a custom format of ;;; so the values don't show.

    R1   =VLOOKUP(Q1,Sheet2!A2:C13,2,0)
    S1   =INDEX(Sheet2!C2:C13,MATCH(Sheet1!R1,Sheet2!B2:B13,0))
    
    R4   =INDEX($B4:$M4,$R$1)
    S4   =SUM(INDEX($B4:$M4,$S$1):INDEX($B4:$M4,$R$1))
    T4   =SUM($B4:INDEX($B4:$M4,$R$1))
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  5. #5
    Registered User
    Join Date
    07-14-2011
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Mtd - qtd - ytd

    Quote Originally Posted by Roger Govier View Post
    Hi
    Take a look at the attached file - I think it doe what you want.
    I put a small table of months on sheet 2, and then use some Vlookup and Index/Match formulae in R1 and S1 of Sheet1, which are triggered by the month dropdown in cell Q1

    I formatted R1 and S1 with a custom format of ;;; so the values don't show.

    R1   =VLOOKUP(Q1,Sheet2!A2:C13,2,0)
    S1   =INDEX(Sheet2!C2:C13,MATCH(Sheet1!R1,Sheet2!B2:B13,0))
    
    R4   =INDEX($B4:$M4,$R$1)
    S4   =SUM(INDEX($B4:$M4,$S$1):INDEX($B4:$M4,$R$1))
    T4   =SUM($B4:INDEX($B4:$M4,$R$1))
    Hey Roger,

    This is a great idea!! Simple to setup to it seems. Look forward to applying this to the real data!!

    Much appreciated...!!

    Regards

    Matt

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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