Results 1 to 5 of 5

Sum of indirect sheet names with multiple cells (SUM, INDIRECT,SHEETNAME in cell)

Threaded View

a1b2c3d4e5f6g7h8 Sum of indirect sheet names... 02-12-2013, 07:44 AM
oeldere Re: Sum of indirect sheet... 02-12-2013, 07:48 AM
a1b2c3d4e5f6g7h8 Re: Sum of indirect sheet... 02-12-2013, 08:03 AM
Kevin UK Re: Sum of indirect sheet... 02-12-2013, 08:37 AM
oeldere Re: Sum of indirect sheet... 02-12-2013, 08:42 AM
  1. #1
    Registered User
    Join Date
    02-12-2013
    Location
    -
    MS-Off Ver
    -
    Posts
    6

    Red face Sum of indirect sheet names with multiple cells (SUM, INDIRECT,SHEETNAME in cell)

    Hi guys,

    my first run here. Thank you for having me.

    Here's what I am trying to solve: I have a file with 6 sheets named like awesome excel forum helpers (e.g. "Peter"). The names and amount of sheets is defined by the column A in sheetnr. 1 (general) looking like this:

    SHEET1: general
    Name Sum of Jan Sum of Feb Sum of Mar
    Peter
    Paul
    Mary
    Chuck
    Norris

    In the named sheets I have a list of saleries looking like this (showing only Peter and Paul here):

    SHEET 2: Peter
    Date from Date until Sum of Salery Jan Feb Mar
    01/01/2013 01/15/2013 50 50 0 0
    01/16/2013 01/31/2013 50 50 0 0
    02/01/2013 03/31/2013 200 0 100 100

    SHEET3: Paul
    Date from Date until Sum of Salery Jan Feb Mar
    01/01/2013 01/31/2013 50 50 0 0
    02/01/2013 02/28/2013 100 0 100 0
    03/01/2013 03/31/2013 200 0 0 200

    I need the sum of the total salery paid to all excel forum helpers in January in the cell B2 in SHEET1 general based on the sheet names A2:A5 and counting all saleries where month in "date untill" is 01.

    Concept:
    I know I will have to work with
    SUM -> To calculate the amount
    VLOOKUP -> To find the saleries in January (where month of date till is 01 take column 3)
    INDIRECT -> To define the range of sheets in with to vlookup
    and
    a MATRIX formula -> to use the lookup on the range of B2:B4 AND on all sheets

    (
    Formula: copy to clipboard
    =SUM(INDIRECT(B3&":"&B4&"!"&VLOOKUP(MONTH(B2)=01,INDIRECT(B3&"!A2:E4"),3,FALSE)))


    Now - this is not working of course. I am struggeling at getting this figured out in my head and I thought that "trail&error" won't get me anywhere except maybe to the endless fields of frustration. Any help/suggestions or comments are welcomed. Am I missing something totally obvious? Easier way of doing it? Macrc?

    Hope there is someone out there looking for a challenge!!

    Cheers and thanks

    Rob Steward

    --\\ EDIT: 02/12/2013 13:01 Can not have new sheets. Data for each persons has to be seperate.
    Last edited by a1b2c3d4e5f6g7h8; 02-12-2013 at 08:02 AM. Reason: Can not have new sheets. Data for each persons has to be seperate

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