+ Reply to Thread
Results 1 to 9 of 9

If false then check next row (No blanks in list) formula

  1. #1
    Registered User
    Join Date
    01-29-2017
    Location
    Cleveland, Ohio
    MS-Off Ver
    2016
    Posts
    4

    If false then check next row (No blanks in list) formula

    A.......B................. E
    Chair Yes ........... Couch
    Couch No............. Table
    Table No ............. Shelf
    Desk Yes...........
    Lamp Yes..........
    Shelf No...........

    Hi guys,

    I am trying to make a spreadsheet with a list of things I might need. For example, if column A is the furniture, and B is whether I own it or not, then I would like to have E be the list of items needed. A formula that says "If B=No then Enter what corresponding column A says, if it is false, then check the next row." The formulas I have tried only leave the cell blank if it is false, so then I will end up with something like this:

    E
    Blank
    Couch
    Table
    Blank
    Blank
    Shelf


    Could you help me with a formula that would go and check the next row if it is false so I don't have any blanks or unnecessary values?


    Thanks!

    Mike

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: If false then check next row (No blanks in list) formula

    try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and confirm by Control+Shift+Enter

    I assumed your data start from A2 , B2

  3. #3
    Registered User
    Join Date
    01-29-2017
    Location
    Cleveland, Ohio
    MS-Off Ver
    2016
    Posts
    4

    Re: If false then check next row (No blanks in list) formula

    Thanks a lot sandy! It worked like a charm. Much appreciated!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: If false then check next row (No blanks in list) formula

    Glad to help

    If problem is resolved it's always a good practice to click on Add Reputation star to person(s) who helped you (anyone else can do it also) and mark thread as Solved. Thanks

  5. #5
    Registered User
    Join Date
    01-29-2017
    Location
    Cleveland, Ohio
    MS-Off Ver
    2016
    Posts
    4

    Re: If false then check next row (No blanks in list) formula

    One more question Sandy, is this possible to do with multiple columns at once? For example if I have lists in A B C D and I want to make column E show a list. Or is this only possible one column at a time?

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: If false then check next row (No blanks in list) formula

    Probably it is possible but you need to create new thread with description about your new problem

    in new thread in the first post:

    Attach a sample workbook. (Not a picture!)
    Make sure there is just enough data to demonstrate your need. Include a BEFORE (original) sheet and an AFTER (required output) sheet in the workbook if needed to show the process you're trying to complete or automate.
    Make sure your desired results are shown, mock them up manually if necessary. Remember, it should reflect original structure of your data.
    Remember to desensitize the data.
    Note:
    • Please do not attach password protected workbooks/worksheets
    • Please do not attach file(s) from exterior servers
    • Please do not attach file(s) with enabled any Workbook Open/Autorun macros!

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Last edited by sandy666; 01-30-2017 at 07:03 PM.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If false then check next row (No blanks in list) formula

    Quote Originally Posted by WanderingMike View Post
    is this possible to do with multiple columns at once? For example if I have lists in A B C D and I want to make column E show a list.
    Like this?

    Data Range
    A
    B
    C
    D
    E
    1
    Chair
    Yes
    Box
    Yes
    Couch
    2
    Couch
    No
    Broom
    Yes
    Table
    3
    Table
    No
    Mop
    Yes
    Shelf
    4
    Desk
    Yes
    Bucket
    No
    Bucket
    5
    Lamp
    Yes
    Clock
    No
    Clock
    6
    Shelf
    No


    This array formula** entered in E1:

    =IFERROR(INDEX(A:A,SMALL(IF(B$1:B$6="No",ROW(B$1:B$6)),ROWS(E$1:E1))),IFERROR(INDEX(C:C,SMALL(IF(D$1:D$6="No",ROW(D$1:D$6)),ROWS(E$1:E1)-COUNTIF(B$1:B$6,"No"))),""))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Registered User
    Join Date
    01-29-2017
    Location
    Cleveland, Ohio
    MS-Off Ver
    2016
    Posts
    4

    Re: If false then check next row (No blanks in list) formula

    Yes, exactly, thanks Tony!!

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If false then check next row (No blanks in list) formula

    You're welcome. Thanks for the feedback!

+ 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: 8
    Last Post: 09-15-2016, 05:11 PM
  2. Replies: 3
    Last Post: 09-28-2014, 08:14 PM
  3. [SOLVED] Formula to populate a list without blanks.
    By greenjl7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-01-2014, 11:47 AM
  4. [SOLVED] Create new list without blanks through formula
    By Rob2101 in forum Excel General
    Replies: 3
    Last Post: 06-14-2012, 07:41 PM
  5. If formula with true/false check box options
    By jamierat in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-21-2011, 08:48 PM
  6. removing blanks from list by formula
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-29-2007, 01:01 PM
  7. false blanks
    By markx in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-29-2006, 11:25 AM

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