+ Reply to Thread
Results 1 to 11 of 11

Find any transactions totaling $10,000+ within 24 hour period for the same customer

  1. #1
    Registered User
    Join Date
    05-26-2020
    Location
    San Diego, CA
    MS-Off Ver
    2016
    Posts
    8

    Find any transactions totaling $10,000+ within 24 hour period for the same customer

    I have a large amount of data I need to sift through and am having trouble figuring out how to automate this process a bit. My store does many large transactions, often times with the same customers. We need to find any transactions throughout the year totaling $10,000+ within a 24 hour period for the same customer. I.e. If "Customer A" comes in and makes a $6,000 purchase, then comes back within 24 hours and makes a second transaction in the amount of $4,000+, we need to know this.

    I have shrunk down the data and randomized any personal info of our customer but kept the basic format of the sale report I need to look through. How can I do this without my head exploding?
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    Hi, I think it can be done writing a macro (VBA), would that be a problem?
    Do you have any VBA experience?
    Where do you want the data displayed? Another worksheet? Message box?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    05-26-2020
    Location
    San Diego, CA
    MS-Off Ver
    2016
    Posts
    8

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    No I do not have VBA experience.

    It can be displayed anywhere.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    Will see what I can do for you, bedtime now for me here

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,862

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    For lack of a better solution, you could add a "Helper" column adding the date and time together (say in G2 enter A2+B2 and copy it down). Then in Cell H2 you could enter:
    =IF(SUMIFS($D$2:$D$31,$G$2:$G$31,">="&G2-1,$G$2:$G$31,"<="&G2+1,$C$2:$C$31,C2)>=10000,"Large Transactions","")
    copy down
    Attached Files Attached Files

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    @Greb11,
    I read it differently.
    According to his/her words, " If "Customer A" comes in and makes a $6,000 purchase, then comes back within 24 hours and makes a second transaction in the amount of $4,000+"
    not coming forward.
    Difference would come with data like this for specific customer:
    14-May 8:PM _____4,000
    15-May 4:PM_____7,000
    16-May 2:PM_____4,000
    Or
    14-May 8:PM _____4,000
    15-May 4:PM_____3,000
    16-May 2:PM_____4,000

    I end up with non-helper solution:

    Please Login or Register  to view this content.
    Last edited by bebo021999; 10-16-2020 at 03:37 AM.
    Quang PT

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    @bebo021999: Customer E I think does not comply with the request

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    I replace attachment from #6, with new one with both solutions for your choice.
    @Keebellah, could you point out what the error is, in my new update file? Thanks.
    Attached Files Attached Files

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    Customer E transactions are not 10000 or more within 24 hours, I could be mistaken due to my date settings which are dd-mm-yyyy

  10. #10
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,862

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    @Keeellah, you're looking at MY results, which are incorrect. bebo021999's results are the last column, which don't include Customer E

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Find any transactions totaling $10,000+ within 24 hour period for the same customer

    @Gregb11: I stand corrected had both files opened and was looking at the wrong one 🙊

+ 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. Report to sum all customer transactions by month
    By vaskoco in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-24-2020, 04:29 PM
  2. [SOLVED] Mark the last three transactions for each customer
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2016, 01:01 AM
  3. [SOLVED] Macro to find time hour period with maximum sale value
    By Ucpaul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2015, 05:41 PM
  4. How to pull transactions into a template based on a customer code?
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2013, 03:34 PM
  5. Replies: 1
    Last Post: 12-14-2012, 05:39 AM
  6. Grouping customer transactions, then sorting. Please help.
    By dolphinprinting in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-19-2012, 11:53 AM
  7. calculating transactions per second and per hour
    By torch_music in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2005, 09: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