+ Reply to Thread
Results 1 to 4 of 4

Help with a formula referencing multiple tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    09-08-2009
    Location
    Newark, Delaware
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help with a formula referencing multiple tabs

    Hi all,

    I'm a bit over my head on this one. I want a formula that does the following: Look at the date I put in on the last tab and find the correct date on the other tabs. Using that date as the column I want it to return the correct row for the data.reference.

    I am using the HLOOKUP function. I'm not even sure this is the right function. Ont the workbook attached I'm trying to get the data on the Totals tab to come from the Sept Wk 1 through Sept Wk 5 tabs. The formula I tried to use is on the Totals page C7.

    Any help is greatly appreciated! If this isn't clear enough I'll answer any questions ASAP!


    Thanks!
    Alan
    Attached Files Attached Files
    Last edited by NBVC; 09-08-2009 at 10:11 AM.

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

    Re: Help with a formula referencing multiple tabs

    It depends on your actual sheet names, what is the best method/formula to use...

    If you have only sheets with same name (except for number) as in your example, then you can use this:
    =SUMPRODUCT(SUMIF(INDIRECT("'Sept Wk "&ROW(INDIRECT("1:5"))&"'!B1:H1"),$B$2,INDIRECT("'Sept Wk "&ROW(INDIRECT("1:5"))&"'!B5:H5")))
    And you would just adjust the B5:H5 to extract your relevant data...

    If your sheets are inconsistently named, you can employee a free addin called Morefunc.xll downloadable from here... http://download.cnet.com/Morefunc/30...-10423159.html

    and use formula

    =SUMPRODUCT(--(THREED('Sept Wk 1:Sept Wk 5'!$B$1:$H$1)=$B$2),THREED('Sept Wk 1:Sept Wk 5'!$B5:$H5))
    which uses sheet range (first to last)

    again adjusting B5:H5 as needed
    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
    09-08-2009
    Location
    Newark, Delaware
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with a formula referencing multiple tabs

    Phenomenal! It worked flawlessly! I'll have to learn more about these indirect references. So nice.

    Thanks again! You have saved me those precious few minutes at 2am when i have to input my numbers.

    I'll mark this as solved when I get home tonight (blocked at work for some reason).

    -Alan

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

    Re: Help with a formula referencing multiple tabs

    I will mark it for you...

+ 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