#### text form to numeric ?

```E.g A cell contain 1233- but the value is actually a numric value whereby
the "-" behind is a negative sign, wat function do I use to convert it to a
numeric form causing it to to become -1233 ?

```
 0
1/11/2004 4:03:16 AM
excel 39879 articles. 2 followers.

9 Replies
805 Views

Similar Articles

[PageSpeed] 30

```One way, assuming that the values are mixed (some with/without "-" sign)
and that the values are in colA, which is formatted as text;

IF(RIGHT(Ax,1)="-",LEFT(Ax,LEN(Ax)-1)*-1,VALUE(Ax))

--
Regards;
Rob
------------------------------------------------------------------------
"crapit" <littlecramp@yahoo.com> wrote in message
news:OSAgKf\$1DHA.2324@TK2MSFTNGP09.phx.gbl...
> E.g A cell contain 1233- but the value is actually a numric value
whereby
> the "-" behind is a negative sign, wat function do I use to convert it
to a
> numeric form causing it to to become -1233 ?
>
>

```
 0
NotLikely (282)
1/11/2004 4:41:57 AM
```Assuming tat the cell to check is the same cell where the formula reside,
how do I stop the formula from disappearing? After entering a value on the
cell where it contain formula, it disappear.
I tried to use conditional formatting but failed
"RWN" <NotLikely@mts.net> wrote in message
news:OfbV2y\$1DHA.540@tk2msftngp13.phx.gbl...
> One way, assuming that the values are mixed (some with/without "-" sign)
> and that the values are in colA, which is formatted as text;
>
> IF(RIGHT(Ax,1)="-",LEFT(Ax,LEN(Ax)-1)*-1,VALUE(Ax))
>
>
> --
> Regards;
> Rob
> ------------------------------------------------------------------------
> "crapit" <littlecramp@yahoo.com> wrote in message
> news:OSAgKf\$1DHA.2324@TK2MSFTNGP09.phx.gbl...
> > E.g A cell contain 1233- but the value is actually a numric value
> whereby
> > the "-" behind is a negative sign, wat function do I use to convert it
> to a
> > numeric form causing it to to become -1233 ?
> >
> >
>
>

```
 0
1/11/2004 5:29:27 AM
```You have to enter the formula in a separate column. e.g. your source
data is in column A and the formula is in column B. Then enter Rob's
formula in B1 (substituting the x with 1 and copy this cell for all
rows).

You cannot enter data and a formula in the same cell.
Frank

crapit wrote:
> Assuming tat the cell to check is the same cell where the formula
> reside, how do I stop the formula from disappearing? After entering a
> value on the cell where it contain formula, it disappear.
> I tried to use conditional formatting but failed
> "RWN" <NotLikely@mts.net> wrote in message
> news:OfbV2y\$1DHA.540@tk2msftngp13.phx.gbl...

```
 0
frank.kabel (11126)
1/11/2004 9:27:48 AM
```On Sun, 11 Jan 2004 12:03:16 +0800, "crapit" <littlecramp@yahoo.com> wrote:

>E.g A cell contain 1233- but the value is actually a numric value whereby
>the "-" behind is a negative sign, wat function do I use to convert it to a
>numeric form causing it to to become -1233 ?
>

If you have a later version of XL, you can use the Data/Text to Columns wizard.

--ron
```
 0
1/11/2004 2:09:35 PM
```I'd be interested to see how the text->column function would work in
this case, or any other simpler method for that matter. This is a
mainframe that have trailing negative signs.

--
Regards;
Rob
------------------------------------------------------------------------
"Ron Rosenfeld" <ronrosenfeld@direcway.com> wrote in message
news:98m200pogtcr2osctt7uitm5b2a3ktacmr@4ax.com...
> On Sun, 11 Jan 2004 12:03:16 +0800, "crapit" <littlecramp@yahoo.com>
wrote:
>
> >E.g A cell contain 1233- but the value is actually a numric value
whereby
> >the "-" behind is a negative sign, wat function do I use to convert
it to a
> >numeric form causing it to to become -1233 ?
> >
>
> If you have a later version of XL, you can use the Data/Text to
Columns wizard.
>
>
> --ron

```
 0
NotLikely (282)
1/11/2004 4:56:23 PM
```Select the column, do data>text to columns and click Finish
That's it. Trailing minuses become real negative numbers and regular
positive numbers stay the same

--

Regards,

Peo Sjoblom

"RWN" <NotLikely@mts.net> wrote in message
news:uzuJMNG2DHA.3196@TK2MSFTNGP11.phx.gbl...
> I'd be interested to see how the text->column function would work in
> this case, or any other simpler method for that matter. This is a
> situation I run into daily dealing with files downloaded from the
> mainframe that have trailing negative signs.
>
> --
> Regards;
> Rob
> ------------------------------------------------------------------------
> "Ron Rosenfeld" <ronrosenfeld@direcway.com> wrote in message
> news:98m200pogtcr2osctt7uitm5b2a3ktacmr@4ax.com...
> > On Sun, 11 Jan 2004 12:03:16 +0800, "crapit" <littlecramp@yahoo.com>
> wrote:
> >
> > >E.g A cell contain 1233- but the value is actually a numric value
> whereby
> > >the "-" behind is a negative sign, wat function do I use to convert
> it to a
> > >numeric form causing it to to become -1233 ?
> > >
> >
> > If you have a later version of XL, you can use the Data/Text to
> Columns wizard.
> >
> >
> > --ron
>
>

```
 0
terre081 (3244)
1/11/2004 6:22:44 PM
```Peo;
Can't get it to work so it means I'm missing something.
Is this supposed to work w/XL2k?

--
Regards;
Rob
------------------------------------------------------------------------
"Peo Sjoblom" <terre08@mvps.org> wrote in message
news:Okcvo\$G2DHA.536@tk2msftngp13.phx.gbl...
> Select the column, do data>text to columns and click Finish
> That's it. Trailing minuses become real negative numbers and regular
> positive numbers stay the same
>
> --
>
> Regards,
>
> Peo Sjoblom
>
> "RWN" <NotLikely@mts.net> wrote in message
> news:uzuJMNG2DHA.3196@TK2MSFTNGP11.phx.gbl...
> > I'd be interested to see how the text->column function would work in
> > this case, or any other simpler method for that matter. This is a
> > situation I run into daily dealing with files downloaded from the
> > mainframe that have trailing negative signs.
> >
> > --
> > Regards;
> > Rob
>
> ----------------------------------------------------------------------
--
> > "Ron Rosenfeld" <ronrosenfeld@direcway.com> wrote in message
> > news:98m200pogtcr2osctt7uitm5b2a3ktacmr@4ax.com...
> > > On Sun, 11 Jan 2004 12:03:16 +0800, "crapit"
<littlecramp@yahoo.com>
> > wrote:
> > >
> > > >E.g A cell contain 1233- but the value is actually a numric value
> > whereby
> > > >the "-" behind is a negative sign, wat function do I use to
convert
> > it to a
> > > >numeric form causing it to to become -1233 ?
> > > >
> > >
> > > If you have a later version of XL, you can use the Data/Text to
> > Columns wizard.
> > >
> > >
> > > --ron
> >
> >
>
>

```
 0
NotLikely (282)
1/11/2004 6:43:53 PM
```Nope, it was introduced with 2002.

--

Regards,

Peo Sjoblom

"RWN" <NotLikely@mts.net> wrote in message
news:udFmUJH2DHA.2360@TK2MSFTNGP10.phx.gbl...
> Peo;
> Can't get it to work so it means I'm missing something.
> Is this supposed to work w/XL2k?
>
> --
> Regards;
> Rob
> ------------------------------------------------------------------------
> "Peo Sjoblom" <terre08@mvps.org> wrote in message
> news:Okcvo\$G2DHA.536@tk2msftngp13.phx.gbl...
> > Select the column, do data>text to columns and click Finish
> > That's it. Trailing minuses become real negative numbers and regular
> > positive numbers stay the same
> >
> > --
> >
> > Regards,
> >
> > Peo Sjoblom
> >
> > "RWN" <NotLikely@mts.net> wrote in message
> > news:uzuJMNG2DHA.3196@TK2MSFTNGP11.phx.gbl...
> > > I'd be interested to see how the text->column function would work in
> > > this case, or any other simpler method for that matter. This is a
> > > situation I run into daily dealing with files downloaded from the
> > > mainframe that have trailing negative signs.
> > >
> > > --
> > > Regards;
> > > Rob
> >
> > ----------------------------------------------------------------------
> --
> > > "Ron Rosenfeld" <ronrosenfeld@direcway.com> wrote in message
> > > news:98m200pogtcr2osctt7uitm5b2a3ktacmr@4ax.com...
> > > > On Sun, 11 Jan 2004 12:03:16 +0800, "crapit"
> <littlecramp@yahoo.com>
> > > wrote:
> > > >
> > > > >E.g A cell contain 1233- but the value is actually a numric value
> > > whereby
> > > > >the "-" behind is a negative sign, wat function do I use to
> convert
> > > it to a
> > > > >numeric form causing it to to become -1233 ?
> > > > >
> > > >
> > > > If you have a later version of XL, you can use the Data/Text to
> > > Columns wizard.
> > > >
> > > >
> > > > --ron
> > >
> > >
> >
> >
>
>

```
 0
terre081 (3244)
1/11/2004 6:50:32 PM
```Alas, always behind the times!

Thanks.

--
Regards;
Rob
------------------------------------------------------------------------
"Peo Sjoblom" <terre08@mvps.org> wrote in message
news:%23MbDLPH2DHA.556@TK2MSFTNGP11.phx.gbl...
> Nope, it was introduced with 2002.
>
> --
>
> Regards,
>
> Peo Sjoblom
>
> "RWN" <NotLikely@mts.net> wrote in message
> news:udFmUJH2DHA.2360@TK2MSFTNGP10.phx.gbl...
> > Peo;
> > Can't get it to work so it means I'm missing something.
> > Is this supposed to work w/XL2k?
> >
> > --
> > Regards;
> > Rob
>
> ----------------------------------------------------------------------
--
> > "Peo Sjoblom" <terre08@mvps.org> wrote in message
> > news:Okcvo\$G2DHA.536@tk2msftngp13.phx.gbl...
> > > Select the column, do data>text to columns and click Finish
> > > That's it. Trailing minuses become real negative numbers and
regular
> > > positive numbers stay the same
> > >
> > > --
> > >
> > > Regards,
> > >
> > > Peo Sjoblom
> > >
> > > "RWN" <NotLikely@mts.net> wrote in message
> > > news:uzuJMNG2DHA.3196@TK2MSFTNGP11.phx.gbl...
> > > > I'd be interested to see how the text->column function would
work in
> > > > this case, or any other simpler method for that matter. This is
a
> > > > situation I run into daily dealing with files downloaded from
the
> > > > mainframe that have trailing negative signs.
> > > >
> > > > --
> > > > Regards;
> > > > Rob
> > >
> >
> ----------------------------------------------------------------------
> > --
> > > > "Ron Rosenfeld" <ronrosenfeld@direcway.com> wrote in message
> > > > news:98m200pogtcr2osctt7uitm5b2a3ktacmr@4ax.com...
> > > > > On Sun, 11 Jan 2004 12:03:16 +0800, "crapit"
> > <littlecramp@yahoo.com>
> > > > wrote:
> > > > >
> > > > > >E.g A cell contain 1233- but the value is actually a numric
value
> > > > whereby
> > > > > >the "-" behind is a negative sign, wat function do I use to
> > convert
> > > > it to a
> > > > > >numeric form causing it to to become -1233 ?
> > > > > >
> > > > >
> > > > > If you have a later version of XL, you can use the Data/Text
to
> > > > Columns wizard.
> > > > >
> > > > >
> > > > > --ron
> > > >
> > > >
> > >
> > >
> >
> >
>
>

```
 0
NotLikely (282)
1/11/2004 6:59:55 PM

Similar Artilces:

TEXT = text
I have some data in an Excel table which uses case sensitive codes. Does anyone know of a way to perform case sensitive VLookups. Example. A1 contains "TEXT", A2 contains "One". B1 contains "text", B2 contains "Two" If I enter "text" in cell A4 and the following VLookup in B4: =VLOOKUP(A4;A1:B2;2;FALSE) I get the answer "One", but I would like to see "Two". I have found a work around by converting a number of characters to their ASCII codes, but this is very messy. I know that the FIND function is case sensitive whe...

alignment controls on the form
I want to align controls and labels on the form in different place. The controls and labels are hand in hand. When I select controls and labels to move or alignment all comes together. Are there any way to align controls only or labels only? Your informaiton is greate appreciated, In the upper left hand corner of any selected control or label, there is a larger "handle" (black box for sizing or moving). If you click and drag that box, you will move the control or label without affecting the other one. If you want to completely separate them, select the label and "Cut&q...

Selecting text in a document
Hi, I have a macro which finds a certain piece of text in the document and then moves down a line and then selects all the text between that and the end of the document and the selected text is later sent out in an email. This has been working for some time but I have recently had some problems because the text is not being selected as before (extendmode on?) and I am sending out blank emails. The code fragment that I use to select the text is as follows Selection.HomeKey wdStory Selection.Find.Execute "Issued at" Selection.MoveDo...

What is the Limit of Text Boxes & Labels a User Form can have?
What is the Max File Size a User Form can be? I have Windows 7 with Office 2007. Does it have like a 64K limit? The file size as far as kb. My entire Program is 1,203 Kb. When I ran it I got a "compile Error out of memory", so I exported my User Form. Then I looked at the file size of just the User Form in a blank Workbook 34 KB = .frm 219 KB = frx My user Form is a Multi Page with 4 Pages on it. There are alot of text boxes and labels on the 4 sheets. Is there a limit to the number of text boxes & labels you can have in a user Form? I have 12 GB of ...

online form creation
What is the best recommended way for creating online forms on a web site. I would like the information to be retained in a db as well as having the option of email the completed online form to someone in our office. Running Server 2003 and iis6 http://www.webmonkey.com/webmonkey/backend/databases/tutorials/tutorial3.html "Mark" <rmwatrich@hotmail.com> wrote in message news:6E36CC0F-EC6B-44D3-83CC-584AF5FFE90D@microsoft.com... > What is the best recommended way for creating online forms on a web site. > I would like the information to be retained in a db as well...

Resizing cells to fit text returned by VLOOKUP
I have some VLOOKUPs which sometimes return 50 or 60 characters (they're in merged cells). I want the text to wrap, and the cell to enlarge to fit the text - Just like it does whan you type it in, but somehow, because it is being returned from a formula it just displays the bottom line of the wrapped text, and doesn't resize the row. Anyone know how I cam make it fit? I'm happy to use a VBA solution if there's no built in way to make it happen automatically. Thanks M Would you mind to limit your request to ONE newsgroup? Joerg "Michelle" <mh_londonNOJUN...

CScrollView and text height
I call DrawText to draw text on the CScrollView.When text has multi-line,how do I get the screen height to draw them? Thanks. ___________________________________ http://www.msale.net/bbs a Chinese-language message board for developers,including palm,ppc,symbian,and etc. http://www.zirong.net/blog/ Miken's private life If you are trying to calculate the height of a multiline string user DrawText with the DT_CALCRECT flag. It will use the width of the Rect that you pass it, and sets the bottom of the rect to what the bottom would be if you draw it. AliR. "Miken" <mikenwon...

Text Boxes on Charts not showing up
Has anyone experienced this? I've got a chart in a spreadsheet and I add text boxes to the graph section. They appear on the page yet when I click off the page, the text box disappears. If I go to print preview, the text boxes are there so why can't I see them on the screen? I've tried the bring forward command but that didn't work. This is also sporadic as some of my text boxes stay in place why others seem to disappear. Sue - If the chart is selected when you draw the text box, the text box becomes part of the chart. If not, the text box just floats along in the dr...

Hide and unhide a form
I have a form, frmStopDailyCounttest in which the user clicks the command button cmdAddstats, which, if there's a value being entered which duplicates something already in the table, then opens frmDuplicateValues. When frmDuplicateValues is opened, what can I do to hide the frmStopDailyCounttest, and when it's closed, how can I unhide it? "Nathan Wolfe" <NathanWolfe@discussions.microsoft.com> wrote in message news:AFF20847-76DC-48BA-9C0F-4EFEEAF1B133@microsoft.com... >I have a form, frmStopDailyCounttest in which the user clicks the command > button cmdAdd...

avoid losing text when text submission timed out?
Often I have to log in to some web site to enter a few paragraphs of text (e.g. web email submission, user forum, product reviews, etc). Sometimes it takes me a while to compose the text, and by the time I click submit, I get a response saying the session has timed out, and the text that took me a long time to compose is gone. Is there a way to retrieve this text? Clicking the back button doesn't work. Perhaps it is in a cache somewhere? The portion of the web page containing your text may or may not be in TIF, but here's what I do: Before I hit the 'Submit'...

Ranking Numbers with Text
I am trying to sort a list of serial numbers containing alpha an numeric text into ascending order so LOOKUP will work. ie: 5KJJAHAS63PL84681 input into col. E 5KJJAHAS43PL84685 5KJJAHASx3PL84683 5KJJAHAS83PL84686 5KJJAHAS63PL84689 5KJJAHAS43PL84684 5KJJAHAS23PL84682 5KJJAHAS03PL84688 5KJJAHASx3PL84610 5KJJAHAS83PL84690 5KJJAHAS83PL84691 Only the ninth and 13 thru 17 digits change. Worksheets are protected except for inputs. I need the sort to use the LOOKUP function. I tried =IF(E3>0,(RIGHT(E3,5)*1),999999) to RANK by the last 5 =RANK(D3,D\$3:D\$102,1)+COUNTIF(D\$3:D3,D3)-1, but then LOOKUP ...

Publish Form elements to web?
Is there a way to publish form objects to the web? Specifically, I have a slider (or scrollbar) in my Excel doc that works great _within_ Excel. However, when I publish it to the web, everything is there EXCEPT the slider. Thanks Scott ...

convert text case in same column or row?
How do I convert text case in the same colum or row. At the moment I use UPPER, but have to create a new column/row. You may find this to be handy Sub ChangeCase() 'Don Guillett Application.ScreenUpdating = False Dim r As Range nCase = UCase(InputBox("Enter U for UPPER" & Chr\$(13) & " L for lower" & Chr\$(13) & " Or " & Chr\$(13) & " P for Proper", "Select Case Desired")) Select Case nCase Case "L" For Each r In Selection.Cells If r.HasFormula Then r.Formula = LCase(r.Formul...

I TYPE IN A TEXT BOX AND IT COPIES THE TEXT TO OTHER TEXT BOXES
Does anyone know how to fix this? Shari wrote: > Does anyone know how to fix this? ================================ Are you editing text on the Master page? -- John Inzer MS Picture It! - Digital Image MVP Digital Image Highlights and FAQs http://support.microsoft.com/ph/695 Notice This is not tech support I am a volunteer Solutions that work for me may not work for you Proceed at your own risk Yes, I thinnk so. :-) I'm not on the background. It's an 8 pg brochure I'm creating and it didn't do it before I added page 8. ...

Invoice form make new page?
I have an Invoice form and I want to create a new empty invoice form on a new worksheet if the first one is full, keeping the first one as page 1 (worksheet1). I also want to transport the ordersum from page 1 to page 2 and place it in a chosen cell for calculating the total on page 2. The total to be displayed only on page 2. Maybe It can be done with a Macro and a button to choose new page if the first one is full. Solutions anyone? --- Message posted from http://www.ExcelForum.com/ You should have worksheet set up as a blank form to copy. You can the use a macro like this (you will ha...

Null in text box
Can anyone see what might be wrong withthis procedure? Private Sub Job_Number_BeforeUpdate(Cancel As Integer) If IsNull(Me.Job_Number) = True Then MsgBox "No Job Number Entered" Cancel = True End If End Sub -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200707/1 "Haggr1 via AccessMonster.com" <u35393@uwe> wrote in news:74fa8171f7137@uwe: > Can anyone see what might be wrong withthis procedure? > > Private Sub Job_Number_BeforeUpdate(Cancel As Integer) > > If IsNull(Me.Job_...

How to auto fill fields on subform from data on main form?
To all, I have a Main form with multiple tabs, the form is for employee information, one of the tabs a has a subform where I'll record the names of the employees children if he/she has any. The subform will work if I make the datasheet use a lookup to the employee table, but then I have to select the employee each time I want to add a record in the children subform. I changed the children table to not use the lookup to clerks on the employee name. I had the subform working, (by working I mean, I manualy had to select the employee from the lookup) but I had the subform select the emplo...

Re: Using Text Styles
Front page will not have a Next Edition. AFAIK it is dead. > Ed Bennett wrote: > > Ron Hagley wrote: > >> I have a document with Headings on one line followed by a linespace > >> then on a new line a subheading followed by (on the same line ) a > >> description > >> > >> I wish to use TEXT STYLES as this pattern repeats many times, I have > >> no problem seting up the styles for the headings, but when I do the > >> same for the SUBHEADINGS the text style is applied to the WHOLE line > >> including the description...

Rotate text?
Office(publisher) 2K. Is there anyway to rotate a specific word in a sentence? L. Not if it's part of the sentence rather than being a separate text box. -- JoAnn Paules MVP Microsoft [Publisher] "L." <ofallon12320@yahoo1.com> wrote in message news:%23TBzesS9FHA.2616@TK2MSFTNGP15.phx.gbl... > Office(publisher) 2K. > > Is there anyway to rotate a specific word in a sentence? > > L. > > Thanks for the info. L. "JoAnn Paules [MSFT MVP]" <jl_paules@hotmail.com> wrote in message news:U46dnd7PfZ5CTBHenZ2dnUVZ_sidnZ2d@suscom....

Plain text warning/ VS2005
Whenever I add a CRecordset derived class, I get an error telling me the password for the DB is sent in "plain text" and is not secure etc. I comment that line out, but how much of a security risk is this? What can I do with my Access database to avoid this? VC 6.0 never gave this error... tia b If you are on any kind of network that anyone can look at, you are wide open for attack. Example, a University network; potentially, ever student can be running a packet sniffer and see your password. Anything that passes acros the Internet outside your local intranet is also vuln...

OWA Form registration problem
I've been trying to make a shared form registration for all users in a private store, for use in Outlook Web Access for Exchange 2003. I can create a registration (for a named cmd on urn:content-classes:folder) in: /exadmin/admin/<domain>/mbx/SystemMailbox{GUID}/##SchemaURI##/Default which does seem to be detected by all users in the same way a private registration would be, but I can't get it to actually invoke a form template (a simple HTML file) in a shared location so that all users can access it. For example, assuming server binding and exwform.dll: * Referencing a ...

Text in Cell as Formula #2
Peo + Julie Many thanks for your answer with the last query. I Have a similar question, please advise: This method [INDIRECT()] does work with values form a different spreadsheet. I type the link (as text) from a different spreadsheet in a cell in the current spreadsheet and use this method to call a value in a cell. Would appreciate a detailed answer (if complicated) - I'm a novice user! Many thanks in advance. ...

Logical Test: Text Against Number 01-05-10
Can anyone provide insight into how Excel treats this type of test? For example, why does Excel return TRUE when we have ="a">2 but FALSE when ="a"<2 (or any other number for that matter). Thanks. That's the way it is treated. Any kind of text is larger than the largest number. Any worth? hit the YES below -- Max Singapore --- "rslaughter5" wrote: > Can anyone provide insight into how Excel treats this type of test? For > example, why does Excel return TRUE when we have ="a">2 but FALSE when ="a"<2 ...