+ Reply to Thread
Results 1 to 3 of 3

define match array using 2 worksheets

Hybrid View

oats define match array using 2... 07-16-2009, 02:19 PM
DonkeyOte Re: define match array using... 07-16-2009, 02:31 PM
oats Re: define match array using... 07-16-2009, 02:45 PM
  1. #1
    Registered User
    Join Date
    07-14-2009
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2007
    Posts
    9

    define match array using 2 worksheets

    hi, i'm trying to define an array for a match function. the function will search in an adjacent worksheet, but i want the array to be defined by the values in 2 cells in the current worksheet.

    say the current worksheet is W1 and the reference worksheet is W2

    the array containing the valid info in the W2 is B1:B400

    in W1, cells C4 and C5 have values corresponding to specific rows in W2

    i only want the match function to search within those rows

    i tried something like this (which did not work):

    MATCH(G$2,([AXS.xls]Sheet1!$B($C4):[AXS.xls]Sheet1!$B($C5)))

    where i clicked on C4 and C5 in W1 for those references

    and G2 contains what i'm looking to match


    thanks!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: define match array using 2 worksheets

    I would opt for INDEX (you will invariably get an INDIRECT suggestion also)

    Your references of W1 & W2 don't really tie out to your sample formula but based on that perhaps...

    =MATCH(G$2,INDEX([AXS.xls]Sheet1!$B:$B,$C4):INDEX([AXS.xls]Sheet1!$B:$B,$C5))

    note you're not presently conducting an Exact match - by omitting the return_type from the match it will default to 1 -- see XL help for more info. if req.

  3. #3
    Registered User
    Join Date
    07-14-2009
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: define match array using 2 worksheets

    sorry, W2 refers to AXS.xls and W1 is the current worksheet

+ 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