+ Reply to Thread
Results 1 to 9 of 9

Alternative to INDIRECT for referencing Named Ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    09-08-2023
    Location
    Kuala Lumpur
    MS-Off Ver
    365
    Posts
    3

    Alternative to INDIRECT for referencing Named Ranges

    Hi!

    Is there any alternative to reference named range based on another cell value without the use of INDIRECT as it slows down calculation generally.

    My current method is based on the Title in C1, it will match the Named Range to present the data accordingly. (Refer to Reports Sheet)

    However this method is not efficient as it will always recalculate and slows down the file. Just wondering is there other alternatives to produce similar results?

    Here is the file for reference.

    Thanks in advance

    Sample Excel 1.xlsx

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,307

    Re: Alternative to INDIRECT for referencing Named Ranges

    Welcome to the forum.

    WHERE are we meant to be looking? Which worksheet?

    EDIT: Oops! Missed the direction to look at the Report sheet.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,307

    Re: Alternative to INDIRECT for referencing Named Ranges

    It's not the INDIRECT function per se, it's the unnecessary use of full column references in the named ranges. Limit them.

    So AName becomes =Attendance!$A2:$A5000 and AMonth becomes =Attendance!$B2:$B5000. Just make the ranges a bit longer than they will ever need to be.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-08-2023
    Location
    Kuala Lumpur
    MS-Off Ver
    365
    Posts
    3

    Re: Alternative to INDIRECT for referencing Named Ranges

    Hi,

    Thank you for your speedy response. I see, so the slowdown is mainly caused by the range selection. Yep, limiting them does fix the issue. Thank you for your input, glad that i do not have to use another formula to fix it haha.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,307

    Re: Alternative to INDIRECT for referencing Named Ranges

    Yes, that is correct. Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  6. #6
    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
    48,050

    Re: Alternative to INDIRECT for referencing Named Ranges

    You could make the Named Ranges dynamic

    AName:
    Formula: copy to clipboard
    =Attendance!$A2:INDEX(Attendance!$A:$A,COUNTA(Attendance!A:A))


    AMonth:
    Formula: copy to clipboard
    =Attendance!$B2:INDEX(Attendance!$B:$B,COUNTA(Attendance!A:A))


    Note: use the same column for the COUNTA.
    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


  7. #7
    Registered User
    Join Date
    09-08-2023
    Location
    Kuala Lumpur
    MS-Off Ver
    365
    Posts
    3

    Re: Alternative to INDIRECT for referencing Named Ranges

    Tried the formula, it will face the same slowdown in calculations as well, probably due to involving massive range (A:A). However, it is a good option if INDIRECT is not used haha.
    Last edited by AliGW; 09-08-2023 at 03:43 AM. Reason: Please do NOT quote unnecessarily! Use the QUICK REPLY button instead.

  8. #8
    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
    48,050

    Re: Alternative to INDIRECT for referencing Named Ranges

    it will face the same slowdown in calculations as well, probably due to involving massive range (A:A).
    It shouldn’t but, if it does, you could always combine the two approaches.

    That would avoid having hundreds of blank entries in the list.

    I'll look again later when I have access to a computer.

  9. #9
    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
    48,050

    Re: Alternative to INDIRECT for referencing Named Ranges

    In the attached updated example, I have converted all the Named Ranges to Dynamic Named Ranges except NSalList. That didn't seem to work with INDIRECT so I've gone with Ali's approach for that.
    Attached Files Attached Files

+ 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] Alternative to INDIRECT with dynamic named range
    By gak67 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2020, 04:38 PM
  2. Need ADO alternative VBA to merge and remove duplicates of multiple Named Ranges
    By ravikiran in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2017, 11:46 AM
  3. Non-Volatile Alternative: Cell or Indirect and Address for Named Range Formula
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-07-2015, 10:02 AM
  4. INDIRECT not referencing named range which exists on another sheet
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-30-2014, 06:55 AM
  5. Using INDIRECT with named ranges
    By wunderfisch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2013, 01:10 PM
  6. INDIRECT and Named Ranges referencing closed workbook
    By gpie in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-06-2005, 07:05 PM
  7. referencing named formula using INDIRECT function
    By rob.hick@nbs.nhs.uk in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 05-11-2005, 05:06 AM

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