+ Reply to Thread
Results 1 to 4 of 4

Formula to compare two sets of numbers for different Invoices

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Formula to compare two sets of numbers for different Invoices

    I have a list of Invioce ID's in column A. For each invoice there is also two customer IDs assigned to each. I need to create relationships between invoices. For example if the customer two ID on invoice B is 120 and the customer ID on invoice D is also 120, but the customer one ID from both invoices are different, assign a new customer ID number.

    I have attached a sample of data and expected results. Any assistance is greatly appreciated. Thanks.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formula to compare two sets of numbers for different Invoices

    Hi maac,

    Little lengthy to understand but finally understood the logic behind but just one query which does not fit into the criteria to which others are fitting in :-

    Below is the data in Row 19:-
    R 18 66 38 360 987654

    customer one Id is 66 and customer two id is 360 but still the "expected new number" is 987654 which should be some different number ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Re: Formula to compare two sets of numbers for different Invoices

    To clarify
    1. customer 61 is related to customer 340 (line 18)
    2. customer 66 is related to customer 340 (line 20)
    3. customer 66 is related to customer 360 (line 19)

    This stands to say that if customer 66 is related to customer 360 and customer 340, then customer 61 must also be related to customer 360. As such, all 4 customers must be related, which is why they are all part of the same group. Thanks

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formula to compare two sets of numbers for different Invoices

    Hi maac,

    See the attached file where I have achieved the 1st level relationship.
    I am seeing if I can achieve the 2nd level relationship as well, will update you once done.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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