+ Reply to Thread
Results 1 to 3 of 3

Iff Statements - Identify the extra space

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Iff Statements - Identify the extra space

    Hello,

    I am comparing data from two columns:

    A B C
    John W John W

    The difference between A vs B is there is an extra space in row A: "John W".

    I have a couple of thousands of records in scenario. Is there a way to create an IFF statement in which identify the names with the extra space? And if there is an extra space after comparison, I want row C1 to say "Mismatch on Name: Extra Spaces"


    Thank you

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Iff Statements - Identify the extra space

    The formula below will return this response. Also, the TRIM function may be useful for you. =TRIM(A1) will return the value in A1 with spaces removed from the start and finish.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please click the * icon below if I have helped.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Iff Statements - Identify the extra space

    I usually use =IF(A1=B1,"","NOT A MATCH") and that usually points out to me when the two aren't equal, provided they are sorted first and expected to match.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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. Excel 2007 : Remove Extra Space
    By Jerseynjphillypa in forum Excel General
    Replies: 2
    Last Post: 11-08-2011, 12:09 PM
  2. Replies: 2
    Last Post: 03-11-2008, 11:26 AM
  3. [SOLVED] delete extra space
    By WBTKbeezy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-20-2006, 02:10 PM
  4. [SOLVED] Extra Line Space
    By Leesa in forum Excel General
    Replies: 1
    Last Post: 05-24-2005, 05:06 PM
  5. Extra line space
    By JJ in forum Excel General
    Replies: 1
    Last Post: 02-18-2005, 08:06 PM

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