+ Reply to Thread
Results 1 to 8 of 8

Name differences for the same Customer Number

  1. #1
    Registered User
    Join Date
    05-01-2020
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    58

    Name differences for the same Customer Number

    Hi all,
    I was wondering can anyone help with my problem: To list typos / different "Name" rows, for the same Customer Number (duplicate Customer Numbers)?.

    Just like my example attached, I want to create a field "Name Diff" - to detail where there are different Name instances.

    As you can see from my data, there are different Names (because of typos or married name), for the same Customer Numbers.
    (consider that there could be more than one Name difference, for that same Customer).

    So:
    - If the Name rows are not matching for a Customer - I want the value for that difference captured on that same row, otherwise 0.
    - If the Name rows are matching for a Customer - I want these to be a Null value.
    - If I have just one row for a Customer (just one Customer Number) I want these also to be a Null value.

    Thanks for any help on a formula for this.
    Attached Files Attached Files
    Last edited by MarkJohn51; 06-08-2020 at 06:29 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Name differences for the same Customer Number

    Not really sure what you want shown (your sample is not too clear to me), but see if this will get you heading in the right direction...
    =IFERROR(INDEX($B$2:$B$10,MATCH(A2,$A$2:$A$10,0)),0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-01-2020
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    58

    Re: Name differences for the same Customer Number

    Hi, Thanks.
    What you suggested will provide me with a "correct" version of the Name (it may not be correct).
    Though what I am specifically looking for is a solution to outputting the Name string/character differences, between one row and the next row..for the same Customer number.
    Hope this is clearer?
    Last edited by MarkJohn51; 06-09-2020 at 05:28 AM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Name differences for the same Customer Number

    Perhaps the following will help.
    Column D is populated using: =IFERROR(LEFT(B2,SEARCH(" ",B2)-1),B2)
    Column E is populated using: =IFERROR(RIGHT(B2,LEN(B2)-SEARCH(" ",B2)),"")
    Note that columns D:E are helper columns which may be moved and/or hidden for aesthetic purposes.
    Based on Ford's formula, column C is populated using: =IF(INDEX($B$2:$B$10,MATCH(A2,$A$2:$A$10,0))=B2,"",IF(INDEX(D$2:D$10,MATCH(A2,$A$2:$A$10,0))=D2,E2,D2))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    05-01-2020
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    58
    Quote Originally Posted by JeteMc View Post
    Perhaps the following will help.
    Column D is populated using: =IFERROR(LEFT(B2,SEARCH(" ",B2)-1),B2)
    Column E is populated using: =IFERROR(RIGHT(B2,LEN(B2)-SEARCH(" ",B2)),"")
    Note that columns D:E are helper columns which may be moved and/or hidden for aesthetic purposes.
    Based on Ford's formula, column C is populated using: =IF(INDEX($B$2:$B$10,MATCH(A2,$A$2:$A$10,0))=B2,"",IF(INDEX(D$2:D$10,MATCH(A2,$A$2:$A$10,0))=D2,E2,D2))
    Let us know if you have any questions.
    Hi,
    Customer Name is actually in 3 separate fields..I only merged them in the one field, as I thought it would make my comparisons problem easier.
    Though If I kept these fields separate..would the formula to see the differences in duplicate values be more straightforward?
    Column J - First Name
    Column K - LastName1
    Column L - LastName2

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Name differences for the same Customer Number

    Though If I kept these fields separate..would the formula to see the differences in duplicate values be more straightforward?
    In my opinion it would take a more complex formula and/or more helper columns to sort out differences between names that correspond to the same customer number.

  7. #7
    Registered User
    Join Date
    05-01-2020
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    58
    Quote Originally Posted by JeteMc View Post
    In my opinion it would take a more complex formula and/or more helper columns to sort out differences between names that correspond to the same customer number.
    Thanks...no problem!

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Name differences for the same Customer Number

    You're Welcome and thank you for the feedback. If all of your questions have been answered, please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Customer Row number in formula?
    By domgilberto in forum Excel General
    Replies: 3
    Last Post: 01-13-2015, 10:53 AM
  2. [SOLVED] How to convert number (customer format) to number
    By tuongtu3 in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 07-25-2014, 03:58 PM
  3. using pan number of the customer find details of an customer using excel macros
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2014, 03:31 PM
  4. [SOLVED] Pulling the customer name when I enter the customer number
    By c.seely in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-04-2012, 01:12 PM
  5. replace customer number with customer name
    By openyamind in forum Excel General
    Replies: 3
    Last Post: 11-10-2011, 06:59 PM
  6. Customer number format
    By Daniel Bonallack in forum Excel General
    Replies: 2
    Last Post: 06-15-2006, 08:15 PM
  7. [SOLVED] Customer Number Format
    By Edgar Thoemmes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2005, 10: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