+ Reply to Thread
Results 1 to 4 of 4

Auto generate serial number

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Question Auto generate serial number

    Silambu.xlsx

    Hi

    Our company is running all over the india. Daily dispatches is depends on the branches. I have to give a serial and dates to each and every braches.

    I want the serial numbers to be change according to the dates / Branch names. ( Its upto the requirements of the branches, such as on the date, there would be disptaches to different braches, (should not be

    for example on 25/01/05 I choose Banglore the SL.No would be 1. (which I will be given as a default number). Then on the same date if I choose Goa, I want the serial number to generate automatically to 2 and so on.

    Look forward to the answers please and Thanks.

    Regards

    Silambu

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Auto generate serial number

    I've looked at your data and your request and I'm having a hard time figuring out how you want the numbers generated.

    If you could manually create several serial numbers and explain how you came up with those numbers it would be very helpful.

  3. #3
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Auto generate serial number

    You appear to be doing some circle Indexing...meaning you are repeating steps to duplicate values to the side of that in which they are. The Match formula will index the data and find the value in the row/col (Generate) so that you do not need to do a lookup to get its location. All that aside, from what I can tell you are asking for a counter based on date...

    Example

    If on 1/26/2015 you choose the following sites

    AHMEDABAD
    AHMEDABAD-W/S(VASTRAPUR)
    BANGALORE
    BANGALORE-W/S

    You are wanting a "Serial number" which is really a count by order of selection. Always restarting with the day, so the list would be 1,2,3,4

    1 AHMEDABAD
    2 AHMEDABAD-W/S(VASTRAPUR)
    3 BANGALORE
    4 BANGALORE-W/S

    Is this the case?

    If so you simply need to base this off of the date countifs -

    =COUNTIFS($D$2:$D2,$D2)

    You will need to add more to this process if you plan on entering the same branch in on the same day in a new line. Otherwise this will do it.

    Now if this truly is the case I would say be careful of application as making something 1 today and then a different branch 1 tomorrow simply based on order of entry is a road to messy data. I will hold off on going too much further as I am getting into assumptions and I think if you clarify further that will help.
    -If you think you are done, Start over - ELeGault

  4. #4
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Exclamation Re: Auto generate serial number

    I have used searchable suggestion dropdown list in B2. As you can see, if I type branch name in B2 it automatically appears in C2. There shouldn't be a dispatch to all the 44 branches on the same day, its depends on the daily bases. It various and it can't be on ascending orders, such as it could be any from the list of branches.

    Now my question is,

    With having a key as a date (B3) and branch name (C2), I want the serial number (SL.NO - in A2) to generate automatically against branch name.

    E.g.., Firstly, In A2 I will give a unique serial number (5545 for Bangalore). Then If I Choose Ahmedabad, I want the serial number to generate automatically to (5546).

    Again, its depends on the daily bases branch, I will not know which Branch I will be choosing.

    pl help.
    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. Excel Drop Down list with Search Suggestions against Auto Generate Serial Number
    By silambarasan.J in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-22-2015, 04:27 AM
  2. code to generate serial number based on number of records
    By winmaxservices1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2015, 03:21 AM
  3. how to generate serial number on a textbox in userform
    By minionrush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 05:12 AM
  4. Auto Generate Serial No.
    By anwitha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2010, 02:24 AM
  5. How do I generate a sequential serial number every time I tab to a new line?
    By asbo604 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2009, 05:17 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