+ Reply to Thread
Results 1 to 6 of 6

Logical test false values skip to next row for next test

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2007
    Posts
    7

    Logical test false values skip to next row for next test

    Essentially, I'm tasked with keeping a running list of new members joining an organization, and keeping an up-to-date RSVP list on a second sheet in the same workbook. I already have everything set up and formatted, but I'm having difficulty with sorting who's coming into another sheet, and who we're waiting on in a third sheet.

    The three primary columns are "Business Name", "Orientation?", and "# of People" (Columns A, E, & F, respectively; B-D is contact info). The first column in my second sheet is supposed to comprise of a list of all Business Names in sheet 1 from Column A, who have "Yes" as their RSVP in Column E. Furthermore pulling the corresponding number of people expected to attend. E.g. Out of Companies A-E, only Companies B & C will attend and with 2 people each. My second sheet should then pull those two companies and begin a list.

    I've been able to try using a variety of functions including: IF, IFERROR, INDEX, MATCH, ROW, ROWS, COLUMN, COLUMNS, COUNTIFS, and so on. So far, nothing has completely worked. The formula needs to account for new companies being added to the original list, and add them to the RSVP list if they are attending along with the # of people expected to attend. I already have a formula to get the total count of people expected, that's a simple SUM function. I consistently run into one of two problems:

    1. The array formula for Column A in Sheet 2 detects the first "Yes" and displays its corresponding Business Name, then the next row shows the same name, and so does the entire array. And entire list of the name of the first business with a "Yes".
    2. Or, the array formula accurately displays the names of every business with "Yes", though separated by blank rows for business not attending.

    The second problem is the closest solution so far, but I need the formula to omit adding an empty row, and simply find the next "Yes". For example, if I use the formula =IF($E:$E="YES",$A:$A, ""), I'll get a blank row every time something other than "Yes" appears. Instead, I need a formula that says something along the line of "If Logical Test is False, skip to next row and test again. Repeat until Logical Test is True, then enter Value if True, and move to the next row & test again.

    Sorry for the extremely long post everybody! I've attached a sample workbook based off my situation, below. Please feel free to ask any questions should there be any misunderstandings. Thanks for any help you guys can offer!


    Sample Workbook.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Logical test false values skip to next row for next test

    Hi and welcome to the forum

    There are other ways of doing this, but I used a helper column in sheet1 and then index/match based on that helper, in sheet 2
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Logical test false values skip to next row for next test

    Hello S,

    welcome to the forum.

    Does the attached sheet do what you need?

    Cheers
    Attached Files Attached Files
    <-- If you're happy & you know it...click the star.:-)

  4. #4
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Logical test false values skip to next row for next test

    I have tried with 3 different models.

    Please have a look.
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  5. #5
    Registered User
    Join Date
    11-27-2013
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Logical test false values skip to next row for next test

    Thank you Dibbins and Wilson! Both of these work great! You've saved me a lot of headache, and now I can focus on Thanksgiving. Have a good holiday!

  6. #6
    Registered User
    Join Date
    05-23-2018
    Location
    Gurgaon, India
    MS-Off Ver
    2010
    Posts
    1

    Re: Logical test false values skip to next row for next test

    Hi FDibbins,

    I also faced a similar problem. I used the formula suggested by you and it is working properly. Though this was posted 5 years back, I still would want to thank you.

    Thanks
    Mrigansh Jain

+ 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: 2
    Last Post: 02-06-2013, 12:16 PM
  2. Logical test in IF function returning TRUE when it should be FALSE
    By lvjeff in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-28-2012, 05:13 PM
  3. Skip the row if the logical test is false?
    By ridgelyiv in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2011, 03:37 PM
  4. If false, do the logical test for next cell
    By Zvetam in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-21-2008, 07:48 AM
  5. =IF(logical test,value if true,value if false) always backwards!
    By chaminod in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2005, 02:10 PM

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