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?

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]

Want to read more?

Check out the full article on the original site

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