+ Reply to Thread
Results 1 to 3 of 3

IF function false - look at next row

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    Gothenburg
    MS-Off Ver
    Excel 2011
    Posts
    2

    IF function false - look at next row

    Hello,


    I need some help to create an If-statement.
    On one sheet I have names and a bunch of information.


    I´ve made a simple example with names an colors.
    On one sheet I have this information
    On the other sheet i want to list all the names which meets the condition of blue or green color.


    A B
    1 Name Color
    2 Ted red
    3 Jody blue
    4 Tina blue
    5 Brody green
    6 Henrik red
    7 Layla blue
    8 Ben red


    The formula I´ve used is:
    =IF(OR(Sheet1!B2="green";Sheet1!B2="blue");Sheet1!A2;"")


    But then it looks like this:


    A
    1 Name
    2 Empty
    3 Jody
    4 Tina
    5 Brody
    6 Empty
    7 Layla
    8 Empty


    I Want it to look like this:

    A
    1 Name
    2 Jody
    3 Tina
    4 Brody
    5 Layla

    So basicly what I want is to write a formula that looks at the next row if the statement is false and the next one after that and so on uyntil it finds a statement that is true.

    If you could help me I would be forever grateful
    Last edited by danilosvensson; 02-05-2014 at 06:02 AM. Reason: Extended information

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: IF function false - look at next row

    Hello and welcome.
    names.xlsx
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    02-04-2014
    Location
    Gothenburg
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: IF function false - look at next row

    Tank you very much for your help!

    I´ll try to apply it to my "real" document but it looks right to me!

    /Danilo

+ 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] 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
  2. True/False function.
    By SamCrome in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-25-2012, 04:55 AM
  3. Set Function to False -Why??
    By JDB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2005, 09:40 AM
  4. IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2005, 12:05 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