+ Reply to Thread
Results 1 to 5 of 5

Lookup w/ aliases

Hybrid View

twodwarfminimum Lookup w/ aliases 10-12-2009, 05:39 PM
teylyn Re: Lookup w/ aliases 10-12-2009, 05:52 PM
twodwarfminimum Re: Lookup w/ aliases 10-12-2009, 06:57 PM
teylyn Re: Lookup w/ aliases 10-12-2009, 07:12 PM
WHER Re: Lookup w/ aliases 10-12-2009, 08:16 PM
  1. #1
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Lookup w/ aliases

    Hi,

    basically, I'm taking your INDEX/MATCH formula, but before applying the MATCH, the formula check sif the MATCH returns an error. If so, it goes on to try and find a match in the next column, and so on.

    break it down into bits like this

    =INDEX(Sheet2!$A$2:$A$4,
        ' now the MATCH bit
        IF(
             ISNA(MATCH(Sheet1!$B3,Sheet2!$B$2:$B$4,0)),  ' if match is an error in column B then
                   'look at column C
                   IF(
                         ISNA(MATCH(Sheet1!$B3,Sheet2!$C$2:$C$4,0)), ' if match is an error in column C then
                                    'look at column D and return this for MATCH
                                    MATCH(Sheet1!$B3,Sheet2!$D$2:$D$4,0),
                   'else = if a match is found in column C, return this for MATCH
                                    MATCH(Sheet1!$B3,Sheet2!$C$2:$C$4,0)),
                   ' end of inner IF
             'else = if a match is found in column B, return this for MATCH
             MATCH(Sheet1!$B3,Sheet2!$B$2:$B$4,0)))
         'end of outer IF

  2. #2
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Lookup w/ aliases

    Another possibility.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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