+ Reply to Thread
Results 1 to 5 of 5

Formula Help: If X is True, then display all of row 1?

  1. #1
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Formula Help: If X is True, then display all of row 1?

    Hi,

    I have a workbook example attached.

    I am trying to make a formula in A1 (on Sheet 2) that says something like: If (all of this data is in Sheet 1) column D is False, then copy all of that row into sheet 2. If D1 is True, nothing should be copied, skip that data row and move on.

    Maybe a formula is the incorrect method here, as I image I need to write formula in each cell, but I want to avoid large gaps of empty rows.

    Basically, what I am trying to achieve is I have a large log file dumped into excel, in a column that says True or False, I want to basically filter any data that is False and I need to review all data in that entire row. Similar to filtering.
    Attached Files Attached Files
    Last edited by Rick-O-Shay; 05-19-2022 at 11:06 PM.

  2. #2
    Forum Contributor
    Join Date
    11-20-2007
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2013, 2019
    Posts
    217

    Re: Formula Help: If X is True, then display all of row 1?

    Explain why you cannot just filter?

  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Formula Help: If X is True, then display all of row 1?

    Quote Originally Posted by GlennUK View Post
    Explain why you cannot just filter?
    i'm sure he wants a filter so that something is automated and less work in the future
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Formula Help: If X is True, then display all of row 1?

    Put this formula in cell A1.
    This is an array formula so you must use CTRL + SHIFT + ENTER when entering this formula. If done so correctly { } will automatically be inserted around the formula.

    As of right now i have the range set to row 50. Please update the range to fit your needs. I have highlighted this in RED below.

    =IFERROR(INDEX(Sheet1!A$1:A$50,SMALL(IF(ISBLANK(Sheet1!$D$1:$D$50),"",IF(Sheet1!$D$1:$D$50=FALSE,ROW(Sheet1!$D$1:$D$50),"")),ROW(1:1))),"")


    Once range is updated then drag across to column J and drag down as far as you want. This formula will show errors as blanks so you can drag the formula down 1,000 rows and if there is no data to show from your first sheet then it will still be blank.

  5. #5
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Re: Formula Help: If X is True, then display all of row 1?

    Wow @dosydos, very impressive. I had no idea about an array formula. Thank you very much! Very informative!

    @GlennUK, the reason I want to pre-filter it is because I am making a tool for other people with much less excel knowledge and I don't want to have to explain in my instructions how to filter when it can just automatically be done.

    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. Replies: 5
    Last Post: 07-27-2021, 12:17 AM
  2. [SOLVED] Display TRUE as C
    By Trebor777 in forum Excel General
    Replies: 5
    Last Post: 01-16-2017, 02:01 PM
  3. [SOLVED] If formula to display text if true
    By Tortus in forum Excel General
    Replies: 1
    Last Post: 07-23-2015, 04:47 PM
  4. [SOLVED] in this TRUE OR FALSE function, i want desired name instead of display true or false
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 06:44 PM
  5. Display true false with IF formula
    By pcoutlaw in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-22-2012, 09:48 AM
  6. using the display value, not the true value
    By richardlaw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2010, 06:08 PM
  7. [SOLVED] Formula is true if proportion of range is true
    By nussbaum in forum Excel General
    Replies: 3
    Last Post: 01-23-2005, 10:07 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