+ Reply to Thread
Results 1 to 8 of 8

Compare Cells in Columns

  1. #1
    Registered User
    Join Date
    09-14-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    83

    Compare Cells in Columns

    Hello community,

    Can someone let me know how to write formula that will allow me to add tick in the cell in column E when there is a email in column F that matches an email in column C

    For example the email [email protected](F4) matches the email in (C6), therefore there is a tick in E6.And if there is no match then put an X in the column.

    Can someone help with formula that will do that automatically?

    Cheers

    Carlton
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Compare Cells in Columns

    Hi Carlton,

    Try this:
    =IFERROR(IF(MATCH(F2,$C$2:$C$7,0),"P"),"O")

    Set the font to Wingdings 2

    Regards,
    Khalid

  3. #3
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Compare Cells in Columns

    Or even simpler:
    =IF(COUNTIF($C$2:$C$7,F2),"P","O")

  4. #4
    Registered User
    Join Date
    09-14-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    83

    Re: Compare Cells in Columns

    Hi Khal

    Thanks for responding.

    It doesn't seem to work. see attachment
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-14-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    83

    Re: Compare Cells in Columns

    Khal take a look at [email protected]. There isn't a duplicate for that email

  6. #6
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Compare Cells in Columns

    Hi,
    See the attached.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Compare Cells in Columns

    Quote Originally Posted by carlton7372 View Post
    Khal take a look at [email protected]. There isn't a duplicate for that email
    No, the formula is searching in column C.

    If you want it to search in Column F with criteria of column c, just reverse the formula:
    =IF(COUNTIF($F$2:$F$7,C2),"P","O")

  8. #8
    Registered User
    Join Date
    09-14-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    83

    Re: Compare Cells in Columns

    Thats great.

    Thank you

+ 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. Compare 2 columns, delete cells with no match
    By cmd in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-22-2019, 04:52 AM
  2. Macro to compare 2 cells in different columns
    By dobracik in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2015, 09:14 AM
  3. [SOLVED] Compare cells in adjacent columns
    By sam99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-22-2013, 05:45 AM
  4. Compare Columns and Highlight Cells
    By Daker3 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-13-2012, 11:22 PM
  5. [SOLVED] Formula needed to compare cells in two columns
    By jlwilliams in forum Excel General
    Replies: 11
    Last Post: 06-05-2012, 05:40 PM
  6. Macro to compare cells in different columns
    By katmison in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2009, 08:31 PM
  7. [SOLVED] compare cells in two columns
    By Easydoesit in forum Excel General
    Replies: 1
    Last Post: 05-10-2005, 03:06 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