Select latest dates from one column based on set of values

Monty9

New Member
Joined
Feb 26, 2016
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Hello Gurus,

I request your help in the scenario where I have 3 Columns (example in attachment) - Now I need to run a check based on Column A (Plan) which shall have duplicate values and a large list, based on Column A wherever I have a Latest Completion date it should be captured in Column C. I've given the demo results in attachment.

If there are no Completion Date then result can be 'Blank Result'

Thanks
 

Attachments

  • Capture.JPG
    Capture.JPG
    42.7 KB · Views: 5

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
In future you will generally get better/faster resonses if you provide sample data in a form that helpers can easily copy to test with. :)
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

See if this helps.

22 04 14.xlsm
ABC
1
28300 
38300Blank Result
48301 
58301 
683018/12/20208/12/2020
7169087/02/2022 
81690814/12/2021 
91690813/10/2021 
101690818/08/20217/02/2022
11
Latest
Cell Formulas
RangeFormula
C2:C10C2=IF(A2=A3,"",LET(dte,MAXIFS(B$2:B2,A$2:A2,A2),IF(dte=0,"Blank Result",dte)))
 
Upvote 0
Solution
Hello Gurus,

I request your help in the scenario where I have 3 Columns (example in attachment) - Now I need to run a check based on Column A (Plan) which shall have duplicate values and a large list, based on Column A wherever I have a Latest Completion date it should be captured in Column C. I've given the demo results in attachment.

If there are no Completion Date then result can be 'Blank Result'

Thanks
I tried with =MAXIFS() and it worked!
 
Upvote 0
In future you will generally get better/faster resonses if you provide sample data in a form that helpers can easily copy to test with. :)
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

See if this helps.

22 04 14.xlsm
ABC
1
28300 
38300Blank Result
48301 
58301 
683018/12/20208/12/2020
7169087/02/2022 
81690814/12/2021 
91690813/10/2021 
101690818/08/20217/02/2022
11
Latest
Cell Formulas
RangeFormula
C2:C10C2=IF(A2=A3,"",LET(dte,MAXIFS(B$2:B2,A$2:A2,A2),IF(dte=0,"Blank Result",dte)))
Thank you Peter
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

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