Looking for a formula to show last 10 transactions based on multiple criteria

dilleyo725

Board Regular
Joined
Jan 31, 2006
Messages
65
Hi, can anyone advise what type of formula would be best if I wanted to create a dashboard that listed the last 10 transactions based on multiple criteria? In my case it would based on the account status, i.e., Approved, Declined, Pending and the second criteria would be the submitting broker.

My table headers are as follows: Date, Submitting Broker, Submission ID, Status, Loan Amount.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
My Status & Broker of interest are in H2:H3. Formula in J2 is copied across and down. Is that what you are after?

Excel Workbook
ABCDEFGHIJKLMN
1DateSubmitting BrokerSubmission IDStatusLoan AmountDateSubmitting BrokerSubmission IDStatusLoan Amount
21/08/2019Broker 1ID 2Approved1StatusApproved=$H$2)*(Table1:]=$H$3)),11-ROWS(J$2:J2))),"")]7/08/2019Broker 2ID 1Approved7
32/08/2019Broker 2ID 1Approved2Submitting BrokerBroker 210/08/2019Broker 2ID 2Approved10
43/08/2019Broker 1ID 1Pending316/08/2019Broker 2ID 1Approved16
54/08/2019Broker 2ID 1Approved418/08/2019Broker 2ID 1Approved18
65/08/2019Broker 1ID 1Declined519/08/2019Broker 2ID 1Approved19
76/08/2019Broker 2ID 1Pending622/08/2019Broker 2ID 1Approved22
87/08/2019Broker 2ID 1Approved724/08/2019Broker 2ID 1Approved24
98/08/2019Broker 2ID 1Declined825/08/2019Broker 2ID 1Approved25
109/08/2019Broker 1ID 1Pending928/08/2019Broker 2ID 2Approved28
1110/08/2019Broker 2ID 2Approved1030/08/2019Broker 2ID 1Approved30
1211/08/2019Broker 1ID 1Declined11
1312/08/2019Broker 2ID 1Pending12
1413/08/2019Broker 1ID 1Approved13
1514/08/2019Broker 2ID 1Declined14
1615/08/2019Broker 1ID 1Pending15
1716/08/2019Broker 2ID 1Approved16
1817/08/2019Broker 1ID 1Declined17
1918/08/2019Broker 2ID 1Approved18
2019/08/2019Broker 2ID 1Approved19
2120/08/2019Broker 2ID 1Declined20
2221/08/2019Broker 1ID 1Pending21
2322/08/2019Broker 2ID 1Approved22
2423/08/2019Broker 1ID 1Declined23
2524/08/2019Broker 2ID 1Approved24
2625/08/2019Broker 2ID 1Approved25
2726/08/2019Broker 2ID 1Declined26
2827/08/2019Broker 1ID 1Pending27
2928/08/2019Broker 2ID 2Approved28
3029/08/2019Broker 1ID 1Declined29
3130/08/2019Broker 2ID 1Approved30
32
Last 10
 
Upvote 0
Qualifications to my last post.
1. If you will always have at least 10 transactions that fit the criteria then you wouldn't need the IFERROR() wrapped around the rest of the formula.
2. If you might have less than 10 that fit then you may want some further adjustment anyway as my formulas would leave any resultant blank rows immediately under the headings, not at the bottom of the results.

Post back with any issues.
 
Upvote 0
Thank you! That seems to be what I'm looking for. Now I'm just trying to understand how the formula works. I was trying to re-enter it and got stuck when trying to enter this "[[Status]:[Status]]". It would not allow me to enter a colon. I selected the status range (without the header) and then got stuck.

Also, is there a video or link that explains this particular formula in depth by chance that you can recommend?
 
Upvote 0
... got stuck when trying to enter this "[[Status]:[Status]]". It would not allow me to enter a colon. I selected the status range (without the header) and then got stuck.
- "Would not allow me ..." did it give you an error? just not respond to the keyboard? would it allow you to type a different character?
- With this sort of syntax you must include the table name
- Did you try copying my formula from the forum and paste into your sheet rather than typing it manually?


Also, is there a video or link that explains this particular formula in depth by chance that you can recommend?
Not my formula in particular, but for the tablename[[]:[]] structure I used, here is one resource:
https://www.excelcampus.com/tips/absolute-formula-references-excel-structured-table/
 
Last edited:
Upvote 0
I was able to get it to work. I just needed to understand how absolute/relative references worked with tables. I was able to see the work around in the video you provided.

This is a great formula. THANK YOU SO MUCH FOR YOU HELP.
 
Upvote 0
I was able to get it to work. I just needed to understand how absolute/relative references worked with tables. I was able to see the work around in the video you provided.

This is a great formula. THANK YOU SO MUCH FOR YOU HELP.
Good news & "you're welcome". :)

Just checking: Will you always have at least 10 of the relevant rows to display?
 
Upvote 0
Hmm, I would say so since the data source is a rolling 12 month.

But in a scenario where it was just looking at the current month, and if it was just the first week of the month, I can see where it can be less than 10. In that scenario, would this same formula apply?
 
Upvote 0
.. I can see where it can be less than 10. In that scenario, would this same formula apply?
Well, it 'works' but, as I pointed out in post 3, the layout is less than satisfactory in my view. See here

Excel Workbook
ABCDEFGHIJKLMN
1DateSubmitting BrokerSubmission IDStatusLoan AmountDateSubmitting BrokerSubmission IDStatusLoan Amount
21/08/2019Broker 1ID 2Approved1StatusApproved=$H$2)*(Table1:]=$H$3)),11-ROWS(J$2:J2))),"")]
32/08/2019Broker 2ID 1Approved2Submitting BrokerBroker 1
43/08/2019Broker 1ID 1Pending3
54/08/2019Broker 2ID 1Approved4
65/08/2019Broker 1ID 1Declined5
76/08/2019Broker 2ID 1Pending6
87/08/2019Broker 2ID 1Approved7
98/08/2019Broker 2ID 1Declined8
109/08/2019Broker 1ID 1Pending91/08/2019Broker 1ID 2Approved1
1110/08/2019Broker 2ID 2Approved1013/08/2019Broker 1ID 1Approved13
1211/08/2019Broker 1ID 1Declined11
1312/08/2019Broker 2ID 1Pending12
1413/08/2019Broker 1ID 1Approved13
1514/08/2019Broker 2ID 1Declined14
1615/08/2019Broker 1ID 1Pending15
1716/08/2019Broker 2ID 1Approved16
1817/08/2019Broker 1ID 1Declined17
1918/08/2019Broker 2ID 1Approved18
2019/08/2019Broker 2ID 1Approved19
2120/08/2019Broker 2ID 1Declined20
2221/08/2019Broker 1ID 1Pending21
2322/08/2019Broker 2ID 1Approved22
2423/08/2019Broker 1ID 1Declined23
2524/08/2019Broker 2ID 1Approved24
2625/08/2019Broker 2ID 1Approved25
2726/08/2019Broker 2ID 1Declined26
2827/08/2019Broker 1ID 1Pending27
2928/08/2019Broker 2ID 2Approved28
3029/08/2019Broker 1ID 1Declined29
3130/08/2019Broker 2ID 1Approved30
Last 10




If less than 10 is a possibility, I would add a helper cell, H4 below, and use this modified formula in J2 across and down.

Excel Workbook
ABCDEFGHIJKLMN
1DateSubmitting BrokerSubmission IDStatusLoan AmountDateSubmitting BrokerSubmission IDStatusLoan Amount
21/08/2019Broker 1ID 2Approved1StatusApproved=$H$2)*(Table1:]=$H$3)),$H$4+1-ROWS(J$2:J2))))]1/08/2019Broker 1ID 2Approved1
32/08/2019Broker 2ID 1Approved2Submitting BrokerBroker 113/08/2019Broker 1ID 1Approved13
43/08/2019Broker 1ID 1Pending3Count2
54/08/2019Broker 2ID 1Approved4
65/08/2019Broker 1ID 1Declined5
76/08/2019Broker 2ID 1Pending6
87/08/2019Broker 2ID 1Approved7
98/08/2019Broker 2ID 1Declined8
109/08/2019Broker 1ID 1Pending9
1110/08/2019Broker 2ID 2Approved10
1211/08/2019Broker 1ID 1Declined11
1312/08/2019Broker 2ID 1Pending12
1413/08/2019Broker 1ID 1Approved13
1514/08/2019Broker 2ID 1Declined14
1615/08/2019Broker 1ID 1Pending15
1716/08/2019Broker 2ID 1Approved16
1817/08/2019Broker 1ID 1Declined17
1918/08/2019Broker 2ID 1Approved18
2019/08/2019Broker 2ID 1Approved19
2120/08/2019Broker 2ID 1Declined20
2221/08/2019Broker 1ID 1Pending21
2322/08/2019Broker 2ID 1Approved22
2423/08/2019Broker 1ID 1Declined23
2524/08/2019Broker 2ID 1Approved24
2625/08/2019Broker 2ID 1Approved25
2726/08/2019Broker 2ID 1Declined26
2827/08/2019Broker 1ID 1Pending27
2928/08/2019Broker 2ID 2Approved28
3029/08/2019Broker 1ID 1Declined29
3130/08/2019Broker 2ID 1Approved30
Last 10
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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