+ Reply to Thread
Results 1 to 3 of 3

Multiple vlookup arguments

Hybrid View

  1. #1
    Registered User
    Join Date
    10-19-2005
    Posts
    2

    Multiple vlookup arguments

    Does anyone know the solution to the following problem?

    I have data with three columns. The first column is a spatial ID column, the second a depth column. For any given ID there are multiple depth values (i.e. there are repeating ID's for a number of different depth values). The third column is a results column.

    I then want to compare a given ID and depth to the 3 columns and return the result.

    I want to creat a formula that compares both my ID to the ID column and my depth to the depth column to get the correct result. I've tried different vlookup, and, if, and array combinations to no avail.

    anyone?

    Thanks

    Ian

  2. #2
    Domenic
    Guest

    Re: Multiple vlookup arguments

    Assumptions:

    A1:A10 contains the ID

    B1:B10 contains the Depth

    C1:C10 contains the Result

    Formula:

    =INDEX($C$1:$C$10,MATCH(1,($A$1:$A$10=E1)*($B$1:$B$10=F1),0))

    ....where E1 contains the ID of interest, and F1 contains the Depth of
    interest. The formula needs to be confirmed with CONTROL+SHIFT+ENTER,
    not just ENTER.

    Hope this helps!

    In article <ichall.1x60ui_1129752335.5224@excelforum-nospam.com>,
    ichall <ichall.1x60ui_1129752335.5224@excelforum-nospam.com> wrote:

    > Does anyone know the solution to the following problem?
    >
    > I have data with three columns. The first column is a spatial ID
    > column, the second a depth column. For any given ID there are multiple
    > depth values (i.e. there are repeating ID's for a number of different
    > depth values). The third column is a results column.
    >
    > I then want to compare a given ID and depth to the 3 columns and return
    > the result.
    >
    > I want to creat a formula that compares both my ID to the ID column and
    > my depth to the depth column to get the correct result. I've tried
    > different vlookup, and, if, and array combinations to no avail.
    >
    > anyone?
    >
    > Thanks
    >
    > Ian


  3. #3
    Registered User
    Join Date
    10-19-2005
    Posts
    2
    thanks

    Ian

+ 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