+ Reply to Thread
Results 1 to 6 of 6

Excel help: IF TRUE, display something. IF FALSE, continue searching the column until TRUE

  1. #1
    Registered User
    Join Date
    05-09-2021
    Location
    Mississippi
    MS-Off Ver
    2104
    Posts
    2

    Excel help: IF TRUE, display something. IF FALSE, continue searching the column until TRUE

    Hey there, I am trying to make a table that searches through an entire column and only populates consecutive cells of ANOTHER column if the true statement is met (IE, it does not return a FALSE or a blank - it simply continues to search the column until that statement is true, and then returns something in the next cell.

    Here is my example: I want the two columns J and K to search the entire columns under C and D to return a value ONLY if the condition is met (that condition being C has "Bench Press (BB)" and E has "5x5). I've gotten that far with
    J: =IF(AND(E4="5x5",C4="Bench Press (BB)"),D4,"")
    K: =IF(AND(E4="5x5",C4="Bench Press (BB)"),B4,"")

    These conditions are met in row 4 AND row 11, which is why there were values returned in columns J and K. In row 5, however, the conditions are both not met so it returns a blank value due to my code. How can I, instead of returning this blank value, have the code continue to search columns C and E for the conditions to be met, therefore returning J11 and K11, instead in J5 and K5.
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Excel help: IF TRUE, display something. IF FALSE, continue searching the column until

    hello,
    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Registered User
    Join Date
    05-09-2021
    Location
    Mississippi
    MS-Off Ver
    2104
    Posts
    2

    Re: Excel help: IF TRUE, display something. IF FALSE, continue searching the column until

    belinda200 what exactly are you talking about? I did exactly as you mentioned, but there were no instructions at the top of the screen, just the option to "upload file" which is what I did

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Excel help: IF TRUE, display something. IF FALSE, continue searching the column until

    It was hard without sample workbook. But try:
    J4:
    Please Login or Register  to view this content.
    K4:
    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Excel help: IF TRUE, display something. IF FALSE, continue searching the column until

    Quote Originally Posted by Brentguthrie96 View Post
    belinda200 what exactly are you talking about? I did exactly as you mentioned, but there were no instructions at the top of the screen, just the option to "upload file" which is what I did

    Post a small Excel sheet (not a picture)

  6. #6
    Registered User
    Join Date
    07-21-2021
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    2

    Re: Excel help: IF TRUE, display something. IF FALSE, continue searching the column until

    Answers based on IF TRUE.
    Conclusion: False if blank, true if text is found.
    Excel does not search through the entire column until it finds a match for the given value. When an evaluation like this one is triggered by Excel conditional formatting, Excel will only evaluate cells in the column and row where the formula was typed for that particular row or column's data at that moment. That means you can do things like use a "not" sign and a cell reference to make exceptions in your formulas, which would cause calculations to stop just after finding those exceptions. Say, for example, you've put some extra calculations into your spreadsheet input as IF FALSE (risk-adjusting certain variables) then it

+ 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: 3
    Last Post: 08-16-2018, 06:07 AM
  2. [SOLVED] Formula Help - Searching specific values in a row and returing true/false
    By Mikeyc85 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-04-2016, 06:22 AM
  3. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  4. [SOLVED] Return True/False by searching a value in an array of string
    By aiyathomas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-30-2013, 12:35 PM
  5. [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
  6. [SOLVED] If Function is False continue to check row below for true value
    By BearsBikes in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-26-2013, 10:02 PM
  7. Compare two excel files and display true or false
    By sravanthi009 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-01-2011, 11:36 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