+ Reply to Thread
Results 1 to 4 of 4

If false, ignore and skip to next row

  1. #1
    Registered User
    Join Date
    09-15-2020
    Location
    Bristol, UK
    MS-Off Ver
    365
    Posts
    2

    If false, ignore and skip to next row

    I have a large table of data and I need to create sub-tables that have the same columns, but a subset of the data based upon whether a certain value appears in the first column.

    In the supplied workbook I have created some sample data. I would like to create subtables for based on the value in column A.

    E.g. I would like a sub-table with all the rows where the value in column A is '9T'.
    Attached Files Attached Files

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

    Re: If false, ignore and skip to next row

    1. Convert your Range into a Table. CTL +T
    2. When the table is created, it sets Filtering to Automatic
    3. Click on the Down Arrow in the Column Header of Column A
    4. Unselect All and reselect 9T
    5. Highlight the filtered Table and Copy
    6. On a new sheet Paste.
    7. Back on the original, click on the drop down and select All
    8. Repeat as necessary

    If you wish to automate this with either Power Query or VBA then advise further.
    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
    09-15-2020
    Location
    Bristol, UK
    MS-Off Ver
    365
    Posts
    2

    Re: If false, ignore and skip to next row

    Hi Alan.

    I would like to do this with functions - if possible, as I want the sub-tables to be dynamic. The value in column A can change from time-to-time and I don't want to have to generate new tables everytime they do.

    Something along the lines of:
    -not allowed to post URLs until I have made a few more posts-

    Which I have tried to apply to my situation, but cannot get it to work - I just don't understand the functions and parameters enough.

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

    Re: If false, ignore and skip to next row

    I have supplied another solution for you using Power Query, which is called Get and Transform in your version of Excel. The attached file has a drop down (parameter) and based upon the selection it will filter the results.

    The Mcode for the Parameter is

    Please Login or Register  to view this content.
    The Mcode for the Source Table is

    Please Login or Register  to view this content.
    Review PQ
    In the attached file
    Click on any cell in the new table
    On the Data Tab, click on Queries & Connections
    In the right window, double click to open Query
    Review PQ steps

    M-code basics:
    - "let" is the start of a query
    - "in" is the closing of a query
    - each transformation step sits in between those 2 lines
    - each step line is ended by a comma, except the last one
    - "Source" is always the first step (Source Data)
    - After "in" you have the last step referenced

    Look at this link to fully understand this method.-->https://www.youtube.com/watch?v=gK2yBpiITvI
    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. [SOLVED] Skip, ignore or miss false value
    By robg76 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2020, 05:15 AM
  2. If statement is false, skip to next row
    By tbraden in forum Excel General
    Replies: 3
    Last Post: 12-18-2018, 10:34 AM
  3. [SOLVED] IF FALSE, skip to the next row
    By MYazal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2016, 06:28 PM
  4. [SOLVED] False value, then skip to next line, etc.
    By hidden78731 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2016, 03:10 PM
  5. VBA ignore or skip worksheets if not available
    By sk88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2013, 04:15 PM
  6. [SOLVED] How do I Skip a Row if the Value is False
    By coconnor in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2012, 10:26 AM
  7. If false skip to next
    By irresistible007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2005, 07:10 AM

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