+ Reply to Thread
Results 1 to 3 of 3

Formula to skip row if false condition

  1. #1
    Registered User
    Join Date
    06-21-2017
    Location
    New York NY
    MS-Off Ver
    2013
    Posts
    6

    Formula to skip row if false condition

    I have two sheets, sheet 1 is basically where the raw data is pasted in and sheet2 is the output with the clean data. Both sheets will have the same column headers. I have created a helper column in sheet (column T) that basically indicates the necessary rows with "TRUE" or "FALSE" and I do not want any blank rows in sheet2
    What I am basically trying to do is create a formula that will bring the necessary rows to sheet2 only for rows that have "TRUE" in column T of sheet1.
    Last edited by thenormanizer; 12-13-2017 at 10:51 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula to skip row if false condition

    Try this in A2 of Sheet2 (change the size of the range to suit):

    =IFERROR(INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$T$2:$T$100=TRUE,ROW(Sheet1!$A$2:$A$100)),ROWS($A$1:A1))),"")

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Formula to skip row if false condition

    You could use a macro that;
    1. Filters for only TRUE
    2. Selects all the filtered data and copies it
    3. Paste the copied data to the new sheet

+ 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] IF FALSE, skip to the next row
    By MYazal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2016, 06:28 PM
  2. [SOLVED] Macro to apply IF formula to next set of columns if condition is false
    By Ale84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2015, 01:50 PM
  3. [SOLVED] IF FALSE, SKIP TO NEXT TRUE ROW - Need formula, not filters
    By rwernlund in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-25-2015, 04:54 PM
  4. [SOLVED] Not sure where to put false condition within ISNUMBER formula
    By lukela85 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2013, 02:12 PM
  5. Replies: 8
    Last Post: 01-20-2013, 04:21 PM
  6. [SOLVED] If false skip to next
    By irresistible007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2005, 07:10 AM
  7. Replies: 3
    Last Post: 03-06-2005, 12:00 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