+ Reply to Thread
Results 1 to 11 of 11

Help with Vlookup on customer activity

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    England
    MS-Off Ver
    Excel 16.41 for Mac
    Posts
    21

    Help with Vlookup on customer activity

    Hi,

    I have a list of sales made over time with many customers buying many products and many buying different "first products". I don't know how to vlookup the first product purchased by that specific customer? Can somebody guide me please

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Help with Vlookup on customer activity

    Please post a sample sheet ( see yellow banner)

  3. #3
    Registered User
    Join Date
    09-23-2015
    Location
    England
    MS-Off Ver
    Excel 16.41 for Mac
    Posts
    21

    Re: Help with Vlookup on customer activity

    Now with sample sheet showing the columns which need formulas

    Thanks in advance
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Help with Vlookup on customer activity

    Four questions:
    1. What does "Join product" mean and can you describe in words how it is calculated.
    2. What column defines the "different products". The "Product code" column sounds promising but it does not seem to contain product codes.
    3. For "Gap (in days) between this and prior purchase": your sample data is sorted into reverse chronological order. Can I assume this is the case with your real data?
    4. Your sample data also shows just a single customer. Is your real data sorted by customer or will there be other customers interspersed with the provided data?

  5. #5
    Registered User
    Join Date
    09-23-2015
    Location
    England
    MS-Off Ver
    Excel 16.41 for Mac
    Posts
    21

    Re: Help with Vlookup on customer activity

    1. Join Product = the first product (listed in Product Code) which a customer bought
    2. See above
    3. The core data is sorted in reverse chronology - the formula will need to identify the gaps between each transaction and order them correctly
    4. The core data has hundreds of thousands of transactions from thousands of customers, this is just a mock of how "a" customer may trade

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,723

    Re: Help with Vlookup on customer activity

    This will get the date of a customer's first purchase, if that's what you want (not sure) and assuming you have the subscription version or Excel 2019 (please make your forum profile more explicit - latest is vague):

    =MINIFS($B$2:$B$23,$A$2:$A$23,A2)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    09-23-2015
    Location
    England
    MS-Off Ver
    Excel 16.41 for Mac
    Posts
    21

    Re: Help with Vlookup on customer activity

    This isnt what I need sorry, I can identify the join date but its linking the formula to show what the product code for that dates transaction was
    Last edited by AliGW; 08-08-2020 at 06:39 AM. Reason: Please don't quote unnecessarily!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,723

    Re: Help with Vlookup on customer activity

    Just use the result of the MINIFS as one of your lookup values:

    =LOOKUP(2,1/(($B$2:$B$23=MINIFS($B$2:$B$23,$A$2:$A$23,A2))*($A$2:$A$23=A2)),$O$2:$O$21)

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  9. #9
    Registered User
    Join Date
    09-23-2015
    Location
    England
    MS-Off Ver
    Excel 16.41 for Mac
    Posts
    21

    Re: Help with Vlookup on customer activity

    Great, thanks

    How about columns G&H

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,723

    Re: Help with Vlookup on customer activity

    What about columns G and H?

    Fill in a few rows of manually calculated results in the yellow section and attach the workbook again.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,723

    Re: Help with Vlookup on customer activity

    Maybe this for G?

    =SUMPRODUCT((1/(COUNTIF($O$2:$O$23,$O$2:$O$23))*($A$2:$A$23=A2)))

    Maybe this for H?

    =B2-VLOOKUP(A2,$A3:$B$23,2,0)
    Attached Files Attached Files
    Last edited by AliGW; 08-08-2020 at 10:38 AM.

+ 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. VLOOKUP for bonus per customer
    By flaviooooo81 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-01-2017, 10:14 AM
  2. E-mail customer's activity
    By Bigmal70 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2017, 06:36 AM
  3. Vlookup with 2 different customer Ids
    By RossLwn314 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2016, 11:22 PM
  4. [SOLVED] Set up customer database to monitor activity and hold data
    By trumpetman in forum Access Tables & Databases
    Replies: 5
    Last Post: 02-19-2014, 09:04 PM
  5. Activity Time Tracker to capture activity selected from dropdown list
    By dillibabu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-24-2013, 01:10 PM
  6. Replies: 0
    Last Post: 09-03-2010, 05:36 AM
  7. printing customer worksheets from vlookup
    By myownsake26 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2009, 04:39 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