Generating Max date from cells with formulas

Corleone

Well-known Member
Joined
Feb 2, 2003
Messages
841
Office Version
  1. 365
Hi
This would be straightforward enough to fix by setting up a recorded macro however the company im doing this for has a block on macros so im tring to avoid them

I import a load of dates from a project plan into the sheet into columns C&D - some of the activity dates have been completed and so they come across in this format 12/11/2022 A
this isnt a problem as i can use the following formula =TEXT(LEFT(d4,9),"DD-MMM-YY") In order to strip out any other characters apart from thE date so this is what i have done in column E&F

MY Problem is In Column G in need to put in a formula which will pick out the latest date from columns E&F - I have tried MAX and MAXA but it doesnt seem to work as the entries in column E&F are formulas.
so in the example below i want 08-nov-19 returned in the first red cell and 18-dec-19 returned in the cell below.
1674674991019.png



Any ideas welcome
 

Attachments

  • 1674674924952.png
    1674674924952.png
    1.9 KB · Views: 6

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Are your dates are real dates or text formatted,

What does =ISNUMBER(F3) returns? TRUE or FALSE


if it return FALSE then you need to use your TEXT formula like:

Excel Formula:
=--TEXT(LEFT(F2,9),"DD-MMM-YY")
 
Upvote 0
it doesnt seem to work as the entries in column E&F are formulas.
It's not because they are formula, it's because the formula returns text & not a date. Change the formula to
Excel Formula:
=LEFT(D4,9)+0
and then you will have a real date.
 
Upvote 0
It's not because they are formula, it's because the formula returns text & not a date. Change the formula to
Excel Formula:
=LEFT(D4,9)+0
and then you will have a real date.
This looks like the most elegant solution and works perfectly for the cells where there are dates - however , is there a way of modifying the formula so that if the cell it is looking up is blank it just returns a blank or 0 at the moment it returns #Value

Thanks all for your responses
 
Upvote 0
How about
Excel Formula:
=IF(D4="",0,LEFT(D4,9)+0)
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,449
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top