+ Reply to Thread
Results 1 to 5 of 5

Find last product sell date of agent

  1. #1
    Forum Contributor
    Join Date
    10-30-2019
    Location
    GUJARAT,INDIA
    MS-Off Ver
    MS OFFICE 2016
    Posts
    134

    Find last product sell date of agent

    FORMULA TO FIND GREATEST FOR DATE FOR EACH UNIQUE AGENT AND CORRESPONDINDG PRODUCT NUMBER IN SHEET2


    seach each agent number shown in sheet2 col.A in sheet2 and paste greatest date for each agent in col.B sheet2 with corresponding product number in col C sheet2


    CAN ANYONE PROVIDE HELP.
    Attached Files Attached Files

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

    Re: Find last product sell date of agent

    B2, copied down:
    =IF(A2="","",AGGREGATE(14,6,Sheet1!$D$2:$D$250/(Sheet1!$J$2:$J$250=A2),1))

    C2, copied down:
    =IF(A2="","",INDEX(Sheet1!$B$2:$B$250,MATCH(1,INDEX(((Sheet1!$J$2:$J$250=A2)*(Sheet1!$D$2:$D$250=B2)),0),0)))
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Find last product sell date of agent

    Sheet2


    B2=IF(AND(Sheet2!$A2<>"",Sheet2!B$1<>""),LOOKUP(2,1/(Sheet1!$J$2:$J$222=Sheet2!$A2),Sheet1!B$2:B$222),"")

    copy across and down
    Attached Files Attached Files

  4. #4
    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,780

    Re: Find last product sell date of agent

    Here's an alternative using the Table.Max() function in PowerQuery.

    M Code:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    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.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Find last product sell date of agent

    Please add this formula for column A to get unique list of agents.
    In A2 then copied down.

    =IFERROR(INDEX(Sheet1!$J$2:$J$222,AGGREGATE(15,6,ROW(Sheet1!$J$2:$J$222)/(ISERROR(MATCH(Sheet1!$J$2:$J$222,$A$1:$A1,0))),1)-ROW($J$1)),"")
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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] Looking to create a dynamic commissions sheet based on agent and product
    By Tutsumi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-30-2019, 07:09 PM
  2. [SOLVED] Total of amount of tickets for agent and date
    By Jamesraywebber85 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-11-2018, 03:05 PM
  3. Find specific word and count in master sheet per agent name
    By ash3angel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2016, 08:31 AM
  4. Product sell with barcode reader using timestamp sorted per day
    By danfolt in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-12-2015, 04:13 PM
  5. Replies: 1
    Last Post: 09-28-2012, 08:52 AM
  6. [SOLVED] Find Product Details in Another Sheet based on Product ID and Copy some Fields From there
    By kevalkothari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2012, 10:43 AM
  7. [SOLVED] Need Function that will find ordered product, and display the product code in a 2nd workbk
    By rollerden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 08:52 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