+ Reply to Thread
Results 1 to 2 of 2

conditional counting!

  1. #1
    Registered User
    Join Date
    11-06-2007
    Posts
    15

    conditional counting!

    Hi all,

    I'm sure I'm being incredibly thick but I was wondering if someone could help me. I work in a lab and I've generated some data that I'm trying to sort. Basically every sample is tested for a variation at one particular spot of it's DNA. There are a few different outcomes but each sample can only have two variants (designated An, where n = a number) and some will will have two copies of the same variant. So you get what you can see in the attached image.

    Now, in my analysis I want to find out the following things about each variant:

    1) How often a particular variant is present in duplicate within samples (i.e. columns B and C are the same for the same sample)

    2) How often a particular variant is present as only one copy within samples (i.e. columns B and C are different for the same sample)

    (For those who are interested, number 1 is what geneticists call homozygosity, and 2 is heterozygosity)

    My dataset is much bigger than the attached picture shows which is why I need to do this using functions!

    Basically at the end of it all, I want to return data in this sort of way:



    Variant A01 Heterozygous: 40 Homozygous: 12
    Variant A02 Heterozygous: 17 Homozygous: 4

    And so on.

    I'll be so grateful for help!
    Attached Images Attached Images

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Not sure if the attached is what you are looking for....

    check it out and advise. Sample date is in cols A:C....results in E:G
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1