+ Reply to Thread
Results 1 to 5 of 5

Sum data based on selection on dropdown menu

  1. #1
    Registered User
    Join Date
    05-01-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    3

    Sum data based on selection on dropdown menu

    Hi all,

    Need your kind help here. I have a several sheets containing actual, budget and forecast numbers and all in the same format. What I want is to display (sumif) the data based on the month choosen in the drop down list. e.g if I choose March 12, then all the numbers in actual, budget and forecast will display the sumif from the respective sheet.

    Also is it possible to display the year to date amount?

    Thanks for your kind help, attached is the sample data
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum data based on selection on dropdown menu

    Since you have a database which keeps expanding (assumption) then it is best to create first some dynamic named ranges so that you references can remain dynamic.

    So first create a named range for each of the Actual, Budget and Forecast sheets.

    e.g use the same name as the sheetnames, you can use a name: Actual and apply formula:

    Please Login or Register  to view this content.
    for Budget:

    Please Login or Register  to view this content.
    and for Forecast:

    Please Login or Register  to view this content.
    then in Summary sheet, D6 use formula:

    Please Login or Register  to view this content.
    copied down and across.. then replace Actual with Budget and Forecast, respectively in column E and F.

    in Summary, L6 use:

    Please Login or Register  to view this content.
    copied down and across.. then replace Actual with Budget and Forecast, respectively in column M and N.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-01-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sum data based on selection on dropdown menu

    Hi,

    Thanks for the quick response. It works well.

    Just trying to understand how the formula works.
    1. I moved the reference (Expense category) to column D and the formula just stop working.
    2. With the dynamic name, means that I simply insert another column for additional data e.g Aug 2012 and it will automatically included in the range, right?
    Last edited by brama80; 05-01-2012 at 10:54 PM.

  4. #4
    Registered User
    Join Date
    05-01-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sum data based on selection on dropdown menu

    I keep getting a #REF! error for the following formula. however, if i changed it to Actual, it works. The single month formula works just fine, thats why I'm confused.
    The one in Plan and Forecast contained lesser data than actual, not all field is filled.

    =SUMPRODUCT((INDEX(Plan,0,MATCH(9.999E+307,INDEX(Plan,1,0))+1)=$B8)*(INDEX(Plan,1,0)>=DATE(YEAR(TODAY())-(MONTH($B$4)<7),7,1))*(INDEX(Plan,1,0)<=$B$4),Plan)

    Thanks for the help

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum data based on selection on dropdown menu

    The Named Ranges and formulas in the Summary tab were based on the Expense Category being the last column in each sheet...

    you should be able to insert columns between the date columns and the Expense Category.. and the formulas should all self adjust.

    However, if you want to move Expense Category to column D, you need to fine tune the Named Range formulas

    e.g. for Actual:

    Please Login or Register  to view this content.
    and then fine tune the Summary formulas.

    e.g. for Actual in D6:

    Please Login or Register  to view this content.
    and in L6:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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