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
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.
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
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
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
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.
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.
Oceans Blue
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
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
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
I don't see anything different, except like what I have explained.
Oceans Blue
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?
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)
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
Oceans Blue
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks