+ Reply to Thread
Results 1 to 6 of 6

How to filter and show only data that meets a certain criteria?

  1. #1
    Registered User
    Join Date
    07-26-2022
    Location
    Charlotte, NC
    MS-Off Ver
    2406
    Posts
    7

    How to filter and show only data that meets a certain criteria?

    Hello,

    I have a large data set I imported from another program that is made up of two columns and that looks like columns A and B from the attached picture. You can imagine that same format repeating hundreds of times with a blank row between each block of data. My goal is to produce a table as represented by cells D2:F5 in the picture. The criteria is that only the data from column B that has a value greater than 1.2 should show up in my table. Furthermore, I would also like to know the corresponding numbers found on column A that match the same row of the cells in column B that meet the aforementioned criteria. Lastly, I would like to know the corresponding text that is at the top of each block of data. Could you please recommend how I can go about achieving this? Thank you in advance for reading and any assistance you may provide.

    Editing to comment that I added an attachment of a sample Excel worksheet in my reply below.
    Attached Images Attached Images
    Last edited by Santiamen007; 07-17-2024 at 10:29 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,761

    Re: How to filter and show only data that meets a certain criteria?

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-26-2022
    Location
    Charlotte, NC
    MS-Off Ver
    2406
    Posts
    7

    Re: How to filter and show only data that meets a certain criteria?

    alansidman, thank you for your feedback regarding proper formatting of the question and apologies for not doing so to begin with. Attached is a sample Excel sheet of the raw data, the desired table, and the table I have managed to create using the filter function. I hope this clears things up.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,931

    Re: How to filter and show only data that meets a certain criteria?

    One way,

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,761

    Re: How to filter and show only data that meets a certain criteria?

    Here is an alternative solution with Power Query

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-26-2022
    Location
    Charlotte, NC
    MS-Off Ver
    2406
    Posts
    7

    Re: How to filter and show only data that meets a certain criteria?

    Thank you both for your replies! I did not know about Power Query so I took some time to learn about that more. After some learning and modifications to what alansidman provided, I was able to build a better spreadsheet for all the data I have to process. Thank you so much!

+ 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. Filter data and show in different table based on multiple criteria
    By Zaid in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-08-2020, 05:18 PM
  2. [SOLVED] OFFSET function to show data only if meets criteria
    By alisachsf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-19-2019, 06:09 PM
  3. How to show contents of one cell if it meets certain criteria?
    By eekbubble in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2015, 05:22 AM
  4. Criteria to show what rows from data are shown, not actual filter
    By Butcher1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-29-2014, 12:45 PM
  5. [SOLVED] OFFSET function to show data only if meets criteria
    By Trax in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-19-2013, 10:47 AM
  6. Show only data that meets criteria for two columns.
    By mphtyger17 in forum Excel General
    Replies: 1
    Last Post: 08-16-2012, 02:19 PM
  7. Show only data that meets a certain criteria
    By Bob in forum Excel General
    Replies: 1
    Last Post: 06-26-2006, 05:01 AM

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