+ Reply to Thread
Results 1 to 6 of 6

Report the first and last date where an item is listed

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    15

    Report the first and last date where an item is listed

    I have a spreadsheet which is used for tracking work items for a team of people.
    On one sheet I have a column of dates and rows of named 'tasks' against them.
    I need to identify the first and last dates at which a 'task' is listed.

    My spreadsheet is attached.

    On sheet2 K2 I want to see the first / earliest date where 'Fish' occurs on sheet1
    On sheet2 L2 I want to see the last / latest date where 'Fish' occurs on sheet1

    Please help! I have tried using SUMPRODUCT MAX / MIN but I got myself in a muddle!!
    Attached Files Attached Files

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

    Re: Report the first and last date where an item is listed

    Fish occurs first on 11/06 and last occurrence is 07/07
    There are two columns on Sheet2 labelled Available (16/06) and End No later than (30/06)
    Do these columns need to be taken into account, ie are they restricting the original date range from 11/06-07/07 to 16/06-30/06?
    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 sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Report the first and last date where an item is listed

    Hi,

    Do the following arrays work for you?

    =MAX(IF(Sheet1!D2:U1024="Fish",Sheet1!B2:B1024,""))

    =MIN(IF(Sheet1!D2:U1024="Fish",Sheet1!B2:B1024,""))

    Confirm these with CTRL, SHIFT and ENTER.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    03-11-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Report the first and last date where an item is listed

    It does work, however I chnaged "Fish" to "A2" so that I could replicate down without needing to type the task name in each formula, then it stopped working.

  5. #5
    Registered User
    Join Date
    03-11-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Report the first and last date where an item is listed

    Special K - the available and end no later do not need to be considered - they are informational rather than restrictive

  6. #6
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Report the first and last date where an item is listed

    Lock the cell reference ($A$2) and remember to hit ctrl+shift+enter for the array function to work.

+ 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: 2
    Last Post: 02-07-2014, 05:38 PM
  2. [SOLVED] How to skip to next item if not listed.
    By mkelsay91 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2013, 05:54 AM
  3. Replies: 6
    Last Post: 06-26-2013, 10:10 PM
  4. [SOLVED] Calculating the count of the item listed in the column header
    By kwhite523 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-15-2012, 10:58 AM
  5. Combobox add item not listed yet
    By mqdias in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2012, 12:40 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