Hi guys,
I am counting the occurrences of 'A', 'T', 'G' and 'C' in a DNA sequence. I have got around 300 large sequences. Each sequence takes multiple lines in excel (due to large sequence). For instance, sequence 1 takes 3 lines, sequence 2 takes 8 lines. So, I need a formula that can count occurrences of 'A', 'T', 'G' and 'C' specifically and separately for 300 sequences in one go and in a sequence by sequence manner (for instance, count occurrences of 'A' in sequence 1, then in sequence 2, and same rule applies for 'T', 'G', and 'C'). Each sequence is separated by a blank row. But the problem is there are some gaps (blank cells) in a sequence (not to be confused by an empty row after each sequence). I am attaching an image for your reference. Please find the attachment. Sorry guys, the image is bit untidy.
I am currently using this basic formula:
=countif(A5:XEZ18,"A") =countif(A5:XEZ18,"T") =countif(A5:XEZ18,"G") =countif(A5:XEZ18,"C")
Thanks guys!!
Cheers
plasma33
Bookmarks