+ Reply to Thread
Results 1 to 5 of 5

Sum, based on month selection

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    N/A
    MS-Off Ver
    MS 365
    Posts
    70

    Sum, based on month selection

    would really appreciate some help with the following:

    based on the month selected in cell C6 I would like cell Y9 to calculate 'Act' minus 'Bud', e.g.

    if Mar-13 is selected in cell C6, I woudl like cell Y9 to sum the following =J9-I9
    if Apr-13 is selected in cell C6, I would like cell Y9 to sum the following =L9-K9

    if this possible?

    Thanks, MaddyExcel Forum Eg Index,Match.xlsxExcel Forum Eg Index,Match.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Sum, based on month selection

    the data you have for April onwards shows errors, so I couldnt test this - it should work though. Copy this down...
    =INDEX($C$6:$X$18,ROW(A9)-5,MATCH($C$6,$C$7:$Z$7,0)+1)-INDEX($C$6:$X$18,ROW(A9)-5,MATCH($C$6,$C$7:$Z$7,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-09-2012
    Location
    N/A
    MS-Off Ver
    MS 365
    Posts
    70

    Re: Sum, based on month selection

    Excel Forum Eg Index,Match (2).xlsx

    hello FDibbins,

    this worked - thank you
    I realise I need to apply the same formula but to a slightly different format and I can't seem to get it to work out please see that attached - I've have played round with the formula but to no avail - would really appreciate advice - thank you

  4. #4
    Registered User
    Join Date
    03-09-2012
    Location
    N/A
    MS-Off Ver
    MS 365
    Posts
    70

    Re: Sum, based on month selection

    figured it out - it was the -5 needed to anchor the source when dragging formula down

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Sum, based on month selection

    In AA25 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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.6.0 RC 1