+ Reply to Thread
Results 1 to 6 of 6

Find the latest inv. numbers based on the company name

  1. #1
    Registered User
    Join Date
    11-29-2016
    Location
    India
    MS-Off Ver
    2010 2007
    Posts
    59

    Find the latest inv. numbers based on the company name

    Hi,

    Could any one please help me in finding the latest bill number in a column based on the text string available in each bill number.

    Bill No.
    DELPL-2018-19-001
    DELPL-2018-19-002
    DELPL-2018-19-003
    ALPL-2018-19-001
    ALPL-2018-19-002
    DELPL-2018-19-004
    ALPL-2018-19-003
    DELPL-2018-19-005
    ALPL-2018-19-004
    IQLPL-2018-19-001

    In the above list of bill numbers there are text strings in begging. Those are the company names. Based on these text string latest next available bill number to be considered for next bill generation. For Ex. If we have to raise a bill in ALPL company, the latest next bill number available is 005 and for DELPL company 006 & for IQLPL company 002.

    Based the results in B1 next invoice number will be picked for next billing.

    Please help me on this.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Find the latest inv. numbers based on the company name

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    E
    1
    Bill No. SearchValue Next Number
    2
    DELPL-2018-19-001 ALPL 005
    3
    DELPL-2018-19-002
    4
    DELPL-2018-19-003
    5
    ALPL-2018-19-001
    6
    ALPL-2018-19-002
    7
    DELPL-2018-19-004
    8
    ALPL-2018-19-003
    9
    DELPL-2018-19-005
    10
    ALPL-2018-19-004
    11
    IQLPL-2018-19-001
    Sheet: Sheet1

    E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    11-29-2016
    Location
    India
    MS-Off Ver
    2010 2007
    Posts
    59

    Re: Find the latest inv. numbers based on the company name

    Hi Ankur,

    Thank you. I've one more requirements just came in. I need to have a separate bill number with different criteria.
    With company name there will be one more letter after that.... " J " / " O "

    For Ex:
    DELPL-J-2018-19-001
    DELPL-O-2018-19-001
    ALPL-J-2018-19-001
    ALPL-O-2018-19-001

    Could you please help me on this.

  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,493

    Re: Find the latest inv. numbers based on the company name

    A slight amendment:

    =TEXT(LOOKUP(2,1/(LEFT(A2:A11,FIND("-",A2:A11)+1)=D2),RIGHT(A2:A11,3))+1,"000")
    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 shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Find the latest inv. numbers based on the company name

    As Ali suggested do follow post#4

  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,493

    Re: Find the latest inv. numbers based on the company name

    Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Find the latest duplicated value based on year.
    By PaulM100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2018, 11:45 AM
  2. [SOLVED] Find the latest price based on the date
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2016, 01:03 PM
  3. VBA- Filter Pivot table based on latest and 2nd latest date in column
    By ziyan89 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-29-2015, 11:18 AM
  4. Macro to find and add ISIN for a company based on stock codes
    By itshewe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2014, 01:28 AM
  5. Replies: 1
    Last Post: 05-30-2014, 02:53 AM
  6. Replies: 9
    Last Post: 11-28-2013, 05:20 PM
  7. Powerpivot - Returning latest update based on latest date
    By Kehjz in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 08-22-2013, 02:45 PM

Tags for this Thread

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