PC Review


Reply
Thread Tools Rate Thread

Detect double digit

 
 
=?Utf-8?B?U2hhbXN1bFo=?=
Guest
Posts: n/a
 
      5th Oct 2006
I'm looking for a formula that enable me to detect any no. of last 2 digit
that is the same for e.g 1233, abcd2345677, 90566 etc. Thanks for your help
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      5th Oct 2006
Are you looking for its position in the string? This gives the first
position of the first pair in the string

=MIN(IF(MID(A1,ROW(INDIRECT("1:"&LEN(A1)-1)),1)=MID(A1,ROW(INDIRECT("2:"&LEN
(A1))),1),ROW(INDIRECT("1:"&LEN(A1)-1))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"ShamsulZ" <(E-Mail Removed)> wrote in message
news:FEE9DE13-F1A2-4954-B0B7-(E-Mail Removed)...
> I'm looking for a formula that enable me to detect any no. of last 2 digit
> that is the same for e.g 1233, abcd2345677, 90566 etc. Thanks for your

help


 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      5th Oct 2006
Hi

Try
=IF(LEN(A1)<2,"",MID(A1,LEN(A1)-1,1)=RIGHT(A1))

--
Regards

Roger Govier


"ShamsulZ" <(E-Mail Removed)> wrote in message
news:FEE9DE13-F1A2-4954-B0B7-(E-Mail Removed)...
> I'm looking for a formula that enable me to detect any no. of last 2
> digit
> that is the same for e.g 1233, abcd2345677, 90566 etc. Thanks for your
> help



 
Reply With Quote
 
=?Utf-8?B?Q2FybG8=?=
Guest
Posts: n/a
 
      5th Oct 2006
Hi Shamsulz

it depends on how you want to mark your digits, but you can decide that for
yourself.

i would do something like this:

if right(YourDigit,1) = left(right(YourDigit,2),1) then
'Do Something
end if

and YourDigit would be a variable or even a cell.

if you don't like VBA you could do it like this as a cell-formula

if(right(A1,1) = left(right(A1,2),1);"Double Digit detected"; "")

hth

Cheers Carlo

"ShamsulZ" wrote:

> I'm looking for a formula that enable me to detect any no. of last 2 digit
> that is the same for e.g 1233, abcd2345677, 90566 etc. Thanks for your help

 
Reply With Quote
 
David F Cox
Guest
Posts: n/a
 
      5th Oct 2006
=MOD(RIGHT(A1,2), 11) = 0

"ShamsulZ" <(E-Mail Removed)> wrote in message
news:FEE9DE13-F1A2-4954-B0B7-(E-Mail Removed)...
> I'm looking for a formula that enable me to detect any no. of last 2 digit
> that is the same for e.g 1233, abcd2345677, 90566 etc. Thanks for your
> help
>



 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      5th Oct 2006
Very neat, David!!!

--
Regards

Roger Govier


"David F Cox" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> =MOD(RIGHT(A1,2), 11) = 0
>
> "ShamsulZ" <(E-Mail Removed)> wrote in message
> news:FEE9DE13-F1A2-4954-B0B7-(E-Mail Removed)...
>> I'm looking for a formula that enable me to detect any no. of last 2
>> digit
>> that is the same for e.g 1233, abcd2345677, 90566 etc. Thanks for
>> your help
>>

>
>



 
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
Sort Single/Double Digit Values Scott Microsoft Access Form Coding 2 3rd Feb 2009 02:02 AM
add a double digit number together adding double digit numbers Microsoft Excel Misc 12 7th Dec 2008 05:56 PM
Find a double digit Steved Microsoft Word Document Management 2 3rd Jun 2008 02:59 AM
News: Vista Double Digit Growth Andre Da Costa[ActiveWin] Windows Vista General Discussion 20 30th Oct 2007 08:00 PM
Return double digit month =?Utf-8?B?cXVhcnR6?= Microsoft Excel Programming 2 4th Apr 2005 04:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:41 AM.