+ Reply to Thread
Results 1 to 5 of 5

Auto Numbering formula

  1. #1
    Registered User
    Join Date
    09-03-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Auto Numbering formula

    Hi,

    I have a workbook named Invoice this workbook has multiple worksheets. I require a formula to do the following.

    In Sheet 1, Cell B2 =1
    In Sheet 2, Cell B2=2
    In Sheet 3, Cell B2=3
    In Sheet 4, Cell B2=4

    and so on.

    Right now I am manually adding the sheets and renaming them to say 001, 002, 003 and so on. The Invoice no in B2 is also equal to the Sheet name.

    Thanks In advance

    Mahesh Poojary
    Last edited by mpoojary; 09-06-2011 at 09:13 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto Numbering formula

    This formula in B2 of each sheet will give you the respective sheetname.

    =MID(CELL("filename",$A$1),FIND("]",CELL("filename",$A$1))+1,255)

    if you want the result to be an actual number, add +0 to the end of the formula to convert it.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-03-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Auto Numbering formula

    Quote Originally Posted by NBVC View Post
    This formula in B2 of each sheet will give you the respective sheetname.

    =MID(CELL("filename",$A$1),FIND("]",CELL("filename",$A$1))+1,255)

    if you want the result to be an actual number, add +0 to the end of the formula to convert it.
    Hi,

    I tried your formula but it doesnt seem to work. Please allow me to rephrase my question.

    I have a workbook named Invoice. This contains multiple worksheets. The worksheets are renamed as 001, 002, 003, 004 and so on.

    The cell B2 of every worksheet should be equal to the worksheet name

    Thanks Once again.

    Mahesh Poojary

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto Numbering formula

    If the workbook has been saved, then entering that formula in B2 of any sheet, should yield that sheet's name in B2.

  5. #5
    Registered User
    Join Date
    09-03-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Auto Numbering formula

    Its done. Great Thank you.

+ 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