Results 1 to 2 of 2

Thread: How I can to obtain intersection cell ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2003
    Location
    Slovakia
    Posts
    20

    How I can to obtain intersection cell ?

    In Range("B1") I have "TEST1" in Range("A6") I have "TEST2"
    in intersection range range("B6") I have "TEST3".
    How I can to obtain this value "TEST3" ?

  2. #2
    Lively Member TheFIDDLER's Avatar
    Join Date
    May 2002
    Location
    here and there and far away
    Posts
    126
    You might be able to use the range intersect function in excel.

    Not exactly sure how you have your data set up but I will assume a standard 2 x 2 grid.

    Enter the following in an excel cell
    +B1:B6 A6:H6

    Result will be the value in the intersecting or overlapping range area. If you use named ranges, this gets really interesting as you can ask for the intersect of ie: +Sales July

    The space between the two ranges indicates that you are looking for an intersecting value.

    Also, the excel functions of Vlookup and Hlookup can be used for what you are asking for. VBA can access any of these builtin functions.
    Last edited by TheFIDDLER; Mar 3rd, 2004 at 10:11 PM.
    -----
    #VBA, VB 6 Professional Edition, Office XP Developper. Excel 97, Excel 2000, Excel XP

    I miss my VIC 20.
    Never should have upgraded to my commodore 64. ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width