+ Reply to Thread
Results 1 to 2 of 2

If all cells in range contain a date value, then return the highest date

  1. #1
    Forum Contributor
    Join Date
    11-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    405

    Question If all cells in range contain a date value, then return the highest date

    Hi Guys,

    I'm more of a VBA man than worksheet formulas so play nice.

    I need a worksheet formula for Column F

    I have 5 (A-E) columns on a single row where each column represents a task to be completed.
    Each column will either store a date in dd/mm/yyyy format, "N/A" or nothing.

    If the column is blank: then the task is required, but has not yet been complete
    If the column contains "N/A" then the task is not required
    If the column contains a date in dd/mm/yyyy format then the task was required and was completed on the date stored in the cell.

    A sixth column, "F" is the milestone column which will display the date the final task was completed.
    Column F is to show a blank value when any of the columns A-E contain a blank
    Column F is to show the highest date when at least one column A-E has a date stored in it
    Column F is to show "N/A" if ALL of the columns A-E have "N/A" stored in the cell values

    Like I said I could easily complete this with VBA but am wanting to solve the problem using simple worksheet formulas

    Kind Regards
    Jordan

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If all cells in range contain a date value, then return the highest date

    In F2, try this:

    =IF(COUNTIF(A2:E2,"N/A")=5,"N/A",IF(COUNTIF(A2:E2,""),"",MAX(A2:E2)))

    Formatted as Date

+ 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. Return highest number with date
    By ClearConcept in forum Excel General
    Replies: 2
    Last Post: 10-09-2009, 12:05 PM
  2. How do I return the highest value in a range of cells
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 12:05 PM
  3. How do I return the highest value in a range of cells
    By pjs83 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. How do I return the highest value in a range of cells
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 07:05 AM
  5. How do I return the highest value in a range of cells
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 06:05 AM
  6. How do I return the highest value in a range of cells
    By pjs83 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. How do I return the highest value in a range of cells
    By pjs83 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. [SOLVED] How do I return the highest value in a range of cells
    By pjs83 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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