You are correct, either an IF()
or a SWITCH()
will do. Set your {Shipping Cost}
field to be a formula field using either of these:
IF({Product} = "shipping", {Unit Price})
or
SWITCH({Product}, "shipping", {Unit Price})
You’ll also need a similar formula in your {Unit Cost}
field to not show the cost when the product is “shipping.” The IF()
option is easier in this case because you’re trying to exclude that one item.
IF({Product} != "shipping", {Unit Price})
You are correct, either an IF()
or a SWITCH()
will do. Set your {Shipping Cost}
field to be a formula field using either of these:
IF({Product} = "shipping", {Unit Price})
or
SWITCH({Product}, "shipping", {Unit Price})
Thanks! The formulas did not return an error, but they are also not showing the shipping cost in the shipping column. I’m not sure why not…

Thanks! The formulas did not return an error, but they are also not showing the shipping cost in the shipping column. I’m not sure why not…

Can you provide a screenshot showing the {Product}
and {Unit Price}
fields?
Thanks! The formulas did not return an error, but they are also not showing the shipping cost in the shipping column. I’m not sure why not…

I included “shipping” with a lower-case S in my formulas because that’s what you mentioned in your first post. However, looking at the record names, they show “Shipping” with a capital S. Airtable is case-sensitive, so change all “shipping” references in the formulas to “Shipping” and it might work.
If that doesn’t do it, leave that change in, and check the field type of your {Product}
field. If it’s a link, is the full name in the linked record just “Shipping” on its own, or is there other text around it? If it’s the latter, then you’ll need to look for “Shipping” in the linked record name, instead of looking for an exact match to that name. For the {Shipping Cost}
field, the formula would become:
IF(FIND("Shipping", Product), {Unit Price})
But again, only try this second change if the first one (fixing the string case) doesn’t work.