Latest, 1st Last, 2nd Last entry

SteffanPE

New Member
Joined
Apr 21, 2020
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi,

i'm looking to use a formula / VBA that can show me the latest entry.

Column A is a Unique property Reference, and column F are the job numbers for each job. (highest number = Latest entry).

i'm looking to add a column that will show the latest entry against each property.

i can easily do it in Power BI -

= Calculate(Max(F:F),ALLEXCEPT(A:A))

I need this equivilent in excel if possible.

any help, much appreciated.

Thank you,


A = T1_UPRNT1_AssetTypeT1_VisitDueT1_VisitActualT1_VisitOutcomeF = T1_JobNumber
10010040​
House
08/02/2020​
22/11/2019​
Complete
62458​
10010040​
House
18/04/2019​
08/02/2019​
Complete
54843​
10010040​
House
30/05/2018​
18/04/2018​
Complete
45445​
10010060​
House
09/04/2020​
05/02/2020​
Complete
65362​
10010060​
House
08/06/2019​
09/04/2019​
Complete
54844​
10010060​
House
10/07/2018​
08/06/2018​
Complete
45446​
10010070​
House
01/11/2019​
02/09/2019​
Complete
62459​
10010080​
House
29/01/2020​
11/11/2019​
Complete
62460​
10010080​
House
15/03/2019​
29/01/2019​
Complete
54846​
10010080​
House
18/04/2018​
15/03/2018​
Complete
45448​
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Assuming first entry in row 2, see if this does what you need

=MAXIFS(F:F,A:A,A2)
 
Upvote 0
Hi & welcome to MrExcel.
How about
+Fluff New.xlsm
ABCDEFG
1A = T1_UPRNT1_AssetTypeT1_VisitDueT1_VisitActualT1_VisitOutcomeF = T1_JobNumber
210010040House02/08/202022/11/2019Complete62458Latest
310010040House18/04/201902/08/2019Complete54843 
410010040House30/05/201818/04/2018Complete45445 
510010060House04/09/202002/05/2020Complete65362Latest
610010060House06/08/201904/09/2019Complete54844 
710010060House07/10/201806/08/2018Complete45446 
810010070House11/01/201909/02/2019Complete62459Latest
910010080House29/01/202011/11/2019Complete62460Latest
1010010080House15/03/201929/01/2019Complete54846 
1110010080House18/04/201815/03/2018Complete45448 
Result
Cell Formulas
RangeFormula
G2:G11G2=IF(F2=MAXIFS(F:F,A:A,A2),"Latest","")
 
Upvote 0
Hi & welcome to MrExcel.
How about
+Fluff New.xlsm
ABCDEFG
1A = T1_UPRNT1_AssetTypeT1_VisitDueT1_VisitActualT1_VisitOutcomeF = T1_JobNumber
210010040House02/08/202022/11/2019Complete62458Latest
310010040House18/04/201902/08/2019Complete54843 
410010040House30/05/201818/04/2018Complete45445 
510010060House04/09/202002/05/2020Complete65362Latest
610010060House06/08/201904/09/2019Complete54844 
710010060House07/10/201806/08/2018Complete45446 
810010070House11/01/201909/02/2019Complete62459Latest
910010080House29/01/202011/11/2019Complete62460Latest
1010010080House15/03/201929/01/2019Complete54846 
1110010080House18/04/201815/03/2018Complete45448 
Result
Cell Formulas
RangeFormula
G2:G11G2=IF(F2=MAXIFS(F:F,A:A,A2),"Latest","")

Great, Thank you very much.

worked a treat
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
In your sample data, for each property, the latest entry is at the top. So if that data is representative of your actual data, all you would need is ..

20 04 21.xlsm
ABCDEFG
1A = T1_UPRNT1_AssetTypeT1_VisitDueT1_VisitActualT1_VisitOutcomeF = T1_JobNumberLatest?
210010040House2/08/202022/11/2019Complete62458Latest
310010040House18/04/20192/08/2019Complete54843 
410010040House30/05/201818/04/2018Complete45445 
510010060House4/09/20202/05/2020Complete65362Latest
610010060House6/08/20194/09/2019Complete54844 
710010060House7/10/20186/08/2018Complete45446 
810010070House11/01/20199/02/2019Complete62459Latest
910010080House29/01/202011/11/2019Complete62460Latest
1010010080House15/03/201929/01/2019Complete54846 
1110010080House18/04/201815/03/2018Complete45448 
Latest
Cell Formulas
RangeFormula
G2:G11G2=IF(A2=A1,"","Latest")
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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