+ Reply to Thread
Results 1 to 8 of 8

Identify from Match and Return

  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    MS Excel 2016
    Posts
    34

    Thumbs up Identify from Match and Return

    Hello,

    I am having datasheet as below
    Accordingly, for values in Column A:
    1) Correct=1
    2) Correct and/or incorrect and/or ambigious= 0

    I want to match the species from column C to the Column B and look in the column A whether they possess correct/ambigious/incorrect
    Now, in column D 'Result' = Return match with only 'correct' identification to print 1, but if the species column possess any other identification as correct/ambigious/incorrect then print 0

    For example, "Aerva javanica" is having all correct so = 1...
    But, "Aegilops triuncialis" is having correct, ambigious as well as incorrect so = 0

    In short I need to find the species that are having only correct value all over, if any other value instead of correct is observed then return 0

    Please suggest formula/function accordingly

    (col. A) Identification (col. B) Species (col. C) Match (col. D) Result
    ambiguous Aaronsohnia factorovskyi Aaronsohnia factorovskyi 0
    ambiguous Aaronsohnia factorovskyi Aegilops triuncialis 0
    correct Aegilops triuncialis Aerva javanica 1
    ambigious Aegilops triuncialis Aeluropus lagopoides 0
    incorrect Aegilops triuncialis
    incorrect Aeluropus lagopoides
    incorrect Aeluropus lagopoides
    correct Aerva javanica
    correct Aerva javanica
    correct Aerva javanica

    Help appreciated, thanks in advance..
    Last edited by rajamdade; 08-28-2018 at 05:51 AM. Reason: Solved

  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,732

    Re: Identify from Match and Return

    Try this in D2:

    =IF(A2="correct",1,0)

    then copy down. An alternative (slightly shorter) version is:

    =--(A2="correct")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    MS Excel 2016
    Posts
    34

    Re: Identify from Match and Return

    But "Aegilops triuncialis" is having correct, ambigious as well as incorrect then the result needs to be 0...
    In short I need to find the species that are having only correct value all over, if any other value instead of correct is observed then return 0

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Identify from Match and Return

    That is precisely what this does:

    =IF(A2="correct",1,0)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    MS Excel 2016
    Posts
    34

    Re: Identify from Match and Return

    Thanks for your reply,
    Might be my mistake to make understand what I need...

    I want to match the species from column C to the Column B and look in the column A whether they possess correct/ambigious/incorrect

    in column D 'Result' = Return match with only 'correct' identification to print 1, but if the species column possess any other identification as correct/ambigious/incorrect then print 0

    Thanks
    Last edited by rajamdade; 08-28-2018 at 05:46 AM.

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

    Re: Identify from Match and Return

    Your layout was not very clear. Put this in D2:

    =IF(COUNTIF(B:B,C2)=COUNTIFS(B:B,C2,A:A,"correct"),1,0)

    then copy down.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    MS Excel 2016
    Posts
    34

    Re: Identify from Match and Return

    Yes! it solved....
    Thank you very much Pete_UK and AliGW

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

    Re: Identify from Match and Return

    You're welcome - thanks for the rep.

    Pete

+ 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. Replies: 3
    Last Post: 08-16-2018, 06:07 AM
  2. [SOLVED] Match formula to search range of columns to return True or False result
    By Twaddy006 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2015, 05:42 PM
  3. match the data from the other tabs and return value if true or false
    By pphg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2013, 04:33 AM
  4. [SOLVED] Match specific words in cell and return value if true or false
    By jbrooksia in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 04:15 PM
  5. Match and return a true false value
    By dcaraher in forum Excel General
    Replies: 2
    Last Post: 09-25-2009, 06:42 AM
  6. [SOLVED] Search for 2 true arguments and return true or false
    By David in forum Excel General
    Replies: 3
    Last Post: 07-15-2006, 05:20 AM
  7. Function to return True/False if all are validated as True by ISNU
    By Tetsuya Oguma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2006, 06:30 AM

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