+ Reply to Thread
Results 1 to 8 of 8

accumulated presence/absence (richness) over 3 times

  1. #1
    Registered User
    Join Date
    10-01-2014
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    9

    accumulated presence/absence (richness) over 3 times

    Hi,

    I want to calculate the species richness for 40 sites (sum of presence absence per row). This would be easy with a simple countif-function (where only cells with a value >0 are summed), but I have this data for each site (row) 3 times (WET1, WET2, WET3). How can I calculate the total richness (combined for all three times)? It should be that if a species was already encountered in a previous time point, it is not added again in the total sum.
    In attach I added a species/site matrix, with 40 sites, but each sampled three times. Which formula can be used for this?

    many thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: accumulated presence/absence (richness) over 3 times

    Does this mean that for each species at each site, the answer will either be 0 or 1?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    10-01-2014
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    9

    Re: accumulated presence/absence (richness) over 3 times

    yes, indeed, the values now are abundances. But each cell > 0, is a 1, the others 0

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: accumulated presence/absence (richness) over 3 times

    Will this give the desired result ..

    =MAX(COUNTIFS($A$2:$A$121,"WET1",C$2:C$121,"<>0"),COUNTIFS($A$2:$A$121,"WET2",C$2:C$121,"<>0"),COUNTIFS($A$2:$A$121,"WET3",C$2:C$121,"<>0"))

    I added a helper column A for the site using =Right(B2,4))

  5. #5
    Registered User
    Join Date
    10-01-2014
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    9

    Re: accumulated presence/absence (richness) over 3 times

    It's in the right direction, but I need this for each row, now it is per column. Thanks in advance!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: accumulated presence/absence (richness) over 3 times

    Here's one way. There will be others/better ways...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-01-2014
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    9

    Re: accumulated presence/absence (richness) over 3 times

    Thank you! This is exactly what I meant!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: accumulated presence/absence (richness) over 3 times

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IF statement based on presence or absence of a specific character.
    By Motox in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2013, 01:42 AM
  2. Macro/VBA to Add Rows based on presence/absence of specific text content
    By cmaunder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2013, 01:15 PM
  3. [SOLVED] Macro/VBA to Change Order of Rows/Add Rows based on specific text content presence/absence
    By cmaunder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2013, 04:50 PM
  4. Decision based on presence/absence of picture
    By terry.joyce in forum Excel General
    Replies: 3
    Last Post: 08-01-2010, 06:26 PM
  5. Presence/absence chart
    By asrit7 in forum Excel General
    Replies: 2
    Last Post: 10-07-2007, 04:39 PM

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