+ Reply to Thread
Results 1 to 3 of 3

Find the Minimum Date for rows with same customer Id

  1. #1
    Registered User
    Join Date
    07-24-2009
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    Find the Minimum Date for rows with same customer Id

    Hi,

    I have a column of CustomerIds and a column of ClickDates. The CustomerIds may appear more than once. The ClickDate for a customerId may be the same date or it may be different. What I need to do is create another column which contains ONLY the earliest ClickDate for the associated CustomerId.

    The actual file has over 3,000 rows.

    CustomerId Click_Date EarliestClickDate
    7321391 10/24/2008
    7321391 10/1/2008
    7321402 11/3/2008
    7321402 10/3/2008
    7321402 11/3/2008
    7321402 9/27/2008
    7321506 12/18/2008
    7321506 1/27/2009

    The successful formula will yield this:

    CustomerId Click_Date EarliestClickDate
    7321391 10/24/2008 10/1/2008
    7321391 10/1/2008 10/1/2008
    7321402 11/3/2008 9/27/2008
    7321402 10/3/2008 9/27/2008
    7321402 11/3/2008 9/27/2008
    7321402 9/27/2008 9/27/2008
    7321506 12/18/2008 12/18/2008
    7321506 1/27/2009 12/18/2008

    Thanks,

    Jason

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Find the Minimum Date for rows with same customer Id

    Hi,

    This array formula will do it for you I think

    Assuming your current data is A1:B8, this in C1 and copied down

    =MIN(IF($A$1:$A$8=A1,$B$1:$B$8,""))

    Confirm with CTRL, SHIFT and ENTER,
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    07-24-2009
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Find the Minimum Date for rows with same customer Id

    Quote Originally Posted by sweep View Post
    Hi,

    This array formula will do it for you I think

    Assuming your current data is A1:B8, this in C1 and copied down

    =MIN(IF($A$1:$A$8=A1,$B$1:$B$8,""))

    Confirm with CTRL, SHIFT and ENTER,
    That did it! Thank you!

    Jason

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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