Hi,
I have a spreadsheet I am using to track expiration dates of employee qualifications.
We are tracking the earliest expiration date of all the qualifications, however some expiration dates only need to be returned if another qualification is held.
There is an existing formula using MIN which worked fine:
=IF(M8="",MIN(T8:AA8),MIN(O8:AS8))
If a qualification is not held in Column M, earliest date is returned from the range T:AA
If a qualification IS held in Column M, earliest date is returned from the range O:AS
I have added an additional qualification which is complicating things. I've tried a couple of formulas and I can no longer get the date I want to be returned.
One formula returns a #VALUE error, the other returns an unwanted expiration date...
If Column M is blank and qualification in Column AN is not required, return earliest expiration date from range T:AA and Column AP
If Column M is blank and qualification in Column AN is required, return earliest expiration date from range T:AA, Column AP and Column AS
If Column M is NOT blank (e.g. qualification held) and qualification in Column AN is NOT required, return earliest expiration date from range O:AP
If Column M is NOT blank (e.g. qualification held) and qualification in Column AN is required, return earliest expiration date from all qualifications (range O:AS)
Here are the two formulas I have tried...
=IF(AND(M10="",AQ10="<>REQUIRED"),MIN(T10:AA10,AP10),
IF(AND(M10="",AQ10="REQUIRED"),MIN(T10:AA10,AP10,AS10),
IF(AND(M10="<>",AQ10="<>REQUIRED"),MIN(O10:AP10),
MIN(O10:AS10))))
This returns a date from the range AB:AP even if Column M is blank and Column AQ does not equal REQUIRED. It should only return a date from the range T:AA.
The other formula is similar but returns a #VALUE error and I have no idea why!!
=IF(AND(M10="",AQ10="<>REQUIRED"),MIN(T10:AA10,AP10)),
IF(AND(M10="",AQ10="REQUIRED"),MIN(T10:AA10,AP10,AS10)),
IF(AND(M10="<>",AQ10="<>REQUIRED"),MIN(O10:AP10)),
IF(AND(M10="<>",AQ10="REQUIRED"),MIN(O10:AS10)),
Hope this makes sense...
Thanks for any assistance you could provide.
I have a spreadsheet I am using to track expiration dates of employee qualifications.
We are tracking the earliest expiration date of all the qualifications, however some expiration dates only need to be returned if another qualification is held.
There is an existing formula using MIN which worked fine:
=IF(M8="",MIN(T8:AA8),MIN(O8:AS8))
If a qualification is not held in Column M, earliest date is returned from the range T:AA
If a qualification IS held in Column M, earliest date is returned from the range O:AS
I have added an additional qualification which is complicating things. I've tried a couple of formulas and I can no longer get the date I want to be returned.
One formula returns a #VALUE error, the other returns an unwanted expiration date...
If Column M is blank and qualification in Column AN is not required, return earliest expiration date from range T:AA and Column AP
If Column M is blank and qualification in Column AN is required, return earliest expiration date from range T:AA, Column AP and Column AS
If Column M is NOT blank (e.g. qualification held) and qualification in Column AN is NOT required, return earliest expiration date from range O:AP
If Column M is NOT blank (e.g. qualification held) and qualification in Column AN is required, return earliest expiration date from all qualifications (range O:AS)
Here are the two formulas I have tried...
=IF(AND(M10="",AQ10="<>REQUIRED"),MIN(T10:AA10,AP10),
IF(AND(M10="",AQ10="REQUIRED"),MIN(T10:AA10,AP10,AS10),
IF(AND(M10="<>",AQ10="<>REQUIRED"),MIN(O10:AP10),
MIN(O10:AS10))))
This returns a date from the range AB:AP even if Column M is blank and Column AQ does not equal REQUIRED. It should only return a date from the range T:AA.
The other formula is similar but returns a #VALUE error and I have no idea why!!
=IF(AND(M10="",AQ10="<>REQUIRED"),MIN(T10:AA10,AP10)),
IF(AND(M10="",AQ10="REQUIRED"),MIN(T10:AA10,AP10,AS10)),
IF(AND(M10="<>",AQ10="<>REQUIRED"),MIN(O10:AP10)),
IF(AND(M10="<>",AQ10="REQUIRED"),MIN(O10:AS10)),
Hope this makes sense...
Thanks for any assistance you could provide.