I have a table that looks something like this in Google Sheets:
A | B | C | |
---|---|---|---|
2 | Others | Maufacturing | Manufacturing |
3 | Manufacturing | MAnufacturing | Manufacturing |
4 | Others | Others | Others |
5 | Others | Others |
I want to add a formula in column C that will return:
- IF
A2="Others"
return the value inB2
. SinceB2="Manufacturing"
henceC2="Manufacturing"
- IF
A3="Manufacturing"
return the value inA3
. HenceC3="Manufacturing"
- If
A4="Others"
andB4="Others"
returnB4
. HenceC4="Others"
- If
A5="Others" and
B5=""return
A5. Hence
C5="Others"`
There are 100s of unique values in column A.
I have tried the following formula:
=IFS(ISBLANK(A2), "",
OR(A2="Manufacturing", A2="Manufacturer"), "Manufacturing",
OR(A2="Others", A2="Other"), "Others" )
"Others"
actually a placeholder for multiple different values in your table? e.g."Others" = OR("Other01", "Other02", "Other03", "Other04", etc.)
and why do you mention"Manufacturer"
in your formula? Is that another placeholder for an array of possible values? PS: I added in the missing double quotes and closing bracket to your formula so that it doesn't error out.