+ Reply to Thread
Results 1 to 17 of 17

Formula to return first date where column planned is filled

  1. #1
    Registered User
    Join Date
    02-24-2010
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Formula to return first date where column planned is filled

    Hi,

    Please help with creating a formula that finds a first filled row in date column and retrieves this date to column C. See attachment for more details.


    best regards,
    Risto
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Formula to return first date where column planned is filled

    Im not entirely sure I understand what you want, byt try this in C3, copied down...
    =SMALL($E$1:$I$1,ROW(A1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Formula to return first date where column planned is filled

    Please try this file.
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  4. #4
    Registered User
    Join Date
    02-24-2010
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Formula to return first date where column planned is filled

    Sorry non of these solutions are working. Basically what I want to see in column C is the first planned date of each item.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to return first date where column planned is filled

    Perhaps using this ARRAY formula?

    =SMALL(IF($D$2:$I$2="Planned",$D$1:$I$1),ROW(A1))

    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Registered User
    Join Date
    02-24-2010
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Formula to return first date where column planned is filled

    For some reasons this array formula is not working and I would like to avoid array as much as possible since it makes table rather slow with great amount of data.
    2 month I asked for formula to get last planned date click to see thread and there I got working solution from martindwilson. Does anyone know how to modifiy it, so instead of getting last planned date it would return first.

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to return first date where column planned is filled

    It's completely different thing to say that formula does not works than to say that:Ok. Formula works but i prefer a non Array formula as solution.
    Attached Files Attached Files

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to return first date where column planned is filled

    And here is a non Array formula for your first date.

    =LARGE(INDEX(($D$2:$I$2="Planned")*$D$1:$I$1,0),COUNTIF($D$2:$I$2,"Planned"))

  9. #9
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula to return first date where column planned is filled

    Quote Originally Posted by Fotis1991 View Post
    And here is a non Array formula for your first date.

    =LARGE(INDEX(($D$2:$I$2="Planned")*$D$1:$I$1,0),COUNTIF($D$2:$I$2,"Planned"))
    Fotis' formula wont give results if the first 'planned' column has no date

    Try this adaptation
    =LARGE(INDEX(($D$2:$I$2="Planned")*$D$1:$I$1,0),SUMPRODUCT(($D$2:$I$2="Planned")*ISNUMBER($D$1:$I$1)))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to return first date where column planned is filled

    Quote Originally Posted by Ace_XL View Post
    Fotis' formula wont give results if the first 'planned' column has no date
    obviously not. As also the Array SMALL(IF...will not gives correct results. But what kind of "Planned" column it is if has no date?

  11. #11
    Registered User
    Join Date
    02-24-2010
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Formula to return first date where column planned is filled

    Acel_XL you are getting close, but for some reason it doesn't show correct result when I have only 1 planned date filled or if I have only last and first filled. Please see attachment. Item A has correct date but B and C are wrong. B should have 27.08.2013 and C should have 26.08.2013
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    02-24-2010
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Formula to return first date where column planned is filled

    Can anyone help with this?

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to return first date where column planned is filled

    Quote Originally Posted by Risto85 View Post
    Can anyone help with this?
    I tried to do this but you just ignored me(My posts#7 & #8....).

  14. #14
    Registered User
    Join Date
    02-24-2010
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Formula to return first date where column planned is filled

    Quote Originally Posted by Fotis1991 View Post
    I tried to do this but you just ignored me(My posts#7 & #8....).
    Sorry Fotis1991, I tried your solution but they didn't quite work. I'll attach new sample file, I think I didn't explain it well.
    Attached Files Attached Files

  15. #15
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to return first date where column planned is filled

    I am not also fan of ARRAY formulas but in some cases MAYBE we have to accept this...

    So ARRAY formula.

    =SMALL(IF((D3:I3>0)*($D$2:$I$2="Planned");$D$1:$I$1);1)

    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    02-24-2010
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Formula to return first date where column planned is filled

    Thank you Fotis1991, this one works very good!

  17. #17
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to return first date where column planned is filled

    You are welcome and thanks for the feed back & rep*.

+ 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] Find last filled row in column where column description is date
    By Risto85 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2013, 08:02 AM
  2. Replies: 4
    Last Post: 12-04-2012, 02:24 AM
  3. Replies: 1
    Last Post: 06-08-2011, 02:00 AM
  4. Replies: 11
    Last Post: 06-05-2011, 11:30 PM
  5. [SOLVED] how do I do a Planned vs Actual start date & end date graph
    By chivy76 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-26-2005, 03:05 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