+ Reply to Thread
Results 1 to 6 of 6

Define range based on the values in another cells

  1. #1
    Registered User
    Join Date
    12-08-2016
    Location
    Rotterdam, the Netherlands
    MS-Off Ver
    2016
    Posts
    24

    Define range based on the values in another cells

    I've looked on different forums and I found posts of people that want to define a range based on only the amount of rows of the ending cell of the range.

    I'm trying to define a range based on complete cell references for the beginning and the end of the range filled in in different cells.

    For example, cell H3 says that range will start at M6 and cell I3 says that the range will end at T7.

    The code I've written I've added below but errors out.

    Does anyone know how I can best do this?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,024

    Re: Define range based on the values in another cells

    Can you give us an example of what the contents of H3 and I3 look like?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    12-08-2016
    Location
    Rotterdam, the Netherlands
    MS-Off Ver
    2016
    Posts
    24

    Re: Define range based on the values in another cells

    So cell H3 contains the text M6 and I3 contains the text T6.

    So in this case the code should select range M6:T6

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,024

    Re: Define range based on the values in another cells

    Try:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-08-2016
    Location
    Rotterdam, the Netherlands
    MS-Off Ver
    2016
    Posts
    24

    Re: Define range based on the values in another cells

    Thanks! Brilliant!

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,024

    Re: Define range based on the values in another cells

    My pleasure

+ 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] Define new range names based on existing range name offset 1 column to right
    By jprlimey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2014, 07:53 PM
  2. Define % used based on value range?
    By Kayto in forum Excel General
    Replies: 6
    Last Post: 11-27-2013, 12:25 PM
  3. define range of cells based on values that appear on other cells
    By vpappasmet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2013, 07:11 PM
  4. Using cell values to define range of cells to hide
    By goosetopher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2013, 02:59 PM
  5. How to define a range based on (variable) cell values
    By bubastisbastet in forum Excel General
    Replies: 4
    Last Post: 03-13-2010, 07:45 AM
  6. [SOLVED] How do I define a range using values in cells?
    By Matthieu de Wit in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2006, 04:50 PM
  7. How to define a range based on first and last cells with data?
    By Dennis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2006, 09:50 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