+ Reply to Thread
Results 1 to 9 of 9

Match 2 criterias and return a value

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Laos PDR
    MS-Off Ver
    Excel 2007
    Posts
    45

    Match 2 criterias and return a value

    Hi guys

    I need some help on a formula:

    I have a spreadsheet with multiple columns and sheets, and need to match 2 criteria's and return the value if these two criteria's match

    example in Col A Col B Col C
    55 55 1203.45
    66 4522.56
    1012
    1402

    What I want to do is an exact match Col A to (=) Col B and then return the value of Col C, so 55 = 55 and return 1203.45. I have about a 1000 rows where I need to match Col A to B and return Col C

    Appreciate it
    Peter

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 criterias and return a value

    I assume that your 1st Row consist column headers, so your data start from 2nd row. Copy and paste the below formula in 2nd Row other than A to C column row.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope that helps1

    ---

    Sixthsense


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    Laos PDR
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Match 2 criterias and return a value

    Hi Sixthsense

    That works great and I'm sorry but actually explained it very stupid, Col A for example is 55 then the formula needs to go and look for 55 in Col B and then return the value of Col C

    Let me try again with an example:
    Col A = 55
    Col B = 55 or 66 or 1011 - there are almost a 1000 different numbers in Col B
    Col C = 120.50

    So the formula needs to be something like if Col A is an exact match for Col B and in this case = 55 it must return the value in Col C which is 120.50

    I apologise for my bad explanation in the first place

    Regards
    Peter

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 criterias and return a value

    Not sure about this statement 55 or 66 or 1011 - there are almost a 1000 different numbers in Col B

    Try the below formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Let us know in case of further assistance.

    ---

    Sixthsense

  5. #5
    Registered User
    Join Date
    09-17-2012
    Location
    Riyadh,KSA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Match 2 criterias and return a value

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    hope it helps...
    please click the stars if it helps....^_^
    Last edited by greggy99; 10-23-2012 at 02:21 AM.

  6. #6
    Registered User
    Join Date
    08-16-2012
    Location
    Laos PDR
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Match 2 criterias and return a value

    Hi sixthsense

    Please see attachement - Hope this helps
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-16-2012
    Location
    Laos PDR
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Match 2 criterias and return a value

    Hi Greggy99

    Attached is a small upload file - I think I'm going to need some sort of VLookup file

    Pls see if you can help

    Regards
    Peter
    Attached Files Attached Files

  8. #8
    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 2 criterias and return a value

    Peter, try this in E6 and copy down.

    =IFERROR(INDEX($C$6:$C$15,MATCH(A6,$B$6:$B$15,0)),"No Match")
    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.

  9. #9
    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 2 criterias and return a value

    Peter thanks for the reb*

    I am glad that i was able to "make your date"

    ...Fotis txs u just made my day

+ 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