+ Reply to Thread
Results 1 to 8 of 8

Dynamic Range Names

  1. #1
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Dynamic Range Names

    Looking to create three dynamic ranges that move based on field 1 of the attached spreadsheet sample.

    The first range would be named "Blue", the second "Red" and the third "Green". Each day, new data will populate this same sheet (in the same format), only there will be a different number of rows for each color (sometimes less, sometimes more). What is the formula to create these dynamic ranges? If you can tell me how to do one of them, I can likely figure out the other two.

    Thanks greatly, in advanced. This will really help me.

    D
    Attached Files Attached Files
    ______________________________________
    "Vision without Execution is a Hallucination"
    Edison

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Dynamic Range Names

    But will the Data be always sorted in field 1? Like will all the Blue entries always be together?
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: Dynamic Range Names

    Yes, that's correct.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Dynamic Range Names

    What are you trying to do with this data?

    (your profile says 2003, but your upload suggests 2007 or later. Please revise your profile)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: Dynamic Range Names

    I work in both. The best solution will work in 2003 and 2010. There are other formulas that refer to the range names mentioned below. Right now, we re-name the ranges every day but would like this happen automatically. Does this make sense?

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dynamic Range Names

    One way...

    Blue =

    =OFFSET(A2,MATCH("blue",A2:A1000,0)-1,0,COUNTIF(A:A,"blue"),5)

    Use a reasonable end of range in column A where I use down to A1000.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Dynamic Range Names

    Here's a named range refers to, for Blue:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    just change the named range name , and the "color" for the other ranges

    Hope this helps

    EDIT-
    And as Tony suggested in thread above Change the $A:$A references to a reasonable size, I used the whole column because I didn't know your acceptable range, but maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by dredwolf; 10-28-2013 at 10:20 PM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  8. #8
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Dynamic Range Names

    See the attached
    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. Trouble referring to dynamic names in a Range
    By BeefNoodleSoup in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2011, 01:51 AM
  2. Dynamic range names
    By icegood in forum Excel General
    Replies: 2
    Last Post: 02-23-2011, 12:30 PM
  3. [SOLVED] dynamic range names in Edit -> Go to
    By Tim Marsh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2006, 08:50 AM
  4. Dynamic Range Names For a Graph
    By whiZZfiZZ in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-16-2006, 01:45 PM
  5. Question for use of offset and range:Dynamic names
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 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