fingermouse
Board Regular
- Joined
- Dec 13, 2013
- Messages
- 117
Hi,
as per the title, I have created a formula which does the following:
• results in 'pass' if either 'PAS2030:2014' or 'PAS2030:2017' is entered in Q2
• results in 'n/a' - PAS exception' if 'n/a' is entered in Q2
• results in 'fail - invalid' if anything other than the above is entered in Q2
• results in 'fail - blank' if AR2 is blank
This is the formula:
The above works perfectly. However i want to extend the formula by adding date validation but don't know exactly how or where to place it in the formula. This is what I need:
If the user enters 'PAS2030:2014' in Q2 but also enters a date less than 01/06/17 in another cell (AL2) then this results in "Fail - a DOCI after 31/05/17 must use PAS2030:2017"
I'm guessing this part of the formula should be something like this:
But I don't know how to place it into the existing formula. How could this be done? Please help!! Thanks, Cal
as per the title, I have created a formula which does the following:
• results in 'pass' if either 'PAS2030:2014' or 'PAS2030:2017' is entered in Q2
• results in 'n/a' - PAS exception' if 'n/a' is entered in Q2
• results in 'fail - invalid' if anything other than the above is entered in Q2
• results in 'fail - blank' if AR2 is blank
This is the formula:
Code:
=IF(ISBLANK('Data Area'!AR2),"Fail - Measure Type is blank",IF(ISNA(MATCH('Data Area'!AR2,PAS_Exception_Measures,0)),IF(OR('Data Area'!Q2="PAS2030:2014",'Data Area'!Q2="PAS2030:2017"),"Pass",IF(OR('Data Area'!Q2="N/A"),"N/A - PAS Exception",IF(ISBLANK('Data Area'!Q2),"Fail - PAS is blank","Fail - PAS Invalid")))))
The above works perfectly. However i want to extend the formula by adding date validation but don't know exactly how or where to place it in the formula. This is what I need:
If the user enters 'PAS2030:2014' in Q2 but also enters a date less than 01/06/17 in another cell (AL2) then this results in "Fail - a DOCI after 31/05/17 must use PAS2030:2017"
I'm guessing this part of the formula should be something like this:
Code:
=IF(AND(VALUE('Data Area'!AL2)<42887,"Fail - a DOCI after 31/05/17 must use PAS2030:2017"))
But I don't know how to place it into the existing formula. How could this be done? Please help!! Thanks, Cal