+ Reply to Thread
Results 1 to 10 of 10

Find Oldest Date in Column but only if their is no date to the right

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    81

    Find Oldest Date in Column but only if their is no date to the right

    I have a formula that looks at a column and finds oldest date (=MIN(A7:A50) which works fine, but I do not want to count the date in column A if their is a date that shows up in a column that is to the right of column A. Currently their are many columns to the right of the column A with dates with numbers, dates, the word "DATE", or the cell could be blank.

    Is their a formula that looks at column A and returns the oldest date but only on dates that do not have a date anywhere to the right?

    Any help would be appreciated

  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,944

    Re: Find Oldest Date in Column but only if their is no date to the right

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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
    Registered User
    Join Date
    11-27-2012
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Find Oldest Date in Column but only if their is no date to the right

    The attached spread sheet has an orange cell BI6 that I'm try to put in a formula that looks at the column in green (AW7 thru AW34) and enters the oldest date into cell BI6, but if their is any dates to the right of the column in green (See cells in red with dates) then those cells in the green column with dates to the right in red would not be considered when picking the oldest date in the green column.

    Resulting in formula in BI6 picking the oldest date between cells AW10, AW26, AW28, AW30, AW32, AW34.

    Hope this makes sense.
    Attached Files Attached Files

  4. #4
    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,944

    Re: Find Oldest Date in Column but only if their is no date to the right

    Your file is password protected

  5. #5
    Registered User
    Join Date
    11-27-2012
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Find Oldest Date in Column but only if their is no date to the right

    Sorry, should have remembered. See attached.
    Attached Files Attached Files

  6. #6
    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,944

    Re: Find Oldest Date in Column but only if their is no date to the right

    YIKES!!!!! My 1st question, before I even attempt to do anything here is...why, oh why, do you have all those merged cells???????????????????????

  7. #7
    Registered User
    Join Date
    11-27-2012
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Find Oldest Date in Column but only if their is no date to the right

    I have asked myself that question! I did not create this spread sheet, the person who did no-longer works here. I was given the task on this existing file.
    I appreciate your willingness to help but I have talked to my boss and convinced him to let me start over and create a new file. I'm going to cancel this thread.

    Thanks again.

  8. #8
    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,944

    Re: Find Oldest Date in Column but only if their is no date to the right

    Well I think you could get what you wanted by using this array formula...
    =MIN(IF(BJ7:BJ34>1,AW7:BH34))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    (26 *used* columns, but 166 actual columns)

  9. #9
    Registered User
    Join Date
    11-27-2012
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Find Oldest Date in Column but only if their is no date to the right

    Thanks FDibbins! That works.

  10. #10
    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,944

    Re: Find Oldest Date in Column but only if their is no date to the right

    Happy to help and thanks for the feedback

    (consider removing those merged cells though lol)

+ 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. Find the oldest date
    By Rachel555 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-03-2013, 06:50 AM
  2. [SOLVED] Find Oldest Date for Criteria in different Column
    By mglassco in forum Excel General
    Replies: 12
    Last Post: 04-19-2012, 09:27 PM
  3. Find oldest date
    By ianma in forum Excel General
    Replies: 1
    Last Post: 09-01-2009, 10:02 AM
  4. Help: Need to find oldest date based on a location
    By paindivine in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2006, 03:14 PM
  5. [SOLVED] Need to find oldest date in ever changing list.
    By Alan Anderson via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-20-2005, 01:06 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