+ Reply to Thread
Results 1 to 3 of 3

Filter to get a list of all contained values

  1. #1
    Registered User
    Join Date
    01-17-2019
    Location
    Germany
    MS-Off Ver
    varying
    Posts
    19

    Question Filter to get a list of all contained values

    Hello,
    i need to evaluate a paleo diversity database in RStudio but to be able to do the i need to "clean up" the database first. I do not have much excel experience yet so please excuse my probably mundane questions/requests.

    I need to filter a column to get a list of all contained values and how often they occur.
    The lithology in which those fossils were found is given for most of the fossils. To evaluate i need to get a list that contains all entered values for a certain column (e.g. 5000*carbonate, 2500*shale etc.)
    This is about the N and O column of provided excel file


    Please help me solve this by giving step by step instructions since all ive done so far using excel was plotting graphs and doing some simple automated calculations.


    Thanks in advance
    afridelle
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Filter to get a list of all contained values

    Select columns N and O, starting with the headers in row 7 down through the last of your data.

    The choose Insert / Pivot Table and click OK. Then drag lithology1 to the row area, and again to the data area. You will get a list of all the unique values and their counts. You can do the same for lithology2 in the same table or a separate table. If you do it in the same table, you will get counts for the unique combinations of lithology1 and lithology2.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Filter to get a list of all contained values

    Hi

    Or try this approach

    Use a new sheet Tabelle2
    Copy your column N to Tabelle2!A2 and to Tabelle2!B2
    Select the data Tabelle2!B$2:B$50000 and in menu data use remove duplicates
    In Tabelle2!C2 use the following formula to count the matchs
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Use in R8 the following formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the file for clarification
    Attached Files Attached Files

+ 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. Replies: 15
    Last Post: 09-09-2015, 08:42 PM
  2. Replies: 4
    Last Post: 07-28-2015, 01:54 PM
  3. Using VBA to perform wildcard filter for text strings contained in a list
    By DaveBre in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2014, 10:49 PM
  4. [SOLVED] Filter values based on a master list and an input list
    By PY_ in forum Excel General
    Replies: 8
    Last Post: 04-12-2013, 06:36 AM
  5. Replies: 0
    Last Post: 02-23-2013, 02:15 PM
  6. Filter a long list by a shorter list of values, keeping repeated values
    By mrfloopa in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-15-2012, 09:50 PM
  7. Filter Macro (range contained in filter value)
    By antman10 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-28-2010, 11:09 PM

Tags for this Thread

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