+ Reply to Thread
Results 1 to 2 of 2

Summing across sheets but the range is based on dropdown?

  1. #1
    Registered User
    Join Date
    06-11-2019
    Location
    Lakeland, FL
    MS-Off Ver
    365
    Posts
    1

    Summing across sheets but the range is based on dropdown?

    I have a spreadsheet that sums up monthly sheets of information. I am trying to do a YTD calculation - for example =SUM('Jan19:Dec19'!A8). But, I have a dropdown list of months which are names of the sheets with data in the workbook.



    I want to sum one cell across a range of sheets depending on what is selected in the dropdown list. For example, if I select Mar19, it adds A8 for January, February and March. I want to keep January as the first monthly sheet. I have tried using INDIRECT to refer to the dropdown list within my function but a #REF error keeps appearing. I have also tried just putting the cell # of the dropdown in place of 'Dec19'.



    Is there any solution to this problem? Or is this even possible? If more clarification is needed I would be happy to provide it. Thanks.

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,251

    Re: Summing across sheets but the range is based on dropdown?

    Assuming your tab names list starts from M14 in your Summary tab and that the cell with desired value in each month tab is A8, create a list of values next to it (column N or any other free column) from each month cell like this, copied down:
    N14=INDIRECT("'"&M14&"'!A8")
    Assuming your drop-down cell is N13, create a named range Sheets, for example and in the “Refers to” field, paste this:
    =OFFSET('Summary!$N$14,,,MATCH($N$13,$M$14:$M$25,0),1)
    Then use this for your sum:
    =SUM(Sheets)
    Change ranges and tab names accordingly.

+ 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. Summing Another Range Based on Conditions
    By DA9933 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2019, 09:06 AM
  2. Replies: 7
    Last Post: 05-30-2018, 02:36 PM
  3. Summing values in named ranges based on dates, multiple sheets!
    By giggsteve8 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2013, 01:42 PM
  4. Summing data from multiple sheets and dropdown lists
    By Skwerl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2011, 08:00 PM
  5. Summing across sheets based on a criteria
    By araiv in forum Excel General
    Replies: 3
    Last Post: 06-03-2008, 10:30 AM
  6. Summing based on text range?
    By jpletting in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2007, 01:33 PM
  7. Hiding sheets based on value in dropdown cell
    By MrSandman in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-27-2007, 05:13 PM

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