PC Review


Reply
Thread Tools Rate Thread

how do I count the total number of characters in a excell cell?

 
 
ty
Guest
Posts: n/a
 
      11th Jul 2008
Here are 5000 or so genes for a bacterial genome listed in my Excell 2007.
There are two columns. col (1) lists the gene names and col(2) lists the
corresponding nucleotides sequence like ATTCGGGG.....

is there a simple way to count the number of nucleotides (characters) in
each cell?
 
Reply With Quote
 
 
 
 
PCLIVE
Guest
Posts: n/a
 
      11th Jul 2008


=LEN(A1)

This includes spaces and other non-visible characters.

Regards,
Paul

--

"ty" <(E-Mail Removed)> wrote in message
news:8D4DB519-A1F5-4881-A5F0-(E-Mail Removed)...
> Here are 5000 or so genes for a bacterial genome listed in my Excell 2007.
> There are two columns. col (1) lists the gene names and col(2) lists the
> corresponding nucleotides sequence like ATTCGGGG.....
>
> is there a simple way to count the number of nucleotides (characters) in
> each cell?



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      11th Jul 2008
=len(a1)
will tell you the length of the string in A1.

=(len(a1)-len(substitute(a1,b1,"")))/len(b1)
will tell you the number of times B1 appears in A1.

ty wrote:
>
> Here are 5000 or so genes for a bacterial genome listed in my Excell 2007.
> There are two columns. col (1) lists the gene names and col(2) lists the
> corresponding nucleotides sequence like ATTCGGGG.....
>
> is there a simple way to count the number of nucleotides (characters) in
> each cell?


--

Dave Peterson
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      11th Jul 2008
ps. If you want to make the count case-insensitive (ASDF and aSdF and asdf are
all the same):

=(len(a1)-len(substitute(upper(a1),upper(b1),"")))/len(b1)

ty wrote:
>
> Here are 5000 or so genes for a bacterial genome listed in my Excell 2007.
> There are two columns. col (1) lists the gene names and col(2) lists the
> corresponding nucleotides sequence like ATTCGGGG.....
>
> is there a simple way to count the number of nucleotides (characters) in
> each cell?


--

Dave Peterson
 
Reply With Quote
 
ryguy7272
Guest
Posts: n/a
 
      11th Jul 2008
Say the nucleotide designator is:
ataacgctttaggg

Use this to count the 'a' characters:
=LEN(A1)-LEN(SUBSTITUTE(A1,"a",""))

Use this to count the 'c' and 'g' characters:
=LEN(A1)*2-LEN(SUBSTITUTE(A1,"c",""))-LEN(SUBSTITUTE(A1,"g",""))

Finally, use this to count all 'a' characters in a range (say A1:A3):
=SUM(LEN(A1:A3)-LEN(SUBSTITUTE(A1:A3,"a","")))
This function needs to be entered with ctrl + shift + enter (not just enter)


Regards,
Ryan---
--
RyGuy


"Dave Peterson" wrote:

> ps. If you want to make the count case-insensitive (ASDF and aSdF and asdf are
> all the same):
>
> =(len(a1)-len(substitute(upper(a1),upper(b1),"")))/len(b1)
>
> ty wrote:
> >
> > Here are 5000 or so genes for a bacterial genome listed in my Excell 2007.
> > There are two columns. col (1) lists the gene names and col(2) lists the
> > corresponding nucleotides sequence like ATTCGGGG.....
> >
> > is there a simple way to count the number of nucleotides (characters) in
> > each cell?

>
> --
>
> Dave Peterson
>

 
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
Total Cell Characters Count unekme Microsoft Excel Misc 1 9th Mar 2009 01:17 PM
How can I count the number of characters on a cell? =?Utf-8?B?RWRkaWVEaWFsODAw?= Microsoft Excel Misc 11 22nd May 2007 04:29 PM
Count Number of Characters in a cell? AHJuncti Microsoft Excel Misc 2 16th Jun 2005 07:39 PM
How can I count the number of characters in a cell?? eluehmann Microsoft Excel Misc 2 12th Nov 2004 07:04 PM
total number of characters in a cell =?Utf-8?B?cGx1bXN0b25l?= Microsoft Excel Misc 2 3rd Jul 2004 07:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:44 AM.