+ Reply to Thread
Results 1 to 3 of 3

Finding the max of multiple repeating customers using vlookup

  1. #1
    Registered User
    Join Date
    08-20-2004
    Posts
    7

    Finding the max of multiple repeating customers using vlookup

    I'm working on a customer data conversion for over 7000 customers. In my file I may have the a customer to show up only once or up to 80 times (multiple addresses for same customer). So I have to determine which of the customer addresses is the "primary customer" by flagging it with a "Y" for those that have the highest sales amount.

    So in the attached spreadsheet, I have 3 columns.
    Column A - Customer #
    Column B - Sales amount
    Column C - Primary (top customer address)

    Any ideas on a formula I can use in column C?
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Finding the max of multiple repeating customers using vlookup

    If, as implied by your sample, the data is sorted by A and then B (desc) then simply

    C2: =IF(C2<>C1,"Y","")
    copied down

    EDIT: though I suspect you get more value from

    C2: =IF(C2<>C1,A1&":Y","")
    copied down

    You will subsequently find it quite easy to extract the address for a given supplier by simply searching Column C for "customer:Y"
    Last edited by DonkeyOte; 10-03-2009 at 08:50 AM.

  3. #3
    Registered User
    Join Date
    08-20-2004
    Posts
    7

    Re: Finding the max of multiple repeating customers using vlookup

    I think that is going to work well.

    C2: =IF(A2<>A1,A1&":Y","")

    Thanks for your help!

+ 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