ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Validate date within range prior to calculation (https://www.excelbanter.com/excel-discussion-misc-queries/66962-validate-date-within-range-prior-calculation.html)

Natassja

Validate date within range prior to calculation
 
I am wondering if I am able to validate a date is less than or greater than
two other dates prior to a calculation being preformed?

--
Natassja Kez

Debra Dalgleish

Validate date within range prior to calculation
 
You could check the date in the formula. For example, with dates in B3,
D3 and F3:

=IF(AND(B3<D3,B3<F3),G3+H3,"Invalid date")

Natassja wrote:
I am wondering if I am able to validate a date is less than or greater than
two other dates prior to a calculation being preformed?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com