Jan 21, 2021 04:12 PM
Hello Community,
I am struggling with a formula which I thought would have been easy and I would need some help:
What I am trying to achieve is: if column a is empty, return value A but if Column B is empty, return value B, but if Column A contains the value X in the string, return X.
This is what I have been trying so far:
IF(({COLUMN Al} = BLANK(), “VALUE A”, IF({COLUMN B} =BLANK(), “VALUE B”, IF(FIND(“X”, {COLUMN A), “X”)))
My problem is that even if the formula doesn’t trigger an error, I am not getting the result connected to the last part IF(FIND(“X”, {COLUMN A), “X”)))
What am I doing wrong, please?
Solved! Go to Solution.
Jan 23, 2021 03:30 PM
Hey, I managed to obtain the result I was looking for with this formula:
IF({Customer Email} !="", “Direct”, IF(FIND(“resellername”, {Reseller Email}), “Reseller Name”, “Reseller”))
Thank you so much @ScottWorld for putting me on the right track!
Jan 21, 2021 05:35 PM
You’re missing a closing parenthesis after your FIND function.
Extracting just your final IF statement, it should look like this:
IF(FIND("X", {COLUMN A}), "X")
Jan 22, 2021 04:04 AM
Hi @ScottWorld thanks for looking into this and for your reply.
Sorry but there was a typo when I copied and pasted the formula. To make things clearer, I have created a base: Airtable - Grid view
What I would like to achieve is:
3 works if I don’t add the other IF conditions but I have no idea why the whole formula doesn’t.
This is the formula I am using:
IF({Reseller Email} = BLANK(), “Direct Order”, IF({Customer Email} =BLANK(), “Reseller Order”, IF(FIND(“resellername”, {Reseller Email}), “Reseller Name” )))
Thanks
Jan 22, 2021 08:33 AM
Instead of making those fields equal to BLANK(), make them equal to ""
.
Jan 23, 2021 02:06 PM
HI @ScottWorld,
Thanks for your follow up. Unfortunately, I am still not getting the desired outcome:
If I use this formula:
IF({Reseller Email} = " ", “Direct Order”, IF({Customer Email} = " ", “Reseller Order”, IF(FIND(“resellername”, {Reseller Email}), “Reseller Name” )))
The IF(FIND(“resellername”, {Reseller Email}), “Reseller Name” ))) part works but the first IFs don’t.
If instead I use this formula:
IF({Reseller Email} = “”, “Direct Order”, IF({Customer Email} = “”, “Reseller Order”, IF(FIND(“resellername”, {Reseller Email}), “Reseller Name” )))
The first 2 conditions work but the last one doesn’t.
Basically the only difference between the 2 formulas is that in the second one there is no space between the quotes ("") and in the first one there is a space (" ")
Would you have any idea, please?
Jan 23, 2021 03:30 PM
Hey, I managed to obtain the result I was looking for with this formula:
IF({Customer Email} !="", “Direct”, IF(FIND(“resellername”, {Reseller Email}), “Reseller Name”, “Reseller”))
Thank you so much @ScottWorld for putting me on the right track!
Jan 23, 2021 05:41 PM
Glad I could help, and glad you figured it out! :slightly_smiling_face: