+ Reply to Thread
Results 1 to 11 of 11

Match Value and select data?

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Match Value and select data?

    Hi,
    I am trying to achive below in ColumnD

    Header A Header B Data If exists (based on header A to header B) then drop data into Column D
    A1 A1 test1 test1
    A2 A2 test2 test2
    A3 A5 test3 Not Exist
    A4 Not Exist
    A5 test3

    Please comment.

    Thanks.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Match Value and select data?

    Hi

    For me your request is not clear. Can you upload a small sample workbook?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-04-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Match Value and select data?

    Hi,
    I am having challanges to upload the file.
    Consider Header A is first columns, Header B is second column and Data is third column.
    I am trying to match A and B and then drop value from Data if it match.
    Thanks

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Match Value and select data?

    Let's try once.

    In D1...?

    =IF(A1=B1,C1,"")

  5. #5
    Registered User
    Join Date
    09-04-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Match Value and select data?

    Thanks but this may not work as columns values in A2 and C2 are not in order.
    is there any way to work on range

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Match Value and select data?

    I am sure that i can give you, your solution, but i am not able to understand how your data looks like....

    That's why i asked a SAMPLE workbook. Sorry..

  7. #7
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Match Value and select data?

    You could use the =MATCH() function to see if there is a match, then the =INDEX() function to locate this data based on the location MATCH returns. It will be hard to figure out, though, without any reference, as fotis was saying...

  8. #8
    Registered User
    Join Date
    09-04-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Match Value and select data?

    Thanks Jake,
    I got it. Now only challange is to handle errors.
    Any idea about it. See attached and comment.
    Attached Files Attached Files

  9. #9
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Match Value and select data?

    In 2003 or earlier versions
    =IF(ISERROR(INDEX($B$2:$C$4,MATCH(A2,$B$2:$B$4,0),2)),"",INDEX($B$2:$C$4,MATCH(A2,$B$2:$B$4,0),2))

    In later versions, simply
    =IFERROR(INDEX($B$2:$C$4,MATCH(A2,$B$2:$B$4,0),2)),"")

    and copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  10. #10
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Match Value and select data?

    Couldn't have said it better myself.

  11. #11
    Registered User
    Join Date
    09-04-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Match Value and select data?

    Quote Originally Posted by jake.masters View Post
    Couldn't have said it better myself.
    Thanks for helping it out.

+ 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