+ Reply to Thread
Results 1 to 5 of 5

Using Index/Match to return a specific value with a condition

  1. #1
    Registered User
    Join Date
    12-09-2014
    Location
    Providence, RI
    MS-Off Ver
    Excel 2010
    Posts
    16

    Using Index/Match to return a specific value with a condition

    I've got a pretty straightforward database where each row represents a unique entry. My primary key is an identification number, which can be repeated if the participant has multiple entries. Each entry has a unique value, and I'm trying to find an easy way to generate a formula which returns only the value in column C for entry #1 by each participant.

    So even though Participant 123 has three entries, I want the value in column D (highlighted) to always represent what's in C2. It seems like I could use IndexMatch to get what I need here, but I'm having trouble connecting the dots.

    maniNql.png
    Last edited by kslattery; 01-11-2019 at 11:27 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Using Index/Match to return a specific value with a condition

    Put this in D2:

    =VLOOKUP(A2,A:C,3,0)

    then copy down to the bottom of your data.

    Hope this helps.

    Pete

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Using Index/Match to return a specific value with a condition

    Here it is

    Capture.JPG
    Quang PT

  4. #4
    Registered User
    Join Date
    12-09-2014
    Location
    Providence, RI
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Using Index/Match to return a specific value with a condition

    Thanks -- didn't think to use VLOOKUP within the same table!

  5. #5
    Registered User
    Join Date
    12-09-2014
    Location
    Providence, RI
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Using Index/Match to return a specific value with a condition

    Quote Originally Posted by bebo021999 View Post
    I tried this, but ended up getting a "value not available" error for ID 44 when I entered the formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with Index Match to Return Specific Value if False
    By Peelah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-04-2019, 07:34 PM
  2. [SOLVED] Using the right formula to MATCH/INDEX/VLOOKUP cells that follow a specific condition
    By milkychips in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-29-2016, 09:19 AM
  3. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  4. Need help with Index and Match to return specific values
    By yessuz in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-04-2016, 04:44 AM
  5. Index match with condition
    By felixpanganiban in forum Excel General
    Replies: 2
    Last Post: 11-29-2015, 04:22 AM
  6. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  7. Using INDEX, MATCH, but need condition
    By philiphales in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-25-2005, 10:27 AM

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