+ Reply to Thread
Results 1 to 2 of 2

Dynamic named range and indirect function

  1. #1
    Registered User
    Join Date
    08-04-2023
    Location
    Falkirk, Scotland
    MS-Off Ver
    2010
    Posts
    1

    Dynamic named range and indirect function

    I cannot seem to find an answer to this anywhere so hoping someone can help.

    I have an excel sheet for planning my workouts. In my sheet named Data, I have 10 lists of different exercises for each muscle group. Then on my week 1 sheet I have a section where you can select the muscle group from a drop-down using the data validation =Data!$B$5:$K$5 Then the cell next to it is where you select the exercise so I use the data validation of =INDIRECT(A1)

    The issue is I want to be able to add to the exercises. I have tried using the following formula for the named range

    =OFFSET(Data!$F$6,0,0,COUNTA(Data!$F$6:$F$100),0)

    I know from looking on Google that Indirect and Offset or Index do not work well together.

    Any ideas for a workaround?

  2. #2
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Dynamic named range and indirect function

    Could you upload a mock-up of what you've got (showing what you want to be able to do also) so that it's easier to visualise a solution.

    EDIT- one thing that may be relevant- the last argument of the OFFSET function must be a positive number- probably 1 in the example given.
    Last edited by deadlyduck; 12-21-2023 at 02:24 PM.
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

+ 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] XLOOKUP using INDIRECT with named range to search across multiple dynamic sheets
    By MangoFresh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-02-2022, 11:24 AM
  2. [SOLVED] Dynamic Named Range formula with Indirect and Index for Chart
    By wmfinn001 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-13-2021, 03:14 PM
  3. [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
  4. [SOLVED] INDIRECT cannot be used in a dynamic named range OFFSET
    By BNCOXUK in forum Excel General
    Replies: 18
    Last Post: 09-19-2019, 09:48 AM
  5. Replies: 1
    Last Post: 10-07-2015, 07:45 AM
  6. Replies: 9
    Last Post: 04-01-2015, 04:23 PM
  7. Using INDIRECT to put a Dynamic Named Range in a chart Data Source
    By mgaworecki in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-01-2012, 07:35 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