PC Review


Reply
Thread Tools Rate Thread

The dreaded "E"

 
 
mwilliams4@socal.rr.com
Guest
Posts: n/a
 
      29th Feb 2008
I have a formula that gets the right 5 characters of a string and I
want to visually know if it's a number or has text characters in the
string.

Everything works great, except when there is an "E".
Then it comes back as a number an E1234 number

My formula is as follows
=IF(ISNUMBER((RIGHT(B42,5))*1)=FALSE,"TEXT","")

Is there a way to ignore an "E" representing a number?

Any help would be greatly appreciated.
 
Reply With Quote
 
 
 
 
Reg
Guest
Posts: n/a
 
      29th Feb 2008
have a look at rick rothsteins code in 'extract numbers and digits thread
below' or do a search on

If Not Value Like "*[!0-9]*" Then
Reg

"(E-Mail Removed)" wrote:

> I have a formula that gets the right 5 characters of a string and I
> want to visually know if it's a number or has text characters in the
> string.
>
> Everything works great, except when there is an "E".
> Then it comes back as a number an E1234 number
>
> My formula is as follows
> =IF(ISNUMBER((RIGHT(B42,5))*1)=FALSE,"TEXT","")
>
> Is there a way to ignore an "E" representing a number?
>
> Any help would be greatly appreciated.
>

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      29th Feb 2008
Give this formula a try...

=IF(ISNUMBER((SUBSTITUTE(LOWER(RIGHT(A5,5)),"e","x"))*1),"","TEXT")

Rick


<(E-Mail Removed)> wrote in message
news:2feee408-ecd5-4135-8420-(E-Mail Removed)...
>I have a formula that gets the right 5 characters of a string and I
> want to visually know if it's a number or has text characters in the
> string.
>
> Everything works great, except when there is an "E".
> Then it comes back as a number an E1234 number
>
> My formula is as follows
> =IF(ISNUMBER((RIGHT(B42,5))*1)=FALSE,"TEXT","")
>
> Is there a way to ignore an "E" representing a number?
>
> Any help would be greatly appreciated.


 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      29th Feb 2008
Thanks for the plug, but I don't think that approach will help the OP. While
I recognize this group is named "programming", the OP's question shows
him/her attempting to use a worksheet formula to accomplish his/her goal; so
I'm thinking a worksheet formula is desired for the solution.

Rick


"Reg" <(E-Mail Removed)> wrote in message
news:AA4DBDE0-D1DD-466B-8160-(E-Mail Removed)...
> have a look at rick rothsteins code in 'extract numbers and digits thread
> below' or do a search on
>
> If Not Value Like "*[!0-9]*" Then
> Reg
>
> "(E-Mail Removed)" wrote:
>
>> I have a formula that gets the right 5 characters of a string and I
>> want to visually know if it's a number or has text characters in the
>> string.
>>
>> Everything works great, except when there is an "E".
>> Then it comes back as a number an E1234 number
>>
>> My formula is as follows
>> =IF(ISNUMBER((RIGHT(B42,5))*1)=FALSE,"TEXT","")
>>
>> Is there a way to ignore an "E" representing a number?
>>
>> Any help would be greatly appreciated.
>>


 
Reply With Quote
 
mwilliams4@socal.rr.com
Guest
Posts: n/a
 
      29th Feb 2008
That's great guys, I'm sure that formula will do it.
And yes, I was looking for a formula, not code.
I also just realized that I may have not posted to the right group,
but you came to the rescue.

THANKS!!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
in dreaded "34 minute remaining" windows installation.... tokey666 Windows XP Setup 0 19th May 2006 09:24 PM
Dreaded "multi-step operation" error... =?Utf-8?B?TWF1cnkgTWFya293aXR6?= Microsoft Access 5 4th Nov 2004 07:41 PM
Dreaded "Microsoft Jet database engine" error Richard Coutts Microsoft Access 1 14th Jul 2004 02:14 PM
Dreaded "boot disk failure" message Synonymous Windows XP Help 0 31st May 2004 07:48 AM
Address bar linking problem, takes me to a dreaded red "x" Amanda-Kay Windows XP Internet Explorer 1 23rd Mar 2004 02:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.