+ Reply to Thread
Results 1 to 4 of 4

Determine repeat customers vs. new customers based on purchase date

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    seattle,wa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Determine repeat customers vs. new customers based on purchase date

    I've got a table of customers and purchase dates, and I'm trying to figure out in any given month, whether that customer is a new (registered but not purchased) or repeat customer (purchased in this month or any prior month.) I'm really having a hard time trying to figure out how how to run the iterative calc.

    RegMth CustomerName OrderDate New or Repeat?
    Jan Customer A n/a
    Feb Customer B 20-Feb
    March Customer C 4-Mar
    March Customer B 11-Mar
    March Customer C 24-Mar
    March Customer D 12-Mar

    Can someone please help advise?

    repeat visitor analysis.xlsx

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Determine repeat customers vs. new customers based on purchase date

    Hello,

    You can try this formula on D2
    Please Login or Register  to view this content.
    And drag them down. They will return "Repeat" if that customer is found more than one time in a month.
    (copy pasta from Ford)
    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

    Regards,
    Lem

  3. #3
    Registered User
    Join Date
    05-02-2013
    Location
    seattle,wa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Determine repeat customers vs. new customers based on purchase date

    Thanks Lem! Very elegant and effective. I did have to modify a bit as I needed to do the repeat check for the year, not per month. So i checked on the number one, and modified the formula to check line by line as you go along: =IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)>1,"Repeat","New"). To get the year and month view I could then throw into a pivot table.

    The issues is that in order to make this work, i had to sort by order date. If i wasn't able to do this, is there a way to do this iteratively using an array or vlookup?

    thanks again!!

  4. #4
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Determine repeat customers vs. new customers based on purchase date

    In case you want to do an Array check, this formula might be what you are looking for
    Please Login or Register  to view this content.
    Use it on D2 and drag it down.

    Note that this is an Array formula, so when you edit / enter it, you will need to hold Ctrl-Shift and hit Enter. If you see the formula being wrapped inside a { } then you did it right.

    This formula will flag "New" if a customer only appears once in a month. In case a customer appears more than once, it will flag "New" to the most recent date of the order, and "Repeat" to the rest.

    Note that in case that same customer has two orders in the most recent date, both row will be flagged as "New"

+ 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