+ Reply to Thread
Results 1 to 8 of 8

Collect non empty cell before know value

  1. #1
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    182

    Collect non empty cell before know value

    Hello again fellow Excel addicts,
    As shown in the attachment, I have a small table that is missing a "End" date, I've been trying to create a formula so my team doesn't have to manually type every date, after changing the Gantt area (Dates in the right).

    asd.PNG

    So I just need a formula on the "End" column to collect the next non-empty cell before "TST".

    Note: the Start and Test days are known (I've created a formula already).
    Edit: The empty spaces between dates and "TST" can vary.

    Thank you, John.
    Last edited by jomaor1; 02-18-2019 at 08:53 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Collect non empty cell before know value

    Seems to work, finds last number on a row (ignores TST)

    =OFFSET(G3,0,MATCH(MAX(G3:R3)+1,G3:R3,1)-1)
    and copy down the column
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Collect non empty cell before know value

    TST is date from D3?
    Anyhow, try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    accept with Ctrl+Shift+Enter
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    182

    Re: Collect non empty cell before know value

    Sorry, but it has to be before TST, because it can be other cell values after TST,
    so my returned value has to be 27/2, or 27th of February.

    Note that the "MAX" is returning 16, and adding one, and that makes zero sense to me

  5. #5
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    182

    Re: Collect non empty cell before know value

    Yes, TST date is in D3

    Didn't work, it returned a #N/A error.

    Note: I need the value on O1 to be returned (27/2).

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Collect non empty cell before know value

    Misunderstood.
    Put into C3:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    accept with CSE.

  7. #7
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    182

    Re: Collect non empty cell before know value

    Yes!! it worked flawlessly, thank you very much!

  8. #8
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Collect non empty cell before know value

    You welcome.
    If you happy, please use thread tools and marked thread as SOLVED.

+ 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] vba code to find and paste data to next empty cell, not last empty cell
    By hkbhansali in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2018, 10:48 AM
  2. [SOLVED] Collect data from cell When saving PDF
    By Oeysbrei in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-12-2017, 06:15 PM
  3. [SOLVED] Paste formula to the last empty cell based on a non-empty cell on another column
    By bhenlee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-02-2015, 04:07 PM
  4. collect content of a cell, depending on the color
    By shimaa01234 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-19-2014, 08:39 AM
  5. Replies: 12
    Last Post: 10-18-2013, 07:02 AM
  6. How to collect data from many cells in a row into one cell?
    By rcurious in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-18-2012, 02:35 PM
  7. Collect cell value in Var
    By Fraggs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2005, 09:58 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