Formula to find latest & Old date from a column based on criteria

Pranesh

Board Regular
Joined
Jun 29, 2014
Messages
219
Hi All,

I have 5 columns of data. In which A to D columns are text and E column is date. I need 2 formula in F & G column to check latest and oldest date in column E based on criteria from A to D Column.

For example: In Column E I have dates from 2017 September( In 2017 I have only 2 dates 08/10/2017 & 09/22/2017) to 2019 April(Till date 04/17/2019). Now I need a formula in Column F which should say the latest date from column E which is 04/17/2019 and 1 formula in column G which should say the oldest date from column E which is 09/22/2017.


In this I need this to be based on 3 criteria(Column A,B,C,D). I got a formula from google search which gives the latest date(04/172019) but when I use it to find the oldest date instead of 09/22/2017 it gives output as 08/10/2017

Formula for Latest date: (This works fine)
Code:
MAX(IF(B2:B232149="AM",C2:C232149))

Formula for Oldest date: (This didn't work)
Code:
MIN(IF(B2:B232149="AM",C2:C232149))
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
These are both array formulas but there's no indication you've entered them as such
Reenter them thus
Array formula, use Ctrl-Shift-Enter
 
Upvote 0
These are both array formulas but there's no indication you've entered them as such
Reenter them thus
Array formula, use Ctrl-Shift-Enter

Hi Special-K99,

Thanks for your assistance. I missed to include that here in thread. In my file i have updated the formula with Ctrl-Shift-Enter. But im not getting the answer im expecting.
 
Upvote 0
Hang on this doesnt make senese.

"I have 5 columns of data. In which A to D columns are text..."
So column C is text

Then why are you extracting column C ?
MAX(IF(B2:B232149="AM",C2:C232149))
MIN(IF(B2:B232149="AM",C2:C232149))

"...and E column is date"

It should be column E
Even you've said that below.

"I need 2 formula in F & G column to check latest and oldest date in column E based on criteria from A to D Column. "

If this still doesn't explain why you're not getting the right results then supply some example data

Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
You cant attach files on this forum. There are tools on this forum for adding small spreadsheet images

https://www.mrexcel.com/forum/about-board/508133-attachments.html
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,821
Messages
6,181,163
Members
453,021
Latest member
Justyna P

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