+ Reply to Thread
Results 1 to 5 of 5

How to define Range?

  1. #1
    Registered User
    Join Date
    11-29-2009
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    3

    How to define Range?

    Inside the excel cell, how to define a range with known location of row and column?

    For example, I have found out the row of data containing "Test" in the column "B" by using the MATCH("Test",B:B,0) function. Let's say row "30".

    Is there any possible way to define the range by using the column starting from cell A1?

    Typical way would be

    A1:A30

    However, is it possible to be something like

    A1:A<MATCH("Test",B:B,0)>

    Thanks.
    Last edited by kozt77543; 11-29-2009 at 11:54 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to define Range?

    Something like

    A1:Index(A:A,Match("Test",B:B,0))

    or the more volatile

    Indirect("A1:A"&Match("Test",B:B,0))
    Last edited by NBVC; 11-29-2009 at 10:49 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-29-2009
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to define Range?

    Thanks for the swift reply.

    However, for the first solution, somehow I got the error "#VALUE!# when using
    A1:Index(A:A,Match("Test",B:B,0))

    As for the second solution, it works fine. Thanks!!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to define Range?

    It depends on how you use it.

    On it's own will give error

    Within another formule should work

  5. #5
    Registered User
    Join Date
    11-29-2009
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to define Range?

    Thanks. I will try it out.

+ 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