+ Reply to Thread
Results 1 to 4 of 4

if statement false then look in next cell

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    cape cod
    MS-Off Ver
    Excel 2003
    Posts
    33

    if statement false then look in next cell

    example.xlsI have a spreadsheet with 2 sheets and I am trying to come up with a formula to list the names under the appropriate date. So if John Smith has 08/01/2012, I want John Smith's name to return into the first available row. The next name should be the next one that has a date of 08/01/2012. I have tried =IF($I$3=INDEX('Benefit Eligible'!$O$2:$O$295,MATCH($I$3,'Benefit Eligible'!$O$2:$O$295,0)+MOD((ROW()-2),295)),INDEX('Benefit Eligible'!$B$3:$B$296,MATCH($I$3,'Benefit Eligible'!$O$2:$O$295,0)+MOD((ROW()-2),295)),"") but it is leaving blank cells. Does anyone have any ideas?

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: if statement false then look in next cell

    tacape,

    Attached is a modified version of your example workbook.
    In sheet 'Detail' cell B4 and copied over and down to Q23 is formula:
    Please Login or Register  to view this content.

    Note that the formula will only work properly if it is guaranteed that there are never duplicates on any given date like in your example. If there are duplicate names on a date and you need them returned also, let me know.
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    cape cod
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: if statement false then look in next cell

    It works pefectly. Thank you.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: if statement false then look in next cell

    tacape,

    You're very welcome

    If that takes care of your need, please mark the thread as Solved:
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:
    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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