Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MellowMe
 
Posts: n/a
Default excel formulas with text

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   Report Post  
Anne Troy
 
Posts: n/a
Default

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   Report Post  
CLR
 
Posts: n/a
Default

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   Report Post  
dead
 
Posts: n/a
Default



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   Report Post  
Krishnakumar
 
Posts: n/a
Default


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   Report Post  
CLR
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel enters date as a text format Kane Excel Discussion (Misc queries) 3 March 22nd 05 09:20 PM
how do I enable "import text file" excel 2002? jw_schmid Excel Discussion (Misc queries) 2 February 9th 05 10:39 PM
How do a convert a "text only (no formulas)" Excel (.xls) file to. Steve Excel Discussion (Misc queries) 1 February 2nd 05 05:55 PM
How to make Excel run limited number of formulas on a given worksh John Excel Discussion (Misc queries) 0 January 12th 05 04:29 PM


All times are GMT +1. The time now is 03:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"