+ Reply to Thread
Results 1 to 2 of 2

Named Ranges+VLOOKUP+Arrays=Question

  1. #1
    Registered User
    Join Date
    10-02-2003
    Location
    Rhode Island
    Posts
    63

    Question Named Ranges+VLOOKUP+Arrays=Question

    I have a list of values and from that list I need to define a dynamic named range based on criteria. For example, I need to define a named range for all values in a particular column that begin with 001. It must be dynamic as well as to account for new values added to the list.

    It seems like one way to do this could utilize VLOOKUP. But since VLOOKUP returns one value, it would have to be an array application and I don't know if/how to accomplish that.

    Any guidance would be greatly appreciated.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    10-02-2003
    Location
    Rhode Island
    Posts
    63

    Talking ...

    I figured out a way myself. Here it is for future ref.

    It works with a sorted list and selects a range of cells with a common flag defined in an adjacent column.

    OFFSET is used in combination with MATCH and COUNTIF.

    e.g.

    =OFFSET(Constants!$D$3,MATCH(Variables!$E$7,Constants!$D:$D,0)-3,1,COUNTIF(Constants!$D:$D,Variables!$E$7),1)

    Match determines the starting point for the range and COUNTIF is used to determine the end point. Works nice.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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