#### adding to a number containing text

```Hi,
=(sum(A3+1) normally works great for me but now I am dealing with a number
which contains text ie 'PE10000', how do I write a formula to add 1 to this
to give 'PE10001'?

Many thanks.
Rick

```
 0
RDS9728 (39)
1/20/2005 8:54:34 PM
excel.misc 78881 articles. 5 followers.

4 Replies
606 Views

Similar Articles

[PageSpeed] 26

```If the text is always 3 letters to the left of the number

=IF(ISERR(--(A3)),LEFT(A3,2)&MID(A3,3,255)+1,A3+1)

if the text is always to the left of the number but can differ when it comes
to numbers of characters

=IF(ISERR(--(A3)),LEFT(A3,MIN(IF(ISNUMBER(FIND({1,2,3,4,5,6,7,8,9,0},A3)),FIND({1,2,3,4,5,6,7,8,9,0},A3)))-1)&MID(A3,MIN(IF(ISNUMBER(FIND({1,2,3,4,5,6,7,8,9,0},A3)),FIND({1,2,3,4,5,6,7,8,9,0},A3))),255)+1,A3+1)

entered with ctrl + shift & enter

Regards,

Peo Sjoblom

"R D S" wrote:

> Hi,
> =(sum(A3+1) normally works great for me but now I am dealing with a number
> which contains text ie 'PE10000', how do I write a formula to add 1 to this
> to give 'PE10001'?
>
> Many thanks.
> Rick
>
>
>
```
 0
PeoSjoblom (789)
1/20/2005 9:21:02 PM
```Correction

"If the text is always 3 letters to the left of the number"

should have been

If the text is always 2 letters to the left of the number

"Peo Sjoblom" wrote:

> If the text is always 3 letters to the left of the number
>
> =IF(ISERR(--(A3)),LEFT(A3,2)&MID(A3,3,255)+1,A3+1)
>
> if the text is always to the left of the number but can differ when it comes
> to numbers of characters
>
>
> =IF(ISERR(--(A3)),LEFT(A3,MIN(IF(ISNUMBER(FIND({1,2,3,4,5,6,7,8,9,0},A3)),FIND({1,2,3,4,5,6,7,8,9,0},A3)))-1)&MID(A3,MIN(IF(ISNUMBER(FIND({1,2,3,4,5,6,7,8,9,0},A3)),FIND({1,2,3,4,5,6,7,8,9,0},A3))),255)+1,A3+1)
>
> entered with ctrl + shift & enter
>
>
> Regards,
>
> Peo Sjoblom
>
>
>
> "R D S" wrote:
>
> > Hi,
> > =(sum(A3+1) normally works great for me but now I am dealing with a number
> > which contains text ie 'PE10000', how do I write a formula to add 1 to this
> > to give 'PE10001'?
> >
> > Many thanks.
> > Rick
> >
> >
> >
```
 0
PeoSjoblom (789)
1/20/2005 9:25:09 PM
```Select Cells to be effected:
At the Menu, select Format, Custom, in the box type in:
"PE1"000#    and OK out.will work up to PE19999.
HTH

"R D S" <rds@members.v21.co.uk> wrote in message
news:35ak4eF4k8ifaU1@individual.net...
> Hi,
> =(sum(A3+1) normally works great for me but now I am dealing with a number
> which contains text ie 'PE10000', how do I write a formula to add 1 to
this
> to give 'PE10001'?
>
> Many thanks.
> Rick
>
>

```
 0
jmay (696)
1/21/2005 2:03:17 AM
```One way:
Assumes PE10000 in A3

In A4 enter: =IF(A3<>"","PE"&ROW()+9997,"")
Fill Down

R D S wrote:
> Hi,
> =(sum(A3+1) normally works great for me but now I am dealing with a
number
> which contains text ie 'PE10000', how do I write a formula to add 1
to this
> to give 'PE10001'?
>
> Many thanks.
> Rick

```
 0
tworsrus (23)
1/21/2005 3:55:56 AM

Similar Artilces:

Seperating text/Numbers
Fantastic , thanks, that has done the tric -- scottymellot ----------------------------------------------------------------------- scottymelloty's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=380 View this thread: http://www.excelforum.com/showthread.php?threadid=27112 ...

Adding Blank Rows after the last Detail of the Report
Hi All, I've used this code from Dwayne: Private Sub Report_Page() Dim intNumLines As Integer Dim intLineNumber As Integer Dim intTopMargin As Integer Dim ctl As Control Dim intLineHeight As Integer intNumLines = 12 intTopMargin = Me.Section(3).Height intLineHeight = Me.Section(0).Height For Each ctl In Me.Section(0).Controls For intLineNumber = 0 To intNumLines - 1 Me.Line (ctl.Left, intTopMargin + _ (intLineNumber * intLineHeight)) - _ Step(ctl.Width, intLineHeight), , B Next Next End Sub My report needs to print blank rows (at least...

Hey everybody I have a batch file which needs to be run from an excel sheet with a parameter, like this: c:\1.bat myParameter But when i try to run the Hyperlink, the Excel shows an error message saying it can't open the specified file (probably because the is a space between the file and the parameter) is there any known way to run the link from the excel? On Mar 2, 12:45=A0pm, Pasha <pavel_v...@mailto.mod.gov.il> wrote: > Hey everybody > I have a batch file which needs to be run from an excel sheet with a > parameter, like this: > c:\1.bat myParameter > But when i ...

outlook vcard, ad integration user properties
my boss is trying to get hix fax# in his vcard. he is using his address from the global address list I have modified his profile in active directory users and computers: I go into AD users and computers, double click on his user, go to the telephones tab, and enter his fax #. but when I did this his fax # is still not being pulled up in his outlook vcard. Does anyone know where outlook is trying to get this field from / how i can get this field into his vcard? thx ...

how do i add a number to a range of cells? I need to add 11.27 to a number of different cells each with a different number in them Put 11.27 in an empty cell, format it the same way as the numbers you want to add to, copy it, then select the numbers you want to add to and do edit>paste special and select add. -- Regards, Peo Sjoblom "Helpme" <Helpme@discussions.microsoft.com> wrote in message news:6D51344A-78E6-4377-B292-FC6C16FF6BA2@microsoft.com... > how do i add a number to a range of cells? I need to add 11.27 to a > number > of different cells e...

I am totally new to CRM, so I hope this is really easy question: This concerns permissions.. I have a "sales" group, and with one of those people i need to be able to let them add new records on behalf of other "sales" people. Is there like a standard permission setting for it? (obviously every "sales" person can add new records if they select them selfs as the owner) thanks, Michal. Hi, By default the person who creates the record will be the owner. After record creation the person could reassign the record (manually) to another user. If all rec...

Using Concatenate function to generate text in Text Box
I would like to have a text box on my chart, whose text is generated by concatenating the values from two different cells (B4 and B6) on a specific worksheet in my Excel file. I was able to use a reference to cell B4 to generate the text for my text box using the following formula: ='SSTyp-AllD'!\$H\$4 However, when I try to enter either of the following formulas for the text box text: =concatenate('SSTyp-AllD'!\$H\$4, 'SSTyp-AllD'!\$H\$6) ='SSTyp-AllD'!\$H\$4 & 'SSTyp-AllD'!\$H\$6 I get the error message "The text you entered is not a valid refe...

....in Outlook the following errors comes up: "Out of memory or system resources, please close some programs and try again" Quotas are fine. I have deinstalled/reinstalled Office, cleaned 'temp' areas, and many other tidbits. Any other ideas? Thanks. This might help as i had this problem with Outlook 98. Is the file you are trying to copy to attach nested in sub folders? if so try and copy the attachment to a root drive like c:\ Ignore previous email. wrong spellin if the attachment is nested in sub folders(this means you have to open different folders to get to ...

Count cells that Contain text
Is there a way in excel to count the number of cells in a colum tha contain a specific piece of text, e.g. "ACT" I know that I can use the countif or sumproduct functions to coun cells which *only* contain "ACT" but I need to count the number o cells in a column which countain ACT but may also contain other text a well. You can manually do it using autofilters but I need to count it using formula. Any help would be greatly appreciated. Ta And -- Message posted from http://www.ExcelForum.com =COUNTIF(Range,"*ACT*") -- Regards, Peo Sjoblom (No private...

search telephone numbers outlook 2007
Please help I cant seem to search for telephone numbers once they have been altered in a hyperlink ie when you type tel:0111122223 followed by either a space or return in an appointment. even using the advanced search criteria? can telephone number be searched? you could search for tel No's in earlier versions of outlook what am I doing wrong. Thank you KC ...

Hello there, The column headings in my spreadsheet are numbers not letters. What have I done? Thank you in advance for your help. Judith Hi goto 'Tools - Options - General' and uncheck 'R1C1 Reference Style' -- Regards Frank Kabel Frankfurt, Germany "JudithJubilee" <anonymous@discussions.microsoft.com> schrieb im Newsbeitrag news:097301c4d871\$66a88240\$a401280a@phx.gbl... > Hello there, > The column headings in my spreadsheet are numbers not > letters. What have I done? > > Thank you in advance for your help. > Judith ...

Picture Disappears When Added To Contact In Outlook 2003
Can someone help please. When I try to attach a picture to a contact in outlook 2003 immediately I double click the picture to be attached it disappears out of the outlook contact along with the placement holder in the form. Only when I right click the mouse and go remove picture do I get the placement holder back. I have looked at all the help menus but they offer no clues. Thanks TS ...

NUMBERS
HOW DO I PUT A ZERO IN FRONT OF MY NUMBERS EVERY TIME I GO TO NEXT CELL THE ZERO DISAPERS AND A COMMA APEARS I DONT WANT THIS?? HEL THANKS Hi first: please turn of your CAPS-Lock. It's considered as shouting in newsgroups Not quite sure about your issue but ry 'Tools - options - Edit' and uncheck 'fixed Decimals' -- Regards Frank Kabel Frankfurt, Germany LILA wrote: > HOW DO I PUT A ZERO IN FRONT OF MY NUMBERS EVERY TIME I GO TO NEXT > CELL THE ZERO DISAPERS AND A COMMA APEARS I DONT WANT THIS??? > > HELP > > THANKS Hi Lila! What numbers are you...

Custom Number Format #4
hi there, I�ve got a list of equipments that are tagged with the company� inventory number. Each item has its own tag which�s composed by eigh characters and the first is separated by an "-" , like this example *1-0012345*. Unfortunately the list is generated by an old system that can hold onl 12 character tags and doesn�t support any other symbols. Therefore, it puts a couple of ZEROS to replace the " - " symbol, an another couple of ZEROS at the end to sum up 12 characters. In the end the tags look like: *100001234500*. How can I format the tag column to display the o...

Specific Font that be contained within Office 2004 do not appear to Font Box on Mac OS X 10.3(panther). #2
There are "Gulim.ttf" and "Batang.ttf" Within Font Folder in Office 2004 Folder (Application folder or Office 2004 CD) These fonts are Window True type Font and Hangul font (using Korean) I have known the font automatically be installed in Font Box when Office 2004 setup. After I had selected these fonts beside All Font in collection window of font box then used disable button, These fonts disappeared in font Box. Perhaps it is rightful!. However When I added these fonts repeatedly, Only The "Batang.ttf" font appeared on Font Box window. unfortunately The &...

Make Outlook 2003 default to and use Large Text size in incoming HTML messages.
How can I make Make Outlook 2003 default to and use Large Text size in incoming HTML messages. -- "J. J." JDJ <jj@invalid.invalid> wrote: > How can I make Make Outlook 2003 default to and use Large Text size in > incoming HTML messages. I would think that the sender controls the text size for incoming HTML messages. -- Brian Tillman On the View Drop Down of an open message window there is a Text Size menu bar which when you mouse on it gives you 5 choices. I just want it to default to largest so I don't have to go through that with each new message I read. ...

Adding ActiveX to dialog with wrapper
When I add an ActiveX object to a dialog using the dialog editor - right click - insert activeX object, the help on the resulting activex selection tool states that a wrapper will not be added by using this method. If you need a wrapper, it suggests using the class view. This is using Visual Studio 2005. I'm having some problems with this on an existing project. To make sure I understand the process, I created a new MFC project, added a dialog, created a class for that dialog and added a Flexgrid object using the right click method in the dialog. I then added a variable for the flexgrid...

Sort by: Site ID/Item Number/Bin for Stock Count Entry Screen
Would like an additional sort selection in the Stock Count Entry Screen. Sort by: Site ID/Item Number/Bin ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/Businesssolutions/Community/NewsGroups/dgbrowser/en-us/default.mspx?mid=7e69d84a-032e-4f61...

sorting numbers in a column
Problem: The numbers I am sorting are composed of various numbers of integers, some having four digits, others five or six, and so on. I would like to have them sort by number regardless of number of digits. Will Excel let me do this? example: presently it looks like this: 3004 12001656 530393505 2200498378 and I really want it to sort like this: 12001656 2200498378 3004 530393505 Can this be done? -- kailuamike ------------------------------------------------------------------------ kailuamike's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29558 View...

I work on a schedule where I record ticket count and ticket sales for each show, listed chronologically. Column A = week ending date Column B = # Tickets sold for April 5 show Column C = Ticket Revenue for April 5 show Column D = # Tickets sold for April 9 show Column E = Ticket Revenue for April 9 show Column F = # Tickets sold for April 12 show Column G = Ticket Revenue for April 12 show Column H = Total # Tickets sold for all shows Column I = Total Ticket Revenue for all shows In the Totals columns, the Total Tickets formula is "+B4+D4+F4", and the Total Revenue f...

Adding fields from a different query
I have a form built based on a main query. How do I add more fields on that form that come from a different query? Anne A couple possibilities... Change your first query to include the extra fields. Use your second query to "feed" a form, then embed that form as a subform on your main form. Good luck! Regards Jeff Boyce Microsoft Access MVP -- Disclaimer: This author may have received products and services mentioned in this post. Mention and/or description of a product or service herein does not constitute endorsement thereof. Any code or pseudoco...

Adding more than three Conditions to 'Conditional Formatting'
Can i add more than three conditions to the conditional formatting presets using code? Regards [Riz] -- Rizitsu ------------------------------------------------------------------------ Rizitsu's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=15840 View this thread: http://www.excelforum.com/showthread.php?threadid=320382 Riz, as you have found out, only 3 conditions with conditional formatting. But yes you can use some code to get more than 3, try this it will change the cell color in column A when you put in one ,two, three, or four, right click on the she...

Change default font for text boxes in Publisher
Is there any way to change the default font for text boxes in Microsoft Publisher fo all publications? Setting Text Defaults using Normal.pub by Brian Kvalheim http://ed.mvps.org/Static.aspx?=Publisher/normal.pub -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com http://officebeta.iponet.net/en-us/publisher/FX100649111033.aspx "JennyN" <JennyN@discussions.microsoft.com> wrote in message news:927C7AFC-F92D-419F-B49E-DA5B444956E1@microsoft.com... > Is there any way to change the default font for text boxes in Microsoft...

Delimiter for adding Appointment in Entourage
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Power PC Email Client: Exchange What's the delimiter that Entourage uses if I want to add an appointment and the subject needs to be parsed by the Exchange server? <br><br>In Outlook, the hash/pound key (#) is used as delimiter. How about in Entourage 2008? <br><br>Basically, if I add an entry in a group calendar Out-Of-Office with the subject: #User1# On-Leave <br><br>in Outlook, this entry appears in the group calendar Out-Of-Office and also in User1's personal calendar. <...

Limit number of Duplicates
I have a registry for a competition...each team can only register four groups for a particular event, and three for another, and five for a third event. All events are seperate tables, related by Team Name. I have set the team name field to allow for duplicates, but am curious if I can limit the number of duplicates to the allowed number of entries. Can I set some sort of rule to allow for duplicates, not to exceed 4 (or any given number)? Should this rule or validation be set at the table level, or in the form? Thanks. On Jan 20, 6:44=A0pm, DeputySmith...@gmail.com wrote: > I have a ...