check the below link
http://funwithexcel.blogspot.com/2009/04/macro-to-write-mathematical-palindromes.html
You might tweak or extend from there.


On 4/14/09, Luciano Paulino da Silva <lucianopaulinosi...@gmail.com> wrote:
>
>
> Correction:
> QGAGGAAGGAGQ
> Palindromes     Number          Repeats         Number
> QGAGGAAGGAGQ    1               GA              3
> GGAAGG          1               GG              2
> GAAG            1               AG              3
> GAG             2               GAG             2
> GG              2
> AA              1
>
> On 14 abr, 11:57, Luciano Paulino da Silva
> <lucianopaulinosi...@gmail.com> wrote:
> > Dear all,
> > I am looking to detect palindromes (sentence or number or other
> > sequence of units that can be read the same way in either direction)
> > and repeats (sequences of letters or numbers
> >
> > which are repeating atleast twice within a string) in some strings
> > containing between 20-5000 letters. Has somebody any idea how could I
> > perform that using an Excel macro? I
> >
> > would like that the string to be evaluated could be on cell "A1" and
> > that the detected palindromes and repeats could be listed bellow A2
> > and C2, respectively; and that the number
> >
> > of times that they appear in the sentence could be listed bellow cells
> > B2 and D2, respectively, as the following small example:
> >
> > QGAGGAAGGAGQ
> > Palindromes     Number          Repeats         Number
> > QGAGGAAGGAGQ    1               GA              3
> > GAG             2               AG              3
> > GG              2               GAG             2
> > AA              1               AA              1
> >                                 GG              2
> >
> > Somebody could help me?
> > Thanks in advance,
> > Luciano
>
> >
>


-- 
http://funwithexcel.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to