+ Reply to Thread
Results 1 to 4 of 4

Compare Cells

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Compare Cells

    =IF(M7=(M5:M6),"",M7)

    This formula looks at a description in Cell M7 compares it to other descriptions before it and returns a value if it cannot find a match. The only problem is the formula doesn't work it returns #value. Any help on this maybe a different formula, someone mentioned pivot tables but i dont know how these work so any other suggestions would be great

  2. #2
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: Compare Cells

    yes, you could use a pivot table, but this formula should do what you would like:

    =if(or(M7=M5,M7=M6),"",M7)

    Hope this helps

  3. #3
    Forum Contributor
    Join Date
    06-23-2010
    Location
    Iowa, United States
    MS-Off Ver
    Excel 2007
    Posts
    145

    Re: Compare Cells

    Hello SalamanderSam,

    Try this:

    =IF(COUNTIF(M5:M6,M7)<>0,"",M7)

    If you want to increasing your range, just change "M5:M6" to something larger.

    Let me know if this works for you!

    Steve
    Last edited by Steve0492; 06-21-2012 at 10:05 AM.
    A VBA novice, excited to learn!

  4. #4
    Registered User
    Join Date
    01-04-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Compare Cells

    Quote Originally Posted by Steve0492 View Post
    Hello SalamanderSam,

    Try this:

    =IF(COUNTIF(M5:M6,M7)<>0,"",M7)

    If you want to increasing your range, just change "M5:M6" to something larger.

    Let me know if this works for you!

    Steve

    Thanks for both your comments, i have used Steve's Idea as i need to copy this formula down for a lot of cells and this seems the easiest to do.

+ 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