+ Reply to Thread
Results 1 to 15 of 15

Matching info from cell to cell and returning "Yes" or "No"

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Matching info from cell to cell and returning "Yes" or "No"

    Col I will remain static.

    If any cell in col E matches any cell in col I I want it to return "Yes" or "No" if it does not.

    Test sheet attached.

    Also, if I copy and paste the info into cell E from a csv file will the formula still work?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Matching info from cell to cell and returning "Yes" or "No"

    oops...COL F is the destination for the yes or no.

  3. #3
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Matching info from cell to cell and returning "Yes" or "No"

    Try this formulas but change the format of col F to number format.

    =IF(ISERROR(MATCH(E1,$I$1:$I$26,0)),"NO","YES")
    If this post helps, Please don't 4get to click the star icon located at the bottom left of my Post.

  4. #4
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Matching info from cell to cell and returning "Yes" or "No"

    Thanks, but that does not appear to be working for me.

  5. #5
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Matching info from cell to cell and returning "Yes" or "No"

    Check attache file.

    match-iserror.xlsx

  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: Matching info from cell to cell and returning "Yes" or "No"

    Hi

    AZIZ formula and also this formula .

    =IF(COUNTIF(I:I,E1)>0,"yes","no")

    ..Work, but you have to find a way to change your format to the columns..

    In E1 there is the wors "BAK Bega". Also in I25. Try to do this. =i25=e1 Will gives you FALSE!
    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.

  7. #7
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Matching info from cell to cell and returning "Yes" or "No"

    The data I copy and post into Col E is from a csv file, the csv file is generated from a data base.
    The data in Col I is hand typed in.
    If I copy say E1 and paste it into Col I the formula works.

    Some type of format problem?

  8. #8
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Matching info from cell to cell and returning "Yes" or "No"

    got it....your data has trailing spaces so use Trim(E1) and copy down to remove all the extra spaces and then copy these values and by using paste special command only paste values. it will work...

  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: Matching info from cell to cell and returning "Yes" or "No"

    This is a good idea BUT even in this case it will not work for all, because in column I(manually typed),in many occasions there are extra spaces...

    See the example
    Attached Files Attached Files

  10. #10
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Matching info from cell to cell and returning "Yes" or "No"

    got it .....

    Use this formula so you don't need to remove extra spaces manually ....
    Don't forget to press Ctrl + Shift + Enter to enter the below formuls.... these {} ll come automatically
    {=IF(ISERROR(MATCH(TRIM(D13);TRIM($I$1:$I$26);0));"NO";"YES")}

  11. #11
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Matching info from cell to cell and returning "Yes" or "No"

    here is the file and hope it will work

    match-error-trim.xlsx

  12. #12
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Matching info from cell to cell and returning "Yes" or "No"

    That is looking the goods people, I will just check it with some more real data and see how it goes.
    Back shortly.

  13. #13
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Matching info from cell to cell and returning "Yes" or "No"

    Brilliant stuff!
    Thank you so much for your time and effort people, much appreciated.

  14. #14
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Matching info from cell to cell and returning "Yes" or "No"

    Your imported data in Column E is fixed length (30 characters)

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

    Drag/Fill down.

    Am I missing something?
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  15. #15
    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: Matching info from cell to cell and returning "Yes" or "No"

    You are welcome by me

    Thanks for the feed back and also for reb*

    I tink, aziz, too!

+ 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