+ Reply to Thread
Results 1 to 10 of 10

Total a cell starting from first sheet upto the sheet name selected from drop-down list

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    93

    Total a cell starting from first sheet upto the sheet name selected from drop-down list

    Hello everyone,

    My problem :

    I want to sum a particular cell say B5 in my sample file, across multiple sheets.
    I have attached a sample file here, which consists of 13 sheets( Apr,May,...........Dec,Jan,Feb,March & last Cumulative)
    I want this total in cumulative sheet starting from April to whichever month I select.

    How can this be done ?

    kmahesh
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Total a cell starting from first sheet upto the sheet name selected from drop-down lis

    hi

    try this
    =VLOOKUP(MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,99+RAND()),Cumulative!K3:M14,3,0)

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Total a cell starting from first sheet upto the sheet name selected from drop-down lis

    i suggest you change the layout of your data.

    Use only 1 sheet instead of several sheets for each month.

    It will make analyze data a lot easier.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Total a cell starting from first sheet upto the sheet name selected from drop-down lis

    Have you tried this?

    from April to July

    =SUM(Apr:July!B5)

    the result: 220

    it should be better with INDIRECT where you can make a month selection:

    this will sum B5 between selected months

    =SUMPRODUCT(SUM(INDIRECT("'"&B1:C1&"'!B5")))

    for Cumulative column in M3 and copy down

    =SUMPRODUCT(SUM(INDIRECT("'"&$K$3:K3&"'!B5")))

    ***just make sure that months listed in Col "K" match the tabs exactly.
    Last edited by AlKey; 09-20-2015 at 09:06 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Total a cell starting from first sheet upto the sheet name selected from drop-down lis

    If the sheets were arranged from Jan thru Dec this would be relatively easy.

    However, it appears as though the sheets are arranged based on a fiscal year order.

    First thing: Make sure the sheet names all use the same naming format. Some of yours use the short name format like Apr while others use the long name format like March.

    Make ALL the sheet names in one format. I prefer the short name format. So, all sheet names would be:

    Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec, Jan, Feb, Mar

    Create the reference table in K3:L14...

    Data Range
    K
    L
    3
    Apr
    50
    4
    May
    40
    5
    Jun
    60
    6
    Jul
    70
    7
    Aug
    30
    8
    Sep
    80
    9
    Oct
    20
    10
    Nov
    20
    11
    Dec
    70
    12
    Jan
    40
    13
    Feb
    50
    14
    Mar
    50


    Enter this formula in L3 and copy down:

    =INDIRECT(K3&"!B5")

    Change the source of the drop down list in cell C1. As the source use =$K$3:$K$14.

    Then, the sum formula would be:

    =SUM(L3:INDEX(L3:L14,MATCH(C1,K3:K14,0)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Total a cell starting from first sheet upto the sheet name selected from drop-down lis

    I agree with oeldere. Having one worksheet would make calculations very easy. If you are adding one worksheet for every month, it will not take long before you have too many to handle easily.
    This sample file shows one way of doing this. The table will expand properly (no extra formulae or formatting required.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Registered User
    Join Date
    09-21-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    93

    Re: Total a cell starting from first sheet upto the sheet name selected from drop-down lis

    Hello everybody
    thanks for your replies.

    I think I should clarify few points in my problem.
    Oeldere and newdoverman suggested to Use only 1 sheet instead of several sheets for each month - however this is not possible b'cos what
    i have uploaded is only sample file, in reality it is not only one cell I have to sum across the sheets but many cells (28 rows x 17 columns=476 cells)
    on each sheet.

    Secondly the sheets are arranged monthwise April to March i.e. based on financial year & not calendar year.

    Tony Valkos formula =SUM(L3:INDEX(L3:L14,MATCH(C1,K3:K14,0))) works well in case of my sample file in which only one cell is to be
    sumed across the sheets, but I dont know how I should do it for 476 cells.

    Should I upload my actual file for better understanding of the problem ?

  8. #8
    Registered User
    Join Date
    09-21-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    93

    Re: Total a cell starting from first sheet upto the sheet name selected from drop-down lis

    Alkey your Sumproduct formula is not working , what i get is #Ref!

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Total a cell starting from first sheet upto the sheet name selected from drop-down lis

    Quote Originally Posted by kmahesh View Post
    Alkey your Sumproduct formula is not working , what i get is #Ref!
    Please see attached file with formulas
    Attached Files Attached Files
    Last edited by AlKey; 09-20-2015 at 11:31 AM.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Total a cell starting from first sheet upto the sheet name selected from drop-down lis

    28 rows and 17 columns are not many cells at all. Just use the date of entry for each row and you are all set.

    How you set up your data is your business but if you want to keep it manageable and easy to work with the suggestion stands.

    Good luck.

+ 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. Drop down list that changes selected sheet
    By Mike_StGeorge in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 06-22-2017, 01:39 PM
  2. Replies: 5
    Last Post: 09-22-2014, 05:28 AM
  3. Hide all worksheet except 5 input sheets and a 6th sheet selected in a drop down list
    By brianfarrell06 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-15-2014, 10:21 AM
  4. HELP : Unhide sheet only the Selected option from drop down list
    By shiven.k in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-11-2013, 12:37 AM
  5. select a sheet from a drop down menu and move the row in the selected sheet
    By AlienPump in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 02:21 PM
  6. Extract data from sheet selected from drop down list
    By kanight in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2011, 07:20 AM
  7. Value selected on drop down list, look-up on different sheet
    By liseladele in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-21-2006, 10:30 PM

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