Filter based on latest date and other criteria

EslamTM

New Member
Joined
Aug 29, 2022
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hi everyone,

I've below dataset and I would like to filter it based on the latest date for each company of the amount, how to do that using vba?

Thanks

value_dateCompany namefc_trsBalance
21/08/2022 0:00Company 1
671025​
671025​
20/07/2022 0:00Company 2
800000​
800000​
28/07/2022 0:00Company 2
800000​
800000​
08/08/2022 0:00Company 2
800000​
800000​
16/08/2022 0:00Company 2
800000​
800000​
21/08/2022 0:00Company 3
600000​
600000​
24/05/2022 0:00Company 4
2500000​
2500000​
16/08/2022 0:00Company 4
2500000​
2500000​
20/02/2022 0:00Company 5
462780​
462780​
28/04/2022 0:00Company 5
462780​
462780​
05/06/2022 0:00Company 5
462780​
462780​
26/06/2022 0:00Company 5
462780​
462780​
06/07/2022 0:00Company 5
462780​
462780​
21/08/2022 0:00Company 5
462780​
462780​
17/04/2022 0:00Company 6
1500000​
1500000​
18/08/2022 0:00Company 6
1500000​
1500000​
21/08/2022 0:00Company 7
202150​
202150​
31/12/2021 0:00Company 8
236.98​
236.98​
10/08/2022 0:00Company 9
0.6​
0.6​
11/08/2022 0:00Company 10
826244.7​
826244.7​
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,214,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

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