2 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

How can I search for a name in a table first by number associated and then by date?

Our take

To effectively track who last took out a numbered key, you can enhance your existing XLOOKUP function by integrating it with the MAX function to target the most recent date associated with each key. By creating a combined formula, you can input a key number and retrieve the name linked to the latest record. This approach will streamline your data retrieval process and ensure accuracy in identifying the last person who accessed a specific key.

I'm trying to create a tracker that would allow me to see who last took out a numbered key. I want to create a table in which each row is a record of when a numbered key was taken out and then returned.

I am currently using an XLOOKUP function to find a name associated with a key number. So you can see in the example that key 1 has two records, one for Bobby and one for Timmy. But Timmy took it out last and it's pulling Bobby's name.

I also used a MAX function in K6 to pull the latest date from the Date Issued column.

I essentially want to combine these so that I can input a number and it searches for the record associated with that number, and then searches those records for the most recent date and provides me with the name for that.

https://preview.redd.it/l9vx5u7cmexg1.png?width=1143&format=png&auto=webp&s=fd598f98cbb5cfba26f3e18371108d292d2db3e0

I have taken some classes on excel but I have never had to do anything quite like this, so I'm not sure if there is a better way to do this. I am asking how to combine the XLOOKUP and MAX but if there is another function that would better suite this search type please let me know.

submitted by /u/Gorphon
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Tagged with

#Excel alternatives for data analysis#natural language processing for spreadsheets#generative AI for data analysis#financial modeling with spreadsheets#Excel compatibility#Excel alternatives#rows.com#row zero#XLOOKUP#MAX function#tracker#numbered key#record#Date Issued#search#table#key number#latest date#most recent date#associate