Maximum Value Based on a Condition
问题 I have a mock dataset in Excel that I want to print the most recent date, but I want it to be the latest date such that the Type is "referral": Type Date referral 1/6/2017 classroom 1/7/2017 referral 1/8/2017 classroom 1/9/2017 What would that function look like? 回答1: You can use an array formula like this (assuming your columns are A and B): =MAX(IF(A2:A5="referral",B2:B5)) and enter it by pressing Ctrl + Shift + Enter (CTRL+SHIFT+ENTER). When entered by Ctrl + Shift + Enter , Excel will put