+ Reply to Thread
Results 1 to 8 of 8

Offset Dynamic Named Range

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Offset Dynamic Named Range

    Hi all,

    I know how to create a dynamic named range so that no blanks appear in my data validation list but have only ever done this for a list in a column, i.e...

    -----A-----
    1--Apple
    2--Orange
    3--Pear
    4--Bannana
    5--
    6--

    A1:A6 would be named Fruit, then name manager, edit: =OFFSET($A$1,0,0,COUNT($A1:$A6),1)

    The Data Validation list then shows Apple, Orange, Pear, Bannana. And if I add Peach into A5 later, that then appears in the list.


    What I need though is to edit this as if the named range 'Fruit' covers cells A1:F1.

    ------A---------B-------C--------D-----------E-----------F
    1--Apple---Orange---Pear---Bannana---
    2--


    Thanks in advance.

    Jason

  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
    48,426

    Re: Offset Dynamic Named Range

    Try
    Formula: copy to clipboard
    =$A$1:INDEX($1:$1,COUNT($1:$1))



    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
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Re: Offset Dynamic Named Range

    Quote Originally Posted by TMS View Post
    Try
    Formula: copy to clipboard
    =$A$1:INDEX($1:$1,COUNT($1:$1))



    Regards, TMS
    Applied the sample solution above to my real workbook but still getting the blanks show up in the data validation list

    =Surveys!$F$190:INDEX(Surveys!$F$190:$ABH$190,COUNT(Surveys!$F$190:$ABH$190))


    Might be worth adding that the cells in the range F190:ABH190 contain an IF formula to decide if they are blank or not
    Last edited by jwillis07; 07-23-2014 at 04:39 AM.

  4. #4
    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,426

    Re: Offset Dynamic Named Range

    This is the problem when the information provided is over-simplified and does not reflect the real workbook.

    Please post a sample workbook which has typical data and formulae in the cells/rows/columns that you need to cater for.

    Not interested in it being real data, just enough that it can be tested.

  5. #5
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Re: Offset Dynamic Named Range

    Quote Originally Posted by TMS View Post
    This is the problem when the information provided is over-simplified and does not reflect the real workbook.

    Please post a sample workbook which has typical data and formulae in the cells/rows/columns that you need to cater for.

    Not interested in it being real data, just enough that it can be tested.
    Example workbook attached that reflects the real data better.

    Thanks again,

    Jason
    Attached Files Attached Files

  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,426

    Re: Offset Dynamic Named Range

    Formula: copy to clipboard
    =Surveys!$F$190:INDEX(Surveys!$F$190:$ABH$190,COUNTIF(Surveys!$F$190:$ABH$190,"> "))


    seems to work OK.


    Regards, TMS

  7. #7
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Re: Offset Dynamic Named Range

    Lovely. Works just like I hoped.

    Thanks very much TMS!!

  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,426

    Re: Offset Dynamic Named Range

    You're welcome. Thanks for the rep.

+ 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] Need a Dynamic Named Range; Offset/Match using 2 Columns
    By Kalithro in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-18-2013, 06:54 AM
  2. Named dynamic range using offset in VBA
    By craigmcewan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2011, 05:11 AM
  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. [SOLVED] named range row offset
    By barbetta3141@yahoo.com in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-07-2006, 08:45 PM
  5. Dynamic named range & Offset
    By fastballfreddy in forum Excel General
    Replies: 1
    Last Post: 05-04-2006, 04:10 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