+ Reply to Thread
Results 1 to 3 of 3

Refer to Sheets in Formula without INDERECT

  1. #1
    Registered User
    Join Date
    07-31-2015
    Location
    Amsterdam,Netherlands
    MS-Off Ver
    2010
    Posts
    8

    Refer to Sheets in Formula without INDERECT

    Dear all,

    I have a workbook which contains 400 sheets. The sheets are updated every day. On the first sheet there is a "Main" sheet were i'm trying to build a matrix which counts certain things from every sheet. In the martix I want to make a formula which refers to a the corresponding sheet. I have a list of words (the names of the sheets) on the "Main" sheet were I can reference it to. I got it to work with the INDIRECT function, but is was very very slow. Does anyone have a good idea how to make is faster, perhaps without INDIRECT? I don't mind using VBA.

    Thanks in advance!
    PS: I have attached a small printscreen of my problem.


    Capture.PNG

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Refer to Sheets in Formula without INDERECT

    The references C1:10 are wrong. I would expect to see C1:C10 so surprised if that isn't a problem.

    But no, I don't know of a way of referring to a sheet other than using INDIRECT

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: Refer to Sheets in Formula without INDERECT

    I've assumed that the formula was for illustration only, and doesn't actually make sense.

    Have you actually established that the performance degradation was because you introduced INDIRECT? If so, then you can use a helper macro to enter literal (non-INDIRECT) formulas from a column of sheet names.

    Here's one way:-

    no_indirect_cy.xlsm

+ 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. [SOLVED] Formula to refer to last # in interval
    By thisismyname2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-18-2014, 01:45 PM
  2. [SOLVED] How to refer to more than one sheet with With Sheets
    By mario274 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-03-2012, 12:03 PM
  3. Replies: 18
    Last Post: 05-17-2011, 02:31 PM
  4. refer to another sheet in this formula
    By mrp in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2010, 08:21 AM
  5. Dragging formulas that refer across sheets
    By DPGDPG in forum Excel General
    Replies: 6
    Last Post: 11-23-2009, 04:31 AM
  6. #REF in Sheets that refer to Pivot Tables
    By Will C. in forum Excel General
    Replies: 1
    Last Post: 06-02-2006, 03:54 PM
  7. using a listbox or combobox to refer to columns or sheets
    By fern in forum Excel Programming / VBA / Macros
    Replies: 36
    Last Post: 04-03-2005, 01:42 AM

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