+ Reply to Thread
Results 1 to 4 of 4

Auto Numbering a Column

  1. #1
    Registered User
    Join Date
    01-14-2007
    Posts
    7

    Auto Numbering a Column

    Hi Everyone,

    I am trying to have an auto numbering system. I got this part down, when I enter Green Lantern #1 then I grab the corner and drag down it numbers them for me and creates Green Lantern #2, Green Lantern #3, Green Lantern #4, etc.

    My problem is I want to be able to do this for two other columns but it's not working. Example I have a column where I enter "images/gl20001.jpg" then I try the grab and drag method. But it only copies that text and replicates it. Now, if I remove the .jpg it works and numbers them sequentilly. But for my database I need the .jpg there.

    Second column I am having the same issue is one where I want to enter "2000-01-01". It works when I do the drag and drop BUT it does it in this format "2000-01-01," "2000-01-02," "2000-01-03," etc. I need it to change the month so it would do it this way "2000-01-01," "2000-02-01." 2000-03-01." etc.

    Can anyone please help me find the easiest way in doing this so I no longer have to hand type in the numerical values one by one. Thanks so much!

    Shannon

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    How about some helper columns.

    For Pic try

    ="images/gl"&2000&ROW(B1)&".jpg"

    For 2nd Column try

    =LEFT(A1,5)&TEXT(ROW(),"dd")&RIGHT(A1,3)

    Two different ways. Play with every one best fits your needs

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    01-14-2007
    Posts
    7
    Wow work's great! Thank you so much for your help!

    Shannon

  4. #4
    Registered User
    Join Date
    11-15-2006
    Posts
    21

    Cool Drag Accross

    Try Maybe A$1
    When You Put A ($) In Front Of The Column Number It Keeps The Number

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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