Is there a way to use the MAX function based on conditional data? I have two spreadsheets. One contains all orders entered for a certain time period and the other spreadsheet contains a list of customers. I want to enter a formula that will look at the customer name and then return the highest order number for that customer. Is there a way to do that?