+ Reply to Thread
Results 1 to 5 of 5

Formula to compare 2 cells, and return if they are similar - quicker way than my own?

  1. #1
    Registered User
    Join Date
    10-20-2017
    Location
    Dublin, Ireland
    MS-Off Ver
    2202 (Build 14931.20858 Click-to-Run)
    Posts
    50

    Question Formula to compare 2 cells, and return if they are similar - quicker way than my own?

    C1=IF(A1=B1,"y","n") is my go-to formula the last 3 years in work.

    If 'Chalk' is in A1, and 'Cheese' is in B1, I want C1 to show its different. I've attached an example, sometimes I conditional format them to be green and red to point it out easier to myself.

    However, writing this formula takes about 20 seconds and I want to see if excel has a pre-built formula to perform this quicker, any thoughts?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Formula to compare 2 cells, and return if they are similar - quicker way than my own?

    You could create a user defined function like =x(A1,B1). That has 9 characters vs the 18 in your formula.
    The huge disadvantage would be that every workbook would need to be a macro-enabled workbook.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Formula to compare 2 cells, and return if they are similar - quicker way than my own?

    Another thought - if you could settle for a TRUE or FALSE result instead of Y or N, then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-20-2017
    Location
    Dublin, Ireland
    MS-Off Ver
    2202 (Build 14931.20858 Click-to-Run)
    Posts
    50

    Thumbs up Re: Formula to compare 2 cells, and return if they are similar - quicker way than my own?

    Quote Originally Posted by GeoffW283 View Post
    Another thought - if you could settle for a TRUE or FALSE result instead of Y or N, then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Good afternoon GeoffW283,

    =A1=B1 is much better, and shorter. I could set conditional formatting for TRUE to make it really stand out.

    Just to mention on your earlier thought, I try to avoid using macros for these as the other people viewing the sheets get upset.

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Formula to compare 2 cells, and return if they are similar - quicker way than my own?

    Glad it works for you - thanks for the feedback and rep

+ 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. [SOLVED] Compare 2 sheets and return values for similar products nr
    By bilglassrolf in forum Excel General
    Replies: 5
    Last Post: 02-05-2019, 06:03 AM
  2. [SOLVED] Formula to compare two cells and return the value
    By chinraj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2014, 08:40 AM
  3. Replies: 15
    Last Post: 05-03-2014, 09:48 PM
  4. Formula to compare two sets of similar data on two sheets
    By twoheadedgames in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-23-2013, 04:18 AM
  5. Compare two columns with a series of text and show which cells are similar.
    By abrig005 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2013, 01:01 PM
  6. [SOLVED] Formula dragging problems / Quicker way of changing individual cells
    By Ardiko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2012, 08:59 AM
  7. [SOLVED] Compare and return similar values
    By jackyong1985 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-30-2012, 11:59 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