Formula searching last status of Transactions

Tripleseas

Board Regular
Joined
Jul 12, 2022
Messages
87
Office Version
  1. 2013
Platform
  1. Windows
Hello community,

I want to write a formula in A2 that will always search for the last statuts of ID TRANSACTIONS in colonne B and noted it.

the ID TRSANSACTIONS contains duplicate with changing statuts that updates. example :
CBS63D3FC0B40E2B this ID is available in colonne B 3 times. the last time the statut is Transfer Success. so i want the formula to note transfer success in A2.

hope i'm clear.
I will apply this formula on huge data set.

thanks to all.



Classeur1.xlsx
ABC
1Last StatusID OF TRANSATIONStatuts
2CBS63D3FC0B40E2BTransfer initiated
3CBS63D487AEB8E94Transfer initiated
4CBS63D63414358C6Transfer initiated
5CBS63D44A664F911Transfer initiated
6CBS63D418DC6FA08Transfer initiated
7CBS63D75BAEC5E35Payment Captured
8CBS63D75BAEC5E35Transfer initiated
9CBS63D77CA6A4C5APayment Captured
10CBS63D77CA6A4C5ATransfer initiated
11CBS63D68A7CA8E4CPayment Captured
12CBS63D68A7CA8E4CTransfer initiated
13CBS63D44305209F3Transfer initiated
14CBS63D531364A8E4Transfer Pending
15CBS63D531364A8E4Transfer Success
16CBS63D26D8B922A3Transfer initiated
17CBS63D5229F5B8E7Transfer initiated
18CBS63D5331E91725Transfer Pending
19CBS63D26D8B922A3Transfer Pending
20CBS63D6B3207620BTransfer Pending
21CBS63D5331E91725Transfer Success
22CBS63D26D8B922A3Transfer Success
23CBS63D791F20F627Payment Captured
24CBS63D791F20F627Transfer initiated
25CBS63D6B3207620BTransfer Success
26CBS63CBAC0297954Refund Success
27CBS63D7978C9E7DFPayment Captured
28CBS63D7978C9E7DFTransfer initiated
29CBS63D791F20F627Transfer Pending
30CBS63D562DB44695Transfer Pending
31CBS63D798D02BCC7Payment Captured
32CBS63D798D02BCC7Transfer initiated
33CBS63D7994428C5APayment Captured
34CBS63D7994428C5ATransfer initiated
35CBS63D791F20F627Transfer Success
36CBS63D562DB44695Transfer Success
37CBS63D77EEE8CF5FPayment Captured
38CBS63D550B94C0E4Payment Captured
39CBS63D550B94C0E4Transfer initiated
40CBS63D6D3E4C5473Transfer Pending
41CBS63D77EEE8CF5FTransfer initiated
42CBS63D6D3E4C5473Transfer Success
43CBS63D798D02BCC7Transfer Pending
44CBS63D487AEB8E94Transfer Pending
45CBS63D3FC0B40E2BTransfer Pending
46CBS63D798D02BCC7Transfer Success
47CBS63D7A736A3DC8Payment Captured
48CBS63D7A736A3DC8Transfer initiated
49CBS63D7A7A346BEAPayment Captured
50CBS63D7A7A346BEATransfer initiated
51CBS63D487AEB8E94Transfer Success
52CBS63D7A840AB47DPayment Captured
53CBS63D3FC0B40E2BTransfer Success
54CBS63D7A840AB47DTransfer initiated
55CBS63D7A98863858Payment Captured
56CBS63D7AAA33405FPayment Captured
57CBS63D7AAA33405FTransfer initiated
58CBS63D56E887B177Transfer Pending
59CBS63D56E887B177Transfer Success
60CBS63D7ADD95BDADPayment Captured
61CBS63D7ADD95BDADTransfer initiated
62CBS63D7B3463438BPayment Captured
63CBS63D7B3463438BTransfer initiated
64CBS63D44305209F3Transfer Pending
65CBS63D698DCC5C07Transfer Pending
66CBS63D44305209F3Transfer Success
67CBS63D5580C19D71Transfer Pending
68CBS63D7B3463438BTransfer Pending
69CBS63D698DCC5C07Transfer Success
70CBS63D5580C19D71Transfer Success
71CBS63D7B3463438BTransfer Success
72CBS63D7A840AB47DTransfer Pending
73CBS63D7A840AB47DTransfer Success
74CBS63D64C264D819Transfer initiated
75CBS63D64CE6253D8Payment Captured
76CBS63D64DE4B371DTransfer Pending
77CBS63D64C264D819Transfer Pending
78CBS63D6BC72D3048Transfer Pending
79CBS63D64CE6253D8Transfer initiated
80CBS63D52D49D0F58Refund Success
81CBS63D64DE4B371DTransfer Success
82CBS63D64C264D819Transfer Success
83CBS63D6BC72D3048Transfer Success
84CBS63D7A736A3DC8Transfer Pending
85CBS63D7A736A3DC8Transfer Success
86CBS63D7ADD95BDADTransfer Pending
87CBS63D5770E2FE74Transfer Pending
88CBS63D7ADD95BDADTransfer Success
89CBS63D7D440D703DPayment Captured
90CBS63D7D440D703DTransfer initiated
91CBS63D5770E2FE74Transfer Success
92CBS63D68F3DA8440Transfer Pending
93CBS63D7DAD28D07BPayment Captured
94CBS63D68F3DA8440Transfer Success
95CBS63D7DAD28D07BTransfer initiated
96CBS63D7DC0CEF9DCPayment Captured
97CBS63D7DC0CEF9DCTransfer initiated
98CBS63D5229F8DA30Transfer Pending
99CBS63D7DBE734AD6Payment Captured
100CBS63D7DBE734AD6Transfer initiated
101CBS63D5229F8DA30Transfer Success
102CBS63D77EEE8CF5FTransfer Pending
103CBS63D77EEE8CF5FTransfer Success
104CBS63D7AAA33405FTransfer Pending
105CBS63D7E7B27E3FDPayment Captured
106CBS63D7E7B27E3FDTransfer initiated
107CBS63D7AAA33405FTransfer Success
108CBS63D7A7A346BEATransfer Pending
109CBS63D7ED84BA314Payment Captured
110CBS63D7DBE734AD6Transfer Pending
111CBS63D7ED84BA314Transfer initiated
112CBS63D7A7A346BEATransfer Success
113CBS63D7DBE734AD6Transfer Success
114CBS63D7ED84BA314Transfer Pending
115CBS63D7ED84BA314Transfer Success
116CBS63D6EA4BC218ATransfer Pending
117CBS63D7DAD28D07BTransfer Pending
118CBS63D6EA4BC218ATransfer Success
119CBS63D7DAD28D07BTransfer Success
120CBS63D64CE6253D8Transfer Pending
121CBS63D7D440D703DTransfer Pending
122CBS63D7978C9E7DFTransfer Pending
123CBS63D64CE6253D8Transfer Success
124CBS63D7D440D703DTransfer Success
125CBS63D7978C9E7DFTransfer Success
126CBS63D8007231353Payment Captured
127CBS63D8007231353Transfer initiated
128CBS63D809833FB3APayment Captured
129CBS63D809833FB3ATransfer initiated
130CBS63D29390D2BB3Transfer Pending
131CBS63D29390D2BB3Transfer Success
132CBS63D84EB0DA3E2Payment Captured
133CBS63D84EB0DA3E2Transfer initiated
134CBS63D8534060916Payment Captured
135CBS63D8534060916Transfer initiated
136CBS63D8A4BF4832APayment Captured
137CBS63D8A4BF4832ATransfer initiated
138CBS63CEADC03EC01Refund Success
139CBS63D7A98863858Transfer initiated
140CBS63D8DBD7CD693Payment Captured
141CBS63D8DBD7CD693Transfer initiated
142CBS63D8DC5127226Payment Captured
143CBS63D8DC5127226Transfer initiated
144CBS63D8DD23902D2Payment Captured
145CBS63D8DD23902D2Transfer initiated
146CBS63D8E0448FE9CPayment Captured
147CBS63D8E0448FE9CTransfer initiated
148CBS63D8E18398E08Payment Captured
149CBS63D8E18398E08Transfer initiated
150CBS63D8E14C60DA5Payment Captured
151CBS63D8E14C60DA5Transfer initiated
152CBS63D8DD23902D2Transfer Pending
153CBS63D8DC5127226Transfer Pending
154CBS63D8DD23902D2Transfer Success
155CBS63D8DC5127226Transfer Success
156CBS63D8E18398E08Transfer Pending
157CBS63D8E18398E08Transfer Success
158CBS63D7A98863858Transfer Pending
159CBS63D7A98863858Transfer Success
160CBS63D8F23817138Payment Captured
161CBS63D8F23817138Transfer initiated
162CBS63D8F8C58EE1BPayment Captured
163CBS63D8F8C58EE1BTransfer initiated
164CBS63D8FD1A522D4Payment Captured
165CBS63D8FD1A522D4Transfer initiated
166CBS63D8FE220CFC0Payment Captured
167CBS63D8FE220CFC0Transfer initiated
168CBS63D9018CACCB2Payment Captured
169CBS63D9018CACCB2Transfer initiated
170CBS63D9018CACCB2Transfer Pending
171CBS63D2377280DCATransfer Success
172CBS63D8DBD7CD693Transfer Pending
173CBS63D9038D745DBPayment Captured
174CBS63D9038D745DBTransfer initiated
175CBS63D8DBD7CD693Transfer Success
176CBS63D63414358C6Refund Success
177CBS63D9064DBFF70Payment Captured
178CBS63D9064DBFF70Transfer initiated
179CBS63D909ED82892Payment Captured
180CBS63D8FD1A522D4Transfer Pending
181CBS63D909CF23834Payment Captured
182CBS63D909CF23834Transfer initiated
183CBS63D8FD1A522D4Transfer Success
184CBS63D909ED82892Transfer initiated
185CBS63D91424B6ACFPayment Captured
186CBS63D9146E83D24Payment Captured
187CBS63D9146E83D24Transfer initiated
188CBS63D91424B6ACFTransfer initiated
189CBS63D916D974662Payment Captured
190CBS63D7994428C5ATransfer Pending
191CBS63D8F8C58EE1BTransfer Pending
192CBS63D809833FB3ATransfer Pending
193CBS63D8A4BF4832ATransfer Pending
194CBS63D7994428C5ATransfer Success
195CBS63D8F23817138Transfer Pending
196CBS63D8FE220CFC0Transfer Pending
197CBS63D8534060916Transfer Pending
198CBS63D8F8C58EE1BTransfer Success
199CBS63D809833FB3ATransfer Success
200CBS63D9146E83D24Transfer Pending
201CBS63D91B6FADF96Payment Captured
202CBS63D91B6FADF96Transfer initiated
203CBS63D75BAEC5E35Transfer Pending
204CBS63D91BB5392D9Payment Captured
205CBS63D91BB5392D9Transfer initiated
206CBS63D8A4BF4832ATransfer Success
207CBS63D91C030E181Payment Captured
208CBS63D8F23817138Transfer Success
209CBS63D91C030E181Transfer initiated
210CBS63D8FE220CFC0Transfer Success
211CBS63D91C38907C3Payment Captured
212CBS63D91C38907C3Transfer initiated
213CBS63D8534060916Transfer Success
214CBS63D9146E83D24Transfer Success
215CBS63D75BAEC5E35Transfer Success
216CBS63D8BFE6B3C37Payment Captured
217CBS63D8BFE6B3C37Transfer initiated
218CBS63D91B6FADF96Transfer Pending
219CBS63D8E0448FE9CTransfer Pending
220CBS63D91B6FADF96Transfer Success
221CBS63D8E0448FE9CTransfer Success
222CBS63D916D974662Transfer initiated
223CBS63D932D926CEEPayment Captured
224CBS63D932D926CEETransfer initiated
225CBS63D91424B6ACFTransfer Pending
226CBS63D93539D9220Payment Captured
227CBS63D91424B6ACFTransfer Success
228CBS63D937141641DPayment Captured
229CBS63D937141641DTransfer initiated
230CBS63D91C030E181Transfer Pending
231CBS63D91C38907C3Transfer Pending
232CBS63D84EB0DA3E2Transfer Pending
233CBS63D91C030E181Transfer Success
234CBS63D91C38907C3Transfer Success
235CBS63D84EB0DA3E2Transfer Success
236CBS63D91BB5392D9Transfer Pending
237CBS63D93FAE1CDCCPayment Captured
238CBS63D93FAE1CDCCTransfer initiated
239CBS63D91BB5392D9Transfer Success
240CBS63D909ED82892Transfer Pending
241CBS63D9456F420BDPayment Captured
242CBS63D9456F420BDTransfer initiated
243CBS63D909ED82892Transfer Success
244CBS63D94D2E08447Payment Captured
245CBS63D94D2E08447Transfer initiated
246CBS63D9064DBFF70Transfer Pending
247CBS63D9038D745DBTransfer Pending
248CBS63D93FAE1CDCCTransfer Pending
249CBS63D932D926CEETransfer Pending
250CBS63D9064DBFF70Transfer Success
251CBS63D9038D745DBTransfer Success
252CBS63D93FAE1CDCCTransfer Success
253CBS63D932D926CEETransfer Success
254CBS63D937141641DTransfer Pending
255CBS63D937141641DTransfer Success
256CBS63D916D974662Transfer Pending
257CBS63D916D974662Transfer Success
258CBS63D964BC270D3Payment Captured
259CBS63D964BC270D3Transfer initiated
260CBS63D965649A457Payment Captured
261CBS63D965649A457Transfer initiated
262CBS63D973A5B41A6Payment Captured
263CBS63D9A3705801APayment Captured
264CBS63D9A3705801ATransfer initiated
265CBS63D973A5B41A6Transfer initiated
266CBS63DA1C99DD9B1Payment Captured
267CBS63DA1CB2D23A1Payment Captured
268CBS63DA1C99DD9B1Transfer initiated
269CBS63DA1CB2D23A1Transfer initiated
270CBS63DA256BB46DEPayment Captured
271CBS63DA256BB46DETransfer initiated
272CBS63DA26223ECD8Payment Captured
273CBS63DA26223ECD8Transfer initiated
274CBS63DA2CB22212EPayment Captured
275CBS63DA2CB22212ETransfer initiated
276CBS63D93539D9220Refund Success
277CBS63DA2F4C63769Payment Captured
278CBS63DA2F74DD596Payment Captured
279CBS63DA2F4C63769Transfer initiated
280CBS63DA2F74DD596Transfer initiated
281CBS63D965649A457Transfer Pending
282CBS63D965649A457Transfer Success
283CBS63DA368FD1FE8Payment Captured
284CBS63DA368FD1FE8Transfer initiated
285CBS63DA39199A585Payment Captured
286CBS63DA39199A585Transfer initiated
287CBS63DA39E417780Payment Captured
288CBS63DA39E417780Transfer initiated
289CBS63DA2CB22212ETransfer Pending
290CBS63DA2CB22212ETransfer Success
291CBS63DA2F74DD596Transfer Pending
292CBS63D7BC5330A42Payment Captured
293CBS63D7BC5330A42Transfer initiated
294CBS63D94D2E08447Transfer Pending
295CBS63DA2F74DD596Transfer Success
296CBS63D94D2E08447Transfer Success
Feuil3
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about
Excel Formula:
=INDEX(C:C,AGGREGATE(14,6,ROW($C$2:$C$500)/($B$2:$B$500=B2),1))
 
Upvote 0
Solution
Did you change it to suit your language version?
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
hello Mr.Fluff
I'm coming back to you for a change on the formula. I forgot to mention a very important detail. and i don't know if i need to start a new thread.

the current formula is working good but is there a possibility to have the formula visible only on the last id transaction because now it indicate the result for every status of id transations.

i tried to explain with this example . thank you so much for your help.

example :
Last StatusID OF TRANSATIONStatuts
BlankCBS63D3FC0B40E2BTransfer initiated
BlankCBS63D3FC0B40E2BTransfer Pending
formula with result hereCBS63D3FC0B40E2BTransfer Success
 
Upvote 0
Try this
Excel Formula:
=IF(COUNTIFS($B$2:$B$296,B2)=COUNTIFS($B$2:B2,B2),LOOKUP(2,1/($B$2:$B$296=B2),$C$2:$C$296), "")
 

Attachments

  • 1676024442813.png
    1676024442813.png
    21.9 KB · Views: 6
Upvote 0
How about
Fluff.xlsm
ABC
1Last StatusID OF TRANSATIONStatuts
2 CBS63D3FC0B40E2BTransfer initiated
3 CBS63D487AEB8E94Transfer initiated
4 CBS63D63414358C6Transfer initiated
5Transfer initiatedCBS63D44A664F911Transfer initiated
6Transfer initiatedCBS63D418DC6FA08Transfer initiated
7 CBS63D75BAEC5E35Payment Captured
8 CBS63D75BAEC5E35Transfer initiated
9 CBS63D77CA6A4C5APayment Captured
10Transfer initiatedCBS63D77CA6A4C5ATransfer initiated
11 CBS63D68A7CA8E4CPayment Captured
12Transfer initiatedCBS63D68A7CA8E4CTransfer initiated
13 CBS63D44305209F3Transfer initiated
14 CBS63D531364A8E4Transfer Pending
15Transfer SuccessCBS63D531364A8E4Transfer Success
16 CBS63D26D8B922A3Transfer initiated
17Transfer initiatedCBS63D5229F5B8E7Transfer initiated
18 CBS63D5331E91725Transfer Pending
19 CBS63D26D8B922A3Transfer Pending
20 CBS63D6B3207620BTransfer Pending
21Transfer SuccessCBS63D5331E91725Transfer Success
22Transfer SuccessCBS63D26D8B922A3Transfer Success
23 CBS63D791F20F627Payment Captured
24 CBS63D791F20F627Transfer initiated
25Transfer SuccessCBS63D6B3207620BTransfer Success
26Refund SuccessCBS63CBAC0297954Refund Success
27 CBS63D7978C9E7DFPayment Captured
28 CBS63D7978C9E7DFTransfer initiated
29 CBS63D791F20F627Transfer Pending
30 CBS63D562DB44695Transfer Pending
31 CBS63D798D02BCC7Payment Captured
32 CBS63D798D02BCC7Transfer initiated
33 CBS63D7994428C5APayment Captured
34 CBS63D7994428C5ATransfer initiated
35Transfer SuccessCBS63D791F20F627Transfer Success
36Transfer SuccessCBS63D562DB44695Transfer Success
37 CBS63D77EEE8CF5FPayment Captured
38 CBS63D550B94C0E4Payment Captured
39Transfer initiatedCBS63D550B94C0E4Transfer initiated
40 CBS63D6D3E4C5473Transfer Pending
41 CBS63D77EEE8CF5FTransfer initiated
42Transfer SuccessCBS63D6D3E4C5473Transfer Success
43 CBS63D798D02BCC7Transfer Pending
44 CBS63D487AEB8E94Transfer Pending
45 CBS63D3FC0B40E2BTransfer Pending
46Transfer SuccessCBS63D798D02BCC7Transfer Success
Main
Cell Formulas
RangeFormula
A2:A46A2=IF(COUNTIFS(B$2:B2,B2)=COUNTIFS(B:B,B2),INDEX(C:C,AGGREGATE(14,6,ROW($C$2:$C$500)/($B$2:$B$500=B2),1)),"")
 
Upvote 0
How about
Fluff.xlsm
ABC
1Last StatusID OF TRANSATIONStatuts
2 CBS63D3FC0B40E2BTransfer initiated
3 CBS63D487AEB8E94Transfer initiated
4 CBS63D63414358C6Transfer initiated
5Transfer initiatedCBS63D44A664F911Transfer initiated
6Transfer initiatedCBS63D418DC6FA08Transfer initiated
7 CBS63D75BAEC5E35Payment Captured
8 CBS63D75BAEC5E35Transfer initiated
9 CBS63D77CA6A4C5APayment Captured
10Transfer initiatedCBS63D77CA6A4C5ATransfer initiated
11 CBS63D68A7CA8E4CPayment Captured
12Transfer initiatedCBS63D68A7CA8E4CTransfer initiated
13 CBS63D44305209F3Transfer initiated
14 CBS63D531364A8E4Transfer Pending
15Transfer SuccessCBS63D531364A8E4Transfer Success
16 CBS63D26D8B922A3Transfer initiated
17Transfer initiatedCBS63D5229F5B8E7Transfer initiated
18 CBS63D5331E91725Transfer Pending
19 CBS63D26D8B922A3Transfer Pending
20 CBS63D6B3207620BTransfer Pending
21Transfer SuccessCBS63D5331E91725Transfer Success
22Transfer SuccessCBS63D26D8B922A3Transfer Success
23 CBS63D791F20F627Payment Captured
24 CBS63D791F20F627Transfer initiated
25Transfer SuccessCBS63D6B3207620BTransfer Success
26Refund SuccessCBS63CBAC0297954Refund Success
27 CBS63D7978C9E7DFPayment Captured
28 CBS63D7978C9E7DFTransfer initiated
29 CBS63D791F20F627Transfer Pending
30 CBS63D562DB44695Transfer Pending
31 CBS63D798D02BCC7Payment Captured
32 CBS63D798D02BCC7Transfer initiated
33 CBS63D7994428C5APayment Captured
34 CBS63D7994428C5ATransfer initiated
35Transfer SuccessCBS63D791F20F627Transfer Success
36Transfer SuccessCBS63D562DB44695Transfer Success
37 CBS63D77EEE8CF5FPayment Captured
38 CBS63D550B94C0E4Payment Captured
39Transfer initiatedCBS63D550B94C0E4Transfer initiated
40 CBS63D6D3E4C5473Transfer Pending
41 CBS63D77EEE8CF5FTransfer initiated
42Transfer SuccessCBS63D6D3E4C5473Transfer Success
43 CBS63D798D02BCC7Transfer Pending
44 CBS63D487AEB8E94Transfer Pending
45 CBS63D3FC0B40E2BTransfer Pending
46Transfer SuccessCBS63D798D02BCC7Transfer Success
Main
Cell Formulas
RangeFormula
A2:A46A2=IF(COUNTIFS(B$2:B2,B2)=COUNTIFS(B:B,B2),INDEX(C:C,AGGREGATE(14,6,ROW($C$2:$C$500)/($B$2:$B$500=B2),1)),"")
Thank you mr fluff that's amazing. worked very good ! thank you so much.
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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