+ Reply to Thread
Results 1 to 3 of 3

Dynamic Named Range

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Dynamic Named Range

    Hi,

    I have a worksheet of data that is updated every day by pasting new data over the old. Some of the columns are named ranges.

    However, the columns may not be in the same place from day to day. For example, the column titled "Tennis" (which is a named range of the same name) may be in column F today and column T tomorrow.

    Is it possible to make the named range dynamic to account for this?

    Thanks!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Dynamic Named Range

    May be use constant column header as identifier


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Dynamic Named Range

    Assuming your column headings are in Row 1, then you can use this formula to create a dynamic named range, of variable row count, in the appropriate column;
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It works by matching "Tennis" in the header row to identify how many columns to offset the named range, and by counting the nonblank cells in that column to calculate the height (# rows) of the range.

    If this doesn't quite suit the range you want, attach a sample workbook showing how your data is laid out, and it's easy to tweak to suit
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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] Dynamic Named Range Help - Range Based on Values in Column
    By Filibuster in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-03-2012, 11:13 AM
  2. Dynamic Named Range
    By Eric Hearn in forum Excel General
    Replies: 2
    Last Post: 09-01-2009, 10:08 PM
  3. Named ranges-Should I use a dynamic named range
    By foseco in forum Excel General
    Replies: 4
    Last Post: 06-11-2009, 03:56 PM
  4. dynamic named range
    By compaq in forum Excel General
    Replies: 10
    Last Post: 05-30-2007, 07:52 AM
  5. getting the absolute range address from a dynamic named range
    By junoon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2006, 09:30 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