XLOOKUP and FILTER: Help Sorting the Results

atypicalguy

New Member
Joined
Jun 11, 2024
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hey you fabulous excel champs,

Received fantastic help on my last post so I'm back with two more questions I'm hoping this brilliant community could help me with:

Formula 1.)
Excel Formula:
=XLOOKUP([@[Equip. SN]],Table1[[#All],[Equip. SN]],Table1[[#All],[Latest Due Date]],,,-1)

I'm using this formula to find the most-recent date an xray machine was last tested, linking/searching/referencing by the equipment serial number. The "-1" works fine, sorting it by the most recent entry it pulls from the raw data/source, but not if I'm putting in older data - it seems like the "-1" interprets this as the most recent, instead of actually using the date.

Is there a MAX( or other function that would work in sorting it by the biggest date it can link with that serial number?

Formula 2.)
Excel Formula:
=FILTER(Table1[#All],((Table1[[#All],[Next QAT Due On]]<L21+40)))

I'm using this formula to highlight the xray machines that are past due/coming up due for quality assurance testing.

Is there a way to group these clinics by name regardless of date - while still keeping the parameter of +40 days past the present day (L21)?

Thanks again!
 
You're welcome & thanks for the feedback.
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,223,937
Messages
6,175,512
Members
452,650
Latest member
Tinfish

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