+ Reply to Thread
Results 1 to 5 of 5

Complex IF to mark customer transactions Last transaction of day across ranges

  1. #1
    Registered User
    Join Date
    06-03-2022
    Location
    Essex, England
    MS-Off Ver
    Microsoft 365 Version 2108
    Posts
    3

    Complex IF to mark customer transactions Last transaction of day across ranges

    Hi,

    My first post on here, so please be gentle :-)

    I have 3 columns of data, DATE, TIME and NAME of customer. Customers can have multiple transactions within the same day and different times and also across multiple days.

    I currently have three text values as outcomes 1) No customer name at present 2) Not Last Transaction 3) Last Transaction. The Last Transaction acts as the final outcome for the customer within that day and time span.

    I have a list of over 2000 customer transactions growing each day, mostly adding new customers each time, or repeating customers.

    Currently I manually do the following :

    1) Filter 'blank' customer name and manually add to all the cells in a column TRANSACTION STATUS - No customer name at present.

    2) CUSTOMER NAME column I use duplicate conditional formatting, to highlight multiple transactions per customer.

    3) SORT by CUSTOMER NAME, then DATE, then TIME.

    4) FILTER, CUSTOMER NAME on NO FILL to show single transaction customers - TRANSACTION STATUS column - mark them as LAST TRANSACTION

    5) FILTER, CUSTOMER NAME on DUPLICATE COLOUR, this will show all blank cells in TRANSACTION status column.

    6) I then manually eyeball each customer name within the same day and different times. e.g. 4 x customer name, 3 transactions with single day with different times, and 1 transaction following day. For the 3 within the same day the earliest 2 transactions are marked as NOT LAST TRANSACTION, and the final transaction by time is marked as LAST TRANSACTION. the single Transaction the following day is also marked as LAST TRANSACTION.

    7) I proceed down the list with each appended set of data.

    8) To complicate matters manually some times the MISSING customer name is added at a later date, so I have to check for those. But a formula should remove this, as and when a name is added it would auto change.

    There is an extra layer of complexity that I simply ignore at this time is that the transactions could be at a different location, hence single day with multiple times could be two sites, but that is too infrequent at present to worry about manually.

    Any help would be great.

    I don't know what TAGS to add.

    I also have a follow up question on PIVOT tables in relation to this data, but will as per rules ask one thing at a time.
    Attached Files Attached Files
    Last edited by UKDoc; 06-06-2022 at 10:56 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Complex IF to mark customer transactions Last transaction of day across ranges

    HOW TO ATTACH YOUR SAMPLE WORKBOOK:

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-03-2022
    Location
    Essex, England
    MS-Off Ver
    Microsoft 365 Version 2108
    Posts
    3

    Re: Complex IF to mark customer transactions Last transaction of day across ranges

    Added Dummy Data file

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Complex IF to mark customer transactions Last transaction of day across ranges

    Something like this:

    =IF(A2="","",IF(AND(B2<>"",C2=""),"Missing",IF(COUNTIF(C$2:C2,C2)=COUNTIF(C:C,C2),"Last","Not Last")))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Registered User
    Join Date
    06-03-2022
    Location
    Essex, England
    MS-Off Ver
    Microsoft 365 Version 2108
    Posts
    3

    Re: Complex IF to mark customer transactions Last transaction of day across ranges

    Thanks very much that worked a treat.

+ 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. [SOLVED] Count and Sum subsequent transactions by original transaction date
    By shepardrf in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-22-2020, 01:00 AM
  2. 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
  3. [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
  4. Multi-expense transactions and transaction types
    By dougdrex in forum Access Tables & Databases
    Replies: 3
    Last Post: 10-08-2014, 03:45 PM
  5. Grouping customer transactions, then sorting. Please help.
    By dolphinprinting in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-19-2012, 11:53 AM
  6. Formula to mark offsetting transactions
    By jmiller7 in forum Excel General
    Replies: 4
    Last Post: 01-14-2011, 07:23 PM
  7. Getting totals for each customer transaction
    By panamakevin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2010, 12:04 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