+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: number columns with letters

  1. #1
    Registered User
    Join Date
    02-09-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    78

    Question number columns with letters

    How can I number using letters as well

    For example

    Cell A2 = 1

    Cell A3 = +A1+1 to be 2

    Cell A4 +A2+1 to be 3 and so on

    But what I need is to have cell A1 number = A-1 or A 1 where the A is constant, and the 1 is two in the next cell and so on.
    Last edited by OceanBlue; 07-29-2011 at 02:03 PM.
    Oceans Blue

  2. #2
    Forum Guru 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Vienna, VA, USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    2,257

    Re: number columns with letters

    Here's one way: Put this in A2 then copy down:

    ="A-"&(ROW()-1)
    Making the world a better place one fret at a time
    ||||||

    If someone helped you, please click on the star icon at the bottom of their post

    If your problem is solved, please update the first post:
    EDIT, Go Advanced button, set Prefix to SOLVED

    [code]
    ' Enclose code in tags like this
    [/code]

    Don't attach a screenshot
    --just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.

  3. #3
    Registered User
    Join Date
    02-09-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: number columns with letters

    Thanks, but I did that and it is not working right

    Cell A3 has A-1
    Cell A4 has "A-"&(ROW()-1) , and the output is A-6
    Oceans Blue

  4. #4
    Registered User
    Join Date
    02-09-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: number columns with letters

    Forget it

    I got it

    it is reading from the ROW reference

    now I have

    Cell A4 has "A-"&(ROW()-5) , and the output is A-2

    Thanks
    Oceans Blue

  5. #5
    Registered User
    Join Date
    02-09-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: number columns with letters

    But now if I insert a ROW between a set of numbers, I have to work on the rest below the new inserted ROW

    Is there a way to Dynamically number the not blank cells in the Column ?
    Oceans Blue

  6. #6
    Forum Guru 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Vienna, VA, USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    2,257

    Re: number columns with letters

    Quote Originally Posted by OceanBlue View Post
    But now if I insert a ROW between a set of numbers, I have to work on the rest below the new inserted ROW

    Is there a way to Dynamically number the not blank cells in the Column ?
    Sorry, I can't figure out what you mean here. Can you attach your file, showing what you mean by "dynamically number the not blank cells"?
    Making the world a better place one fret at a time
    ||||||

    If someone helped you, please click on the star icon at the bottom of their post

    If your problem is solved, please update the first post:
    EDIT, Go Advanced button, set Prefix to SOLVED

    [code]
    ' Enclose code in tags like this
    [/code]

    Don't attach a screenshot
    --just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.

  7. #7
    Registered User
    Join Date
    02-09-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: number columns with letters

    Quote Originally Posted by 6StringJazzer View Post
    Sorry, I can't figure out what you mean here. Can you attach your file, showing what you mean by "dynamically number the not blank cells"?
    Agree my question is a bit ambiguous.

    Attached is a screen shot.

    Notice I circled Cell A20 & A21

    If I Delete anyone of them, I have to edit the code for the rest of the cells (going down)
    to compensate the deleted row. (even Insert will give me the same result.)

    That is what I meant by a Dynamic way of numbering in case I need to Delete or insert a ROW

    Hope this is more clear now.
    Attached Images Attached Images
    Oceans Blue

  8. #8
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,772

    Re: number columns with letters

    In A2 (first cell below the header row), =max(A$1:A1)+1 and format as P-0
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Registered User
    Join Date
    02-09-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: number columns with letters

    Quote Originally Posted by shg View Post
    In A2 (first cell below the header row), =max(A$1:A1)+1 and format as P-0

    Not too sure how it supposed to work with your formula !

    This is what I am using to number the row
    ="A-"&(ROW()-1)

    if I put your formula : =MAX(A$1:A1)+1
    to the first cell, it has no effect.

    Please advise.
    Oceans Blue

  10. #10
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,772

    Re: number columns with letters

    In A2, enter the formula =MAX(A$1:A1)+1 and copy down. What do you see?
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  11. #11
    Registered User
    Join Date
    02-09-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: number columns with letters

    Quote Originally Posted by shg View Post
    In A2, enter the formula =MAX(A$1:A1)+1 and copy down. What do you see?


    the number " 1 "
    Oceans Blue

  12. #12
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,772

    Re: number columns with letters

    That's in A2. What do you see when you copy the formula down several rows?

    What do you see when you delete one of the formulas in the middle?

    Please don't quote whole posts. Use the Reply button, not the Quote button.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  13. #13
    Registered User
    Join Date
    02-09-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: number columns with letters

    I don't see anything different, except like what I have explained.
    Oceans Blue

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    5,372

    Re: number columns with letters

    Step 1
    In A2, Format Cells> Number Tab > Custom P-0 (that's a zero not an "O") "OK"

    Step 2
    In A2, =MAX(A$1:A1)+1
    Drag or copy that down. See my attachment.
    Is that what you are looking for?
    Attached Files Attached Files
    ChemistB
    My 2¢

    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

  15. #15
    Registered User
    Join Date
    02-09-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: number columns with letters

    That is exactly what I am looking for . Thanks a million

    However,

    Cell format does not populate the custom P-0 format at my end !


    Attached is a DOC with screen shots.

    I am using MS Office 2007
    Attached Files Attached Files
    Oceans Blue

+ 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.2.0