+ Reply to Thread
Results 1 to 4 of 4

Formula: Start new number where last number stops in a range

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Formula: Start new number where last number stops in a range

    Would like a formula to start a new number where the last number ends in a range. The number that will change from time to time is Ticket Serial Number. The ticket number is entered in cell A2 and B2 and concatenated in cell E2 (for example, 6723 - 238-248).

    Ticket #: 6723 - (238-242)

    I. when you entered a text value in A5, the ticket number is entered in B5.
    For example,
    A5: Baseball, B5: 6723-238
    A6: Baseball, B6: 6723-239
    A7: Baseball, B7: 6723-240
    A8: Baseball, B8: 6723-241
    A9: Baseball, B9: 6723-242

    II. With the ticket range exhausted, a new ticket number is entered in A2 and B2. Goal is to have the new ticket number start below A9 (that is A10)
    A2: 4567 - (501-505)

    A10: Baseball, B10: 4567-501
    A11: Baseball, B11: 4567-502
    A12: Baseball, B12: 4567-503
    A13: Baseball, B13: 4567-504
    A14: Baseball, B14: 4567-505

    Sample file attached.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Formula: Start new number where last number stops in a range

    I dont think you have shown any idea how spreadsheet could recognize the event: "ticket range exhausted" neither how shall be new first part and new second part starting number retrieved.

    So as there is not enough data for "fully automatic" approach, then may be "semiautomatic" approach, will do.

    The A2:B2 values are just reminders for the person using the sheet

    And you can use for instance such formula in B6
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy it down

    Once the range is exhausted write new ticket number manually (remember to have the formula copied down before) - for instance in your B9 write 2567-756 and B10 etc will follow this new pattern
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Formula: Start new number where last number stops in a range

    Kaper: I tried the formula you proposed and it did not work. If are you able to setup a simple approach for the solution I am looking for, I will take it. I am open to a solution that works.

    Thanks

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Formula: Start new number where last number stops in a range

    Sorry to hear so, but ... it works. See attached file.
    The formula is in column B
    as I wrote - you gave no clue why
    2387-115 shall be followed by 2567-756
    From the data in the sheet it could be only noticed that there sholud be some change (values in row 2)

    So it works as I tried to describe: as new events are written into column A there comes such moment when the range previous range is exhausted, Operator writes manually first number RRR-XXX in Bn cell
    and when new name is entered in An+1 cell the cell Bn+1 shaows new ticket number RRR-XXX+1

    Try writing Ice-yachting in A17, 4578-327 will appear in B17. Then write write Wrestling in A18 and 4578-328 will appear.
    If we assume that it is already after current range, just write in B18 first ticket from new range, like 1234-432*
    Then when you write in A19 Short-track in B19 will appear 1234-433.

    That's it


    * If I were operator I would check the whole pile of new tickets and write in row 2 what ticket numbers are available in current range.
    Attached Files Attached Files

+ 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] Divvy up a start and end number between a range of cells.
    By 2k05gt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2014, 10:15 AM
  2. [SOLVED] SUMPRODUCT Critera - If range values start with number
    By daffodil11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-04-2014, 01:03 PM
  3. Replies: 1
    Last Post: 07-18-2013, 10:11 AM
  4. [SOLVED] Formula stops working when number is replaced with reference to cell containing same #
    By sskgintl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2013, 12:44 PM
  5. Replies: 1
    Last Post: 01-17-2013, 10:44 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