+ Reply to Thread
Results 1 to 3 of 3

Earliest Invoice Date for a Specific Customer - Formula Help Needed

  1. #1
    Registered User
    Join Date
    12-12-2018
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    10

    Earliest Invoice Date for a Specific Customer - Formula Help Needed

    Hi,

    Hopefully you guys can help me out!

    I have a list of hundreds of invoices for many customers. I am looking for a formula to tell me 1) What is the date of the first invoice for each customer (the first time we ever billed them), and 2) What is the invoice number of the first invoice we ever billed them. The non highlighted sections in my attachment are the type of data I have (just many more lines), and the highlighted cells are what the formula I'm looking for should bring back. Please help me write this formula! Thank you!
    Attached Files Attached Files

  2. #2
    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,789

    Re: Earliest Invoice Date for a Specific Customer - Formula Help Needed

    In D2:

    =MIN(IF($A$2:$A$9=A2,$B$2:$B$9))

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    In E2:

    =LOOKUP(2,1/(($A$2:$A$9=A2)*($B$2:$B$9=B2)),$C$2:$C$9)

    ... entered normally.

    Now drag copy both down.
    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.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Earliest Invoice Date for a Specific Customer - Formula Help Needed

    "D2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    "E2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    By pressing CTRL+SHIFT+ENTER


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. Formula to find the earliest date in excel base on a given date and text
    By Rikii Sumat in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-27-2017, 02:35 AM
  2. Formula needed to determine if specific date is included between 2 cells
    By KATAGRGA in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-26-2016, 03:44 PM
  3. [SOLVED] Formula to subtract from 2 date cells and use the earliest date
    By DRail100 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2015, 04:13 PM
  4. Replies: 4
    Last Post: 11-04-2012, 12:43 PM
  5. [SOLVED] Excel 2007 : sum between two date with respect to specific customer
    By shaileshgavanang in forum Excel General
    Replies: 4
    Last Post: 06-15-2012, 02:45 PM
  6. Find earliest date based on specific criteria in other columns
    By cat2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2011, 11:50 AM
  7. Output Customer Name for a specific date range
    By mdobmeier in forum Excel General
    Replies: 5
    Last Post: 04-29-2011, 04:36 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