Help

Re: Two IF formulas work apart but not together πŸ’”

Solved
Jump to Solution
1285 0
cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 
Rom
4 - Data Explorer
4 - Data Explorer

I need some Airtable Formula help. I am trying to merge the below. I’ve been looking at it so long I can’t work out what is going on any more!

This works:

IF({Rejected}, IF({Rejection Reason}=β€œUnresponsive”,β€œUnresponsive”,
IF({Rejected}, IF({Rejection Reason}!=β€œUnresponsive”,β€œRejected”))))

And this does too:

IF(Rejected}=BLANK(),IF({Status 1}+{Status 2}=2,β€œDone”,
IF(Rejected}=BLANK(),IF({Status 1}+{Status 2}=1,β€œOne of two”,
IF(Rejected}=BLANK(),IF({Status 1}+{Status 2}=0,β€œPending”
))))))

However, if I put them together, then it only displays the results of the first 2 lines.

If I switch it around so the 3 lines goes first, then it only displays the results of the 3 lines.

Not sure why but any help gratefully received. :pray:

1 Solution

Accepted Solutions
Kamille_Parks
16 - Uranus
16 - Uranus

Try this:

IF({Rejected}, IF({Rejection Reason}="Unresponsive", "Unresponsive", "Rejected"), IF({Rejected=BLANK(), SWITCH({Status 1}+{Status 2}, 2, "Done", 1, "One of Two", "Pending")))

See Solution in Thread

3 Replies 3
Kamille_Parks
16 - Uranus
16 - Uranus

Try this:

IF({Rejected}, IF({Rejection Reason}="Unresponsive", "Unresponsive", "Rejected"), IF({Rejected=BLANK(), SWITCH({Status 1}+{Status 2}, 2, "Done", 1, "One of Two", "Pending")))

Rom
4 - Data Explorer
4 - Data Explorer

Fantastic! That works perfectly. Thank you so much.

Any idea why the way I tried didn’t work?

If I had to guess, I’d say it was something to do with how you combined the formulas, likely improper nesting. Simplifying redundant IF() statements usually makes it easier to see where the different pieces of a complicated formula go.