+ Reply to Thread
Results 1 to 7 of 7

Find next non blank cell in list and return value from adjacent column

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    Bournemouth, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Find next non blank cell in list and return value from adjacent column

    I've been racking my brain and unable to solve what I'm sure is very simple!

    I am working on a timesheet and I have a list of dates (A) [always present] and start times (B) and end time (C) [which may contain a time or be null/blank] ... In cols D and E I want to display the next scheduled start date and time where an end date is present, and null if end date not specified.

    Image.png

    I have all sorts of solutions going round in my head (Index Match Offset Row) but am unable to get the logic straight. i.e. Come up with a solution!

    Be grateful for some input - Thanks

  2. #2
    Registered User
    Join Date
    03-22-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2010
    Posts
    39

    Re: Find next non blank cell in list and return value from adjacent column

    Hi kristy.brown ,

    please attach sample worksheet to address your concern properly.

    Regards,

  3. #3
    Registered User
    Join Date
    05-31-2012
    Location
    Bournemouth, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Find next non blank cell in list and return value from adjacent column

    Hi blueblink01,
    Attached Files Attached Files
    Last edited by kristy.brown; 05-19-2014 at 10:07 AM.

  4. #4
    Registered User
    Join Date
    05-31-2012
    Location
    Bournemouth, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Find next non blank cell in list and return value from adjacent column

    Book.xlsxHaving established that what I was trying to do with a formula is not possible per-se I have opted for an alternative approach as ultimately what I was testing for was that a person has at least 11 hrs rest between shifts.

    I am now testing against next-shift-date + time minus shift-end-date+time which works 'ish OK but I have a couple of anomilies (it doesn't work) where the next shift start is "" (so interpreted as 00:00), or the days shift finishes past mid-night which when combined with shift start date results in incorrect result.

    In the attached (revised)

    For example, cell o10 contains:

    IF(K10<>"",(B11+D11)-(B10+K10),(B11+D11)-(B10+H10))

    which I could force it to default to 24:00 (or text "over-11-hrs")

    IF(D11="","24:00",IF(K10<>"",(B11+D11)-(B10+K10),(B11+D11)-(B10+H10)))

    but this doesn't resolve the finishing past mid-night cell o17 scenario.

    Can anyone recommend an efficient approach? Thanks

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find next non blank cell in list and return value from adjacent column

    J5
    Please Login or Register  to view this content.
    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    05-31-2012
    Location
    Bournemouth, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Find next non blank cell in list and return value from adjacent column

    Thanks Oeldere for solving my original query ... Brilliant. Thank you

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find next non blank cell in list and return value from adjacent column

    Thanks for the reply.

    Glad I could help.

+ 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: 4
    Last Post: 05-15-2014, 09:32 AM
  2. [SOLVED] Find first cell where threshold value is reached, return value from adjacent column
    By CatSqueezer in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-06-2013, 08:49 PM
  3. [SOLVED] Find text in a column or range and return value of adjacent cell
    By chemoul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2012, 04:30 AM
  4. Find and Match Text in Column Return Adjacent Cell
    By biancam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-11-2012, 02:45 PM
  5. macro to find first blank cell in a column cut the value from left adjacent column
    By willykin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-01-2012, 09:23 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