+ Reply to Thread
Results 1 to 2 of 2

MIN function to return earliest date if adjacent cell has data

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    77

    MIN function to return earliest date if adjacent cell has data

    Hi all, hoping this is an easy one.

    Basically I have a data set of codes (column A), dates (col B), stock count (col C) and damaged stock count (col D) (I can't upload the file for some reason).

    I want to be able to retrieve the shortest date (col A) based on a code (col B), but only if that date has stock (col C) in it (other stock is damaged and is moved to column D automatically).
    I have the formula
    Please Login or Register  to view this content.
    as an array (ie CTRL + SHIFT + ENTER) which works OK, however it falls over when the stock is damaged and is not in column C anymore (as that stock is now not available, it should return the next earliest 'available' stock. Hope that makes sense.

    *F9 in the formula above = the 'code' being referenced.

    Note - There are always multiple dates per each code.

    Thanks in advance for your time!

  2. #2
    Registered User
    Join Date
    01-09-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: MIN function to return earliest date if adjacent cell has data

    Gave it another red-hot go, and managed to get:
    Please Login or Register  to view this content.
    which returns the next date if the cell adjacent has no data on it.

    I'll mark as solved. Thanks anyways!!!

+ 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. Determine date, return a value from adjacent cell
    By MilesDeep in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2014, 01:27 PM
  2. [SOLVED] Need a function to return latest date after searching text in an adjacent column
    By kevindict in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-03-2013, 12:50 PM
  3. Replies: 11
    Last Post: 04-08-2013, 05:53 PM
  4. [SOLVED] formula to look up value and return the earliest date?
    By ea223 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2013, 08:27 PM
  5. Can Excel return the earliest date using =IF?
    By jareduk in forum Excel General
    Replies: 7
    Last Post: 04-01-2009, 04:59 AM
  6. Function to return value of adjacent cell
    By lmp101010 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-18-2008, 09:02 PM
  7. Vlookup to Return Earliest Date
    By marco168 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2007, 11:12 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