Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Joining Ranges (97;SR2)

    Is it possible to join more than one range? I would like to Vlookup an item in more than one range without merging the two ranges together on the XL worksheet.

    I thought I read a VBA thread on this but can't seem to remember which one or where.

    Thanks,
    John

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Joining Ranges (97;SR2)

    As far as I Know, you would have to write your own custom Vlookup-type function in VB or combine them into a megaformula which did 2 vlookups, something like:

    =IF(ISERROR(VLOOKUP(LookupValue,Range1,2,0)),VLOOK UP(LookupValue,Range2,2,0),VLOOKUP(LookupValue,
    Range1,2,0))

    Steve

  3. #3
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Joining Ranges (97;SR2)

    In VBA, you can combine ranges with Union and Intersection, but in Excel, Steve's way above is the only way that I know. --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

Posting Permissions

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