+ Reply to Thread
Results 1 to 10 of 10

Dragging Formula across referencing different worksheets?!

  1. #1
    Registered User
    Join Date
    06-22-2013
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    7

    Dragging Formula across referencing different worksheets?!

    Hey guys,

    Please can you take a look at the attached, I have a sumifs formula that extracts data based on date criteria. The source data is from multiple sheets labelled '1' '2' '3' etc, there are currently 181 colleagues and what i'm trying to avoid is having to manually change each formula to get the correct sheet ref.

    I can find/change but that still involves a lot of hard work and I was wondering if there was any amendments I could make to my existing formula so when I drag across the remaining cells it would change the sheet number

    Example.xlsx

    Thanks in advance
    Last edited by 360Petty; 01-24-2015 at 01:13 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Dragging Formula across referencing different worksheets?!

    Your sample WB has only 1 sheet, and contains links to a WB on your HDD or network.

    I suggest you do some work on that (or make up a dummy WB) that resembles your situation - with some dummy data and dummy worksheets, and then upload that

    Either way, you will probably need to use INDIRECT() to use the headings you have there

    However, I would seriously question the need for a sheet per individual? The generally accepted method for data input is to have all data entered into 1 2-D table on one sheet, then run all your summaries from that - on seperate sheet/s if needed. You will find it much easier to manage, navigate, analyse, you name it, that way
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dragging Formula across referencing different worksheets?!

    Hi

    You could use INDIRECT but the drawback to that is the other workbook needs to be open in memory for updates to happen.

    However do you really need data spread across many sheets/workbooks. You are really giving yourself a lot of hassle and difficulties when you want to analyse/summarise it.

    Ironically this has been a day of many similar questions where the user has data spread in many tables/sheets/workbooks. My response is usually the same, get the data into a normalised flat table of record rows and field headers and all will be simplified.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dragging Formula across referencing different worksheets?!

    ....Update

    There's an Add In called MoreFunc which I understand does allow Indirect to work with a closed workbook. See here
    http://en.kioskea.net/download/downl...d-in-for-excel

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Dragging Formula across referencing different worksheets?!

    Richard, I think the OP is talking about sheets, not workbooks, although the description is somewhat confusing. Looks like we both made the same recommendation regarding 1 data sheet though

  6. #6
    Registered User
    Join Date
    06-22-2013
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    7

    Re: Dragging Formula across referencing different worksheets?!

    Thanks all for the replies

    Yes I agree having the data in 1 sheet would be much easier to manage than spread across multiple sheets. There is good reason for the solution I have and potentially the indirect function could resolve my issue, if only I knew how to apply it.

    Can anyone explain to me how this function works?

    The attachment shows the formula i'm trying to fill across I did columns B - G to as an example of what I require, if I drag over from column G - H then I get the same sheet reference in column H

    Hope this clears up my query

    Regards

    Just for the record in my actual Workbook all the sheets are contained within a single workbook, apologies for the confusion.
    Last edited by 360Petty; 01-24-2015 at 02:03 PM.

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

    Re: Dragging Formula across referencing different worksheets?!

    There is good reason for the solution I have and potentially the indirect function could resolve my issue, if only I knew how to apply it.


    1) I am always interested what het good reason for the solution is. So please share the reason with us.

    2) You get also better help if you add an excel example without confidential information.

    Please also add the desired result.
    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.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dragging Formula across referencing different worksheets?!

    @Ford. Good point completely missed the point about all in one workbook.

    @360Petty

    In general the indirect works like this. With say a sheet name in A1

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    06-22-2013
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    7

    Re: Dragging Formula across referencing different worksheets?!

    The spreadsheet was originally set out for a group of people with very limited experience of excel to input information for a specific employee. The reason I set it up with seperate sheets was purely ease of use for the operators.The open another workbook click a hyperlink and it takes them to that persons information. It's just for ease of use and it wasn't intended for any other use.

    Now I have a situation where im being asked for the workbook to do something it wasn't designed for and rather than redo the whole thing I was looking to bolt something on but I am struggling. I can change the formulas manually but it's time consuming and if there is a solution that I can use then I will have that in my mind for future reference.

    I have added another example of what im trying to achieve in the most basic way I can.

    Richard, how would indirect integrate with another formula or am I just barking up the wrong tree?

    Thanks all

    Example 2.xlsx

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Dragging Formula across referencing different worksheets?!

    basically, you would use this to reference A1 on sheet 1, based on your sample WB...
    =INDIRECT("'"&B$1&"'!A"&ROW(A1))

    This can then be copied down and across

+ 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. Replies: 2
    Last Post: 07-08-2014, 08:53 AM
  2. [SOLVED] Referencing different worksheets from a list in OFFSET/MATCH formula
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2014, 02:51 PM
  3. Dragging a formula referencing multiple tabs
    By gvb in forum Excel General
    Replies: 0
    Last Post: 03-05-2008, 02:21 PM
  4. Formula Referencing data on multiple worksheets
    By ChrisPrather in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-22-2006, 12:15 AM
  5. Referencing previous worksheets in formula
    By cnaquin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2005, 10:55 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