Jul 20 2022 08:49 AM - edited Jul 20 2022 08:50 AM
I want to check if a column Supplier does not contain the word Amazon, if true then multiply the value of Net by 1.2. This is what I have but it's not working;
=IF(Supplier=NOT("Amazon"),Net*1.2,Net)
It's displaying #Name?
Can someone help please?
Jul 20 2022 11:16 AM
@jonboylib NOT function expects a logical expression. NOT(logical) - meaning it should evaluate to TRUE or FALSE.
Try =IF(ISNUMBER(FIND("Amazon",[Supplier])),Net*1.2,Net)
Jul 21 2022 12:57 AM
@jonboylib Try using below calculated column formula, it should work for you:
=IF(ISNUMBER(FIND("Amazon", [Supplier])), [Net], [Net] * 1.2)
Documentation: Examples of common formulas in lists
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Jul 21 2022 01:55 AM
Jul 21 2022 02:10 AM
@jonboylib You need to add nested IF conditions for that.
Can you explain further about your requirements for adding more names? What should be the calculation (example: Net*1.2) for additional names?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Jul 21 2022 02:22 AM
Jul 21 2022 02:46 AM
@jonboylib How many suppliers you want to search in formula?
You can try below formula:
=IF(OR(ISNUMBER(FIND("Amazon", [Supplier])), ISNUMBER(FIND("Google", [Supplier])), ISNUMBER(FIND("Ebay", [Supplier]))), [Net], [Net] * 1.2)
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Jul 21 2022 06:23 AM
Jul 21 2022 06:45 AM
Solution@jonboylib The logic is, you have to add ISNUMBER(FIND(...)) part for each supplier inside OR() function.
You can have maximum 30 such conditions inside single OR function.
Can you explain further what is your requirement exactly? There might be another way to achieve it.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.