IFS with Error

Hello,

Please help with the expression bellow

IFS(
AND(
ISBLANK(
[EXPEDITION DATE]),
ISBLANK(
[SHIPPING ARRIVAL DATE]),
ISBLANK(
[SHIPPING RECEPTION DATE])),โ€œNOT SHIPPEDโ€,
AND(
ISNOTBLANK(
[EXPEDITION DATE]),
ISBLANK(
[SHIPPING ARRIVAL DATE]),
ISBLANK(
[SHIPPING RECEPTION DATE])),โ€œSHIPPEDโ€,
AND(
ISNOTBLANK(
[EXPEDITION DATE]),
ISNOTBLANK(
[SHIPPING ARRIVAL DATE]),
ISBLANK(
[SHIPPING RECEPTION DATE])),โ€œARRIVEDโ€,
AND(
ISNOTBLANK(
[EXPEDITION DATE]),
ISNOTBLANK(
[SHIPPING ARRIVAL DATE]),
ISNOTBLANK(
[SHIPPING RECEPTION DATE])),โ€œRECIEVEDโ€,
AND(
([EXPEDITION DATE])>TODAY()),
ISBLANK(
[SHIPPING ARRIVAL DATE]),
ISBLANK(
[SHIPPING RECEPTION DATE])),โ€œBOOKEDโ€,
)

Many thanks

0 2 257
2 REPLIES 2

IFS(
AND(
ISBLANK(
[EXPEDITION DATE]),
ISBLANK(
[SHIPPING ARRIVAL DATE]),
ISBLANK(
[SHIPPING RECEPTION DATE])),โ€œNOT SHIPPEDโ€,
AND(
ISNOTBLANK(
[EXPEDITION DATE]),
ISBLANK(
[SHIPPING ARRIVAL DATE]),
ISBLANK(
[SHIPPING RECEPTION DATE])),โ€œSHIPPEDโ€,
AND(
ISNOTBLANK(
[EXPEDITION DATE]),
ISNOTBLANK(
[SHIPPING ARRIVAL DATE]),
ISBLANK(
[SHIPPING RECEPTION DATE])),โ€œARRIVEDโ€,
AND(
ISNOTBLANK(
[EXPEDITION DATE]),
ISNOTBLANK(
[SHIPPING ARRIVAL DATE]),
ISNOTBLANK(
[SHIPPING RECEPTION DATE])),โ€œRECIEVEDโ€,
AND((
([EXPEDITION DATE])>TODAY()),
ISBLANK(
[SHIPPING ARRIVAL DATE]),
ISBLANK(
[SHIPPING RECEPTION DATE])),โ€œBOOKEDโ€,
)

this one should be the solution

I would strongly encourage you to include a default statement as well. You do that by implementing the last condition/value pair as:

true, "Some Default Value"

in your case that might be:

true, "UNKNOWN"

This will make it much easier when problem troubleshooting to identify that your IFS() did not match any of the above criteria and that you need to look at the state of the other columns.

If you just let it default to blank, the tendency is to think that the system didnโ€™t call your IFS() expression and youโ€™ll spend hours trying to figure out why your expression didnโ€™t execute until you finally realize that your columns were in a state that didnโ€™t meet any of the IFS() criterion.

Top Labels in this Space