Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I need a formula that will add 1 for each record of a reference number.
exaplme: my first reference number is jn51000001. I need a formula to copy and paste down a good 20,000 cells. I can't use =sum(a1+1) because of the text in it. I desparately need help on a formula that will work. |
#2
![]() |
|||
|
|||
![]()
Format the cell with a custom format, such as jn51000000
Then when you type a 1 in the cell it should be jn51000001, a 2 should appear as jn51000002. And your formula need only be =A1+1 ******************* ~Anne Troy www.OfficeArticles.com "MellowMe" wrote in message ... I need a formula that will add 1 for each record of a reference number. exaplme: my first reference number is jn51000001. I need a formula to copy and paste down a good 20,000 cells. I can't use =sum(a1+1) because of the text in it. I desparately need help on a formula that will work. |
#3
![]() |
|||
|
|||
![]()
One way would be to go ahead and put 51000001 in A1 and 51000002 in A2 and
select both and drag down to A20000, then in B1 put ="jn"&A1 and copy down and then Copy PasteSpecial Values on column B to eliminate the formulas.......... Vaya con Dios, Chuck, CABGx3 "MellowMe" wrote in message ... I need a formula that will add 1 for each record of a reference number. exaplme: my first reference number is jn51000001. I need a formula to copy and paste down a good 20,000 cells. I can't use =sum(a1+1) because of the text in it. I desparately need help on a formula that will work. |
#4
![]() |
|||
|
|||
![]() MellowMe wrote: I need a formula that will add 1 for each record of a reference number. exaplme: my first reference number is jn51000001. I need a formula to copy and paste down a good 20,000 cells. I can't use =sum(a1+1) because of the text in it. I desparately need help on a formula that will work. This is my first piece of data: test0000001 (it is located in cell AF3) This is formula to do what you want, to the first piece of data: =CONCATENATE(MID(AF3,1,4),TEXT((MID(AF3,5,7)+1),"0 000000")) Copy it down the column after you adjust for positions of your data in initial string of jn51000001. Use the excel help to figure out how MID and TEXT and CONCATENATE functions work. |
#5
![]() |
|||
|
|||
![]() Hi, Formula in A2 and copied down, ="jn"&--SUBSTITUTE(A1,"jn","")+1 where A1 houses jn51000001 HTH -- Krishnakumar ------------------------------------------------------------------------ Krishnakumar's Profile: http://www.excelforum.com/member.php...o&userid=20138 View this thread: http://www.excelforum.com/showthread...hreadid=387666 |
#6
![]() |
|||
|
|||
![]()
Now, THAT is slick.............well done Krishnakumar!
Vaya con Dios, Chuck, CABGx3 "Krishnakumar" wrote in message news:Krishnakumar.1s90md_1121493922.2683@excelforu m-nospam.com... Hi, Formula in A2 and copied down, ="jn"&--SUBSTITUTE(A1,"jn","")+1 where A1 houses jn51000001 HTH -- Krishnakumar ------------------------------------------------------------------------ Krishnakumar's Profile: http://www.excelforum.com/member.php...o&userid=20138 View this thread: http://www.excelforum.com/showthread...hreadid=387666 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
Excel enters date as a text format | Excel Discussion (Misc queries) | |||
how do I enable "import text file" excel 2002? | Excel Discussion (Misc queries) | |||
How do a convert a "text only (no formulas)" Excel (.xls) file to. | Excel Discussion (Misc queries) | |||
How to make Excel run limited number of formulas on a given worksh | Excel Discussion (Misc queries) |