+ Reply to Thread
Results 1 to 7 of 7

Auto Genarate Serial No.

  1. #1
    Registered User
    Join Date
    11-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Auto Genarate Serial No.

    Hi,
    How can i generate sr.no for my excel records as i go on entering them..?
    when i complete my entry in the row, the next row should come up with next sr.no.

    i have 4 columns(Sr/Name/Add/Phone),when i enter phone no and come to next row,it should take next serial no.

    i tried =IF(B1="","",1) =IF(B2="","",A1+1) but if i leave one row blank,it shows error....(i need that if i enter 6 entries and leave 1 blank,next entry should say 7 and not 8)

    regards

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Auto Genarate Serial No.

    In cell A2, enter:

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


    and copy down.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Auto Genarate Serial No.

    @OllyXLS

    Do i need to use this only formula? or along with some other..?

    i tried entering this formula in B2 and copied down... all the rows were displaying no."0"

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Auto Genarate Serial No.

    Quote Originally Posted by inwell View Post
    @OllyXLS

    Do i need to use this only formula? or along with some other..?

    i tried entering this formula in B2 and copied down... all the rows were displaying no."0"
    The formula was designed to go in Column A, as you suggested in your initial post, and I advised putting in cell A2, not B2.

    If you're still stuck, try attaching your workbook so I can advise you precisely what to put where.

  5. #5
    Registered User
    Join Date
    11-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Auto Genarate Serial No.

    sorry my mistake....
    it worked good.... but still one query

    1.as you can see,in image,selected cell always display the formula...is it correct?
    2. As you can see in image (near yahoo...) if something is entered by mistake..it remains the same... (can we do it a way so that no one could touch the formula and no one would enter anything there..by mistake too)

    regards
    Attached Images Attached Images

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Auto Genarate Serial No.

    1. Yes, the formula needs to be in column A for every row in which you may enter data. I'd suggest copying it down to the maximum number of rows you are likely to use on that worksheet.

    2. You could unlock the cells in columns where you may permit data entry, and lock the cells in column A, then protect the worksheet.

  7. #7
    Registered User
    Join Date
    11-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Auto Genarate Serial No.

    thank you sir,

    best wishes

+ 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. Auto Serial Number Using VBA
    By LoveCandle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2022, 09:24 PM
  2. Auto Serial No
    By omdkhaleel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2013, 06:27 AM
  3. Auto Generate Serial No.
    By anwitha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2010, 02:24 AM
  4. Auto serial the cell which has same value
    By sanketgroup in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2010, 12:33 PM
  5. Genarate a fixed date with an IF function?
    By Gilles Desjardins in forum Excel General
    Replies: 2
    Last Post: 02-05-2006, 11:30 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