Data Validation Date In Next 30 Days Excel Formula
To allow only a date in the next 30 days, you can use data validation with a custom formula based on the AND, and TODAY functions. In the example shown, the data validation applied to C5:C7 is: The TODAY function returns today’s date (recalculated an on on-going basis). The AND function takes multiple logical expressions and returns TRUE only when all expressions return TRUE. In this case, we need to test two conditions: The first condition checks that the input is greater than today: The second condition checks that the input is less than today + 30: (Dates are just serial numbers in Excel, so we can simply add 30)....