+ Reply to Thread
Results 1 to 7 of 7

How to determine if an order was a new order or a reorder for a specific product and cust.

  1. #1
    Registered User
    Join Date
    03-21-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    How to determine if an order was a new order or a reorder for a specific product and cust.

    Data I possess: Transaction Date (A:A), Customer Name (B:B), Sales Order Number (C:C), Product Name (D:D), Units (E:E), Revenue (F:F)

    New order would be anything that the customer hasn't ordered in the past 6 months or ever.

    A reorder would be if the customer had purchased that specific product in the past 6 months.

    I can't wrap my head around how to put this logic into an excel formula.

  2. #2
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149

    Re: How to determine if an order was a new order or a reorder for a specific product and c

    If Sum of Units from Customer Name >0 then a re-order.

    Array formula below:
    Please Login or Register  to view this content.

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

    Re: How to determine if an order was a new order or a reorder for a specific product and c

    Hello Druba and Welcome to Excel Forum.
    It would seem to me that the formula should be something along the lines of:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that the formula assumes the customer name being looked up is in cell G2.
    If this doesn't do what you want, please upload a small desensitized sample by clicking on the GO ADVANCED button below the Quick Reply window and then scrolling down to Manage Attachments to open the upload window.
    Make sure there is enough data to demonstrate your need, however we probably won't need more than a few dates for a couple of customers.
    Make sure your desired results are shown, mock them up manually.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    03-21-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    Re: How to determine if an order was a new order or a reorder for a specific product and c

    Thank you for your work on this, but that didn't work for me. I attached a sample sheet in the way you described.

    Another problem for me would be scaling after I have a good formula for this. How can I expand it to hundreds of thousands of row without Excel giving up on me?
    Attached Files Attached Files

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

    Re: How to determine if an order was a new order or a reorder for a specific product and c

    The following formula yields the same results as those that were manually placed in column F:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Paste the formula into F2 and double click the fill handle to copy down.
    Let us know if you have any questions.

  6. #6
    Registered User
    Join Date
    03-21-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    Re: How to determine if an order was a new order or a reorder for a specific product and c

    Thank you, worked like a charm!

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

    Re: How to determine if an order was a new order or a reorder for a specific product and c

    You're Welcome and thank you for the feedback. 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. Replies: 7
    Last Post: 03-20-2016, 12:06 PM
  2. [SOLVED] Calculate the day of the year of a specific date in order to determine projections
    By DianeP in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-07-2015, 04:45 PM
  3. Replies: 4
    Last Post: 12-02-2014, 03:46 AM
  4. [SOLVED] Order Form to Summarise Order on another sheet with a Submit Order Button
    By KazzICC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-01-2014, 03:25 AM
  5. Replies: 10
    Last Post: 09-27-2012, 03:59 PM
  6. ReOrder Rows in ascending/descending order based on date
    By kurb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2012, 05:42 PM
  7. Replies: 3
    Last Post: 06-16-2010, 04:23 PM

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