You cannot reference the color of a single-select option in a formula.
You cannot output the field name in an automated way from a formula.
However, a long and hairy enough nested conditional statement can do many, many things!
You’ll probably need to use more conditional logic within your IF()
statements to achieve what you want - for example, OR()
and AND()
:
For the sake of getting you a quick answer, here’s an example formula I use to produce a status field:
IF(
{Missing?}=TRUE(),
"
Missing",
IF(
AND(
{Picked Up}=FALSE(),
{Dropped Off}=FALSE(),
Stripped=FALSE()
),
"
On Job Site",
IF(
AND(
{Picked Up}=TRUE(),
{Dropped Off}=FALSE(),
Stripped=FALSE()
),
"
Picked Up",
IF(
AND(
{Picked Up}=TRUE(),
{Dropped Off}=TRUE(),
Stripped=FALSE()
),
"
Delivered",
IF(
AND(
{Picked Up}=TRUE(),
{Dropped Off}=TRUE(),
Stripped=TRUE(),
{UnProcessed Samples}!=0
),
"
Stripped/Marked",
IF(
AND(
{Picked Up}=TRUE(),
{Dropped Off}=TRUE(),
Stripped=TRUE(),
{UnProcessed Samples}!=0
),
"
Processed",
"
Sequence Error"
)
)
)
)
)
)
The AND()
statement requires that each comma-separated statement within it evaluates to “True” in order to pass as “True” for the IF()
statement. The OR()
statement requires that at least one of the comma-separated statements within it evaluates to “True” in order to pass as “True” for the IF()
statement. You can use these two in combination to produce variable statuses based on any number of other fields and their conditions.
You’ll need to produce a conditional output for every possible combination of each dropdown field you have, I think.
You cannot reference the color of a single-select option in a formula.
You cannot output the field name in an automated way from a formula.
However, a long and hairy enough nested conditional statement can do many, many things!
You’ll probably need to use more conditional logic within your IF()
statements to achieve what you want - for example, OR()
and AND()
:
For the sake of getting you a quick answer, here’s an example formula I use to produce a status field:
IF(
{Missing?}=TRUE(),
"
Missing",
IF(
AND(
{Picked Up}=FALSE(),
{Dropped Off}=FALSE(),
Stripped=FALSE()
),
"
On Job Site",
IF(
AND(
{Picked Up}=TRUE(),
{Dropped Off}=FALSE(),
Stripped=FALSE()
),
"
Picked Up",
IF(
AND(
{Picked Up}=TRUE(),
{Dropped Off}=TRUE(),
Stripped=FALSE()
),
"
Delivered",
IF(
AND(
{Picked Up}=TRUE(),
{Dropped Off}=TRUE(),
Stripped=TRUE(),
{UnProcessed Samples}!=0
),
"
Stripped/Marked",
IF(
AND(
{Picked Up}=TRUE(),
{Dropped Off}=TRUE(),
Stripped=TRUE(),
{UnProcessed Samples}!=0
),
"
Processed",
"
Sequence Error"
)
)
)
)
)
)
The AND()
statement requires that each comma-separated statement within it evaluates to “True” in order to pass as “True” for the IF()
statement. The OR()
statement requires that at least one of the comma-separated statements within it evaluates to “True” in order to pass as “True” for the IF()
statement. You can use these two in combination to produce variable statuses based on any number of other fields and their conditions.
You’ll need to produce a conditional output for every possible combination of each dropdown field you have, I think.
Thanks Jeremy, that’s what I needed to know. I like the logic, I hadn’t thought of a good way to test for sequence errors, and this seems to nail it. You’ve also given me the idea of swapping out the emojis I was using for an icon like
️ or > that I can use for whatever is considered "in progress. Probably do that before I get to building the monstrous if statement since we’re still changing things around. Cheers.