Spreadsheet: 710451d1608991170-how-to-check-date-of-last-transaction-aa
Sheet: Sheet1

Date | [NAME] | amount | recived |  | costumers | Amount of last transaction | Date of last transaction
2002-07-28 00:00:00 | c | 1050 | 1050 |  | a
2020-06-04 00:00:00 | c | 3075 | 0 |  | b |  |  |  | I want to get the last date on which money was recived and how much(from recived Column) by the costumer
2020-06-07 00:00:00 | df | 30000 | 0 |  | bf
2020-06-14 00:00:00 | df | 0 | 30000 |  | c
2020-06-15 00:00:00 | c | 1050 | 1050 |  | d
2020-06-15 00:00:00 | d | 40000 | 0 |  | df
2020-06-18 00:00:00 | c | 1050 | 1050 |  | dfd
2020-06-22 00:00:00 | c | 1050 | 1050 |  | f
2020-06-23 00:00:00 | fd | 0 | 30000 |  | fb
2020-06-24 00:00:00 | fd | 40000 | 0 |  | fd
2020-06-25 00:00:00 | c | 1050 | 1050 |  | fg
2020-06-28 00:00:00 | c | 1050 | 1050 |  | gfgf |  |  |  | like in case of [NAME] named "C" we last recived money on date 16-12-2020 ($ 10000)
2020-07-01 00:00:00 | c | 1050 | 1050 |  | sd
2020-07-02 00:00:00 | fd | 20000 | 0 |  | ss
2020-07-03 00:00:00 | df | 0 | 20000
2020-07-05 00:00:00 | c | 1050 | 1050
2020-07-08 00:00:00 | c | 1050 | 1050
2020-07-09 00:00:00 | df | 0 | 20000
2020-07-10 00:00:00 | df | 40000 | 0
2020-07-11 00:00:00 | c | 1050 | 1050
2020-07-14 00:00:00 | c | 1050 | 1050
2020-07-17 00:00:00 | c | 1050 | 1050
2020-07-18 00:00:00 | c | 500 | 0
2020-07-18 00:00:00 | c | 5125 | 0
2020-07-18 00:00:00 | c | 10425 | 0
2020-07-19 00:00:00 | df | 0 | 20000
2020-07-20 00:00:00 | d | 4000 | 0
2020-07-21 00:00:00 | c | 1050 | 1050
2020-07-21 00:00:00 | fd | 45000 | 0
2020-07-22 00:00:00 | fd | 0 | 40000
2020-07-24 00:00:00 | c | 1050 | 1050
2020-07-30 00:00:00 | fd | 50000 | 0
2020-07-31 00:00:00 | c | 1050 | 1050
2020-07-31 00:00:00 | fd | 4000 | 0
2020-08-01 00:00:00 | df | 16000 | 0
2020-08-01 00:00:00 | d | -37000 | 0
2020-08-04 00:00:00 | c | 1050 | 1050
2020-08-04 00:00:00 | fd | 20000 | 0
2020-08-05 00:00:00 | fd | 0 | 40000
2020-08-06 00:00:00 | c | 1050 | 1050
2020-08-06 00:00:00 | fd | -23000 | 0
2020-08-10 00:00:00 | c | 1050 | 1050
2020-08-12 00:00:00 | c | 1050 | 1050
2020-08-13 00:00:00 | c | 1050 | 1050
2020-08-13 00:00:00 | dfd | 0 | 14500
2020-08-16 00:00:00 | c | 1050 | 1050
2020-08-20 00:00:00 | c | 1050 | 1050
2020-08-23 00:00:00 | fb | 0 | 15500
2020-08-24 00:00:00 | d | 1050 | 1050
2020-08-27 00:00:00 | d | 1050 | 1050
2020-08-30 00:00:00 | d | 1050 | 1050
2020-09-02 00:00:00 | d | 1050 | 1050
2020-09-07 00:00:00 | sd | 1050 | 1050
2020-09-10 00:00:00 | df | 1050 | 1050
2020-09-14 00:00:00 | c | 980 | 980
2020-09-17 00:00:00 | c | 980 | 0
2020-09-20 00:00:00 | c | 1000 | 1500
2020-09-22 00:00:00 | gfgf | 1025 | 0
2020-09-23 00:00:00 | fd | 1025 | 0
2020-09-25 00:00:00 | c | 1000 | 1000
2020-09-25 00:00:00 | gfgf | 1025 | 0
2020-09-26 00:00:00 | fg | 1025 | 0
2020-09-28 00:00:00 | c | 1050 | 1050
2020-09-28 00:00:00 | f | 2050 | 0
2020-10-01 00:00:00 | fb | 1025 | 0
2020-10-03 00:00:00 | c | 1050 | 1050
2020-10-07 00:00:00 | c | 4950 | 0
2020-10-08 00:00:00 | fb | 0 | 7000
2020-10-11 00:00:00 | fb | 2025 | 0
2020-10-13 00:00:00 | fb | 10050 | 0
2020-10-14 00:00:00 | c | 10050 | 0
2020-10-15 00:00:00 | c | 0 | 5025
2020-10-22 00:00:00 | fb | 0 | 10000
2020-10-24 00:00:00 | fb | 0 | 12060
2020-10-26 00:00:00 | c | 10025 | 0
2020-10-26 00:00:00 | f | 10050 | 0
2020-10-30 00:00:00 | c | 0 | 10000
2020-11-03 00:00:00 | fb | 20500 | 0
2020-11-07 00:00:00 | c | 0 | 16050
2020-11-09 00:00:00 | bf | 11055 | 0
2020-11-11 00:00:00 | c | 10000 | 0
2020-11-16 00:00:00 | ss | -200 | 20300
2020-11-17 00:00:00 | c | 0 | 10000
2020-11-17 00:00:00 | bf | 0 | 10050
2020-11-24 00:00:00 | c | 10000 | 0
2020-11-24 00:00:00 | bf | 10050 | 0
2020-12-02 00:00:00 | fb | 0 | 9000
2020-12-03 00:00:00 | a | 1000 | 0
2020-12-03 00:00:00 | a | 270 | 270
2020-12-03 00:00:00 | a | 3075 | 3075
2020-12-03 00:00:00 | bf | 0 | 11055
2020-12-04 00:00:00 | c | 0 | 10000
2020-12-06 00:00:00 | c | 10000 | 0
2020-12-06 00:00:00 | bf | 10050 | 0
2020-12-07 00:00:00 | a | 270 | 270
2020-12-11 00:00:00 | a | 1000 | 1000
2020-12-14 00:00:00 | a | 1000 | 1000
2020-12-16 00:00:00 | a | 520 | 520
2020-12-16 00:00:00 | c | 0 | 10000
2020-12-18 00:00:00 | bf | 10050 | 10140
2020-12-23 00:00:00 | a | 4810 | 4810
2020-12-24 00:00:00 | b | 20000 | 0