Returning 5 most recent results based on conditions

Status
Not open for further replies.

DJFANDANGO

Board Regular
Joined
Mar 31, 2016
Messages
113
Office Version
  1. 365
Platform
  1. Windows
Guys,

I've managed to get this kind of working (with your help)... but, I need to add more bits...

I need to add reference number and remarks from the audit! AHHHHHHHHHHHH!!!!!!!

I have the problem that sometimes 3 or 4 audits are carried out on the same day, their only difference is the ref number and 'usually' comments...

How do I make this work now?

Many thanks in advance! :)

Book1
ABCDEFGHI
1Return thisThis is okThis is okNeed to return this also…
2Ref#DateAuditedRemarksRef#OutputAuditedRemarks
3Aud-2019-2922/05/2019YesFaulty Line ValveAud-2019-2922/05/2019YESFaulty Line Valve
4Aud-2019-2822/05/2019YESNew Software installedAud-2019-2822/05/2019YESNew Software installed
5Aud-2019-2704/03/2019Aud-2019-2404/03/2019YESReported to Chief Engineer outstanding Issues
6Aud-2019-2404/03/2019YEsReported to Chief Engineer outstanding IssuesAud-2019-2104/03/2019YESCompleted 100%
7Aud-2019-2204/03/2019Aud-2019-1624/02/2019YESNo issues
8Aud-2019-2104/03/2019YesCompleted 100%
9Aud-2019-1724/02/2019
10Aud-2019-1624/02/2019YesNo issues
11Aud-2019-1524/02/2019
12Aud-2019-1424/02/2019YesProblematic gravity sensor
13Aud-2019-1324/02/2019
14Aud-2019-1222/02/2019YesDylythium crystals low in the supercharger
Sheet1
Cell Formulas
RangeFormula
G3:G7G3=IFERROR(AGGREGATE(14,6,$B$3:$B$25/($C$3:$C$25=H3)/(ROWS($G$3:G3)<=5),ROWS(G$3:G3)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Duplicate Pull recent 3 most recent entries

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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