+ Reply to Thread
Results 1 to 2 of 2

excel generate a sequence of whole number e.g. 1 2 3

  1. #1
    Registered User
    Join Date
    11-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    46

    excel generate a sequence of whole number e.g. 1 2 3

    Hi All

    Is there a formula which can generate a sequence of number on higher then the other such as 1,2,3,4,5,6 etc I know in MS Acess you use something like this:

    NewNum: "1234" & Max(Right([StudentID],4)+1)

    just need to know if excel can

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: excel generate a sequence of whole number e.g. 1 2 3

    yeah, pretty much exactly the same.

    A1 = studentID
    the existing student ID number

    A2 = "1234" & (right(A1, 4) +1)
    the new number, as a text string; wrap a converter if you want it to be a number

    So yes, it can be done, I guess?

    I mean, something like,

    A1 = student ID number
    A2 = A1 + 1

    that might be easier....

+ 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. Replies: 4
    Last Post: 01-04-2022, 03:58 AM
  2. How to auto generate sequence number
    By FelicityCSaycon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-13-2013, 08:38 AM
  3. Generate random sequence of numbers in excel
    By excelvb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-06-2011, 06:41 AM
  4. [SOLVED] generate sequence of number
    By cyzax7 via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2006, 04:00 AM
  5. Replies: 6
    Last Post: 08-04-2005, 10:05 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