I am trying to make a form where if Column B contains "Carcass" or "Benchtop" then Column H will show E * F * G/1000000
But if it shows Misc or Hardware etc, it will show Column G
Otherwise it will return a Blank result if nothing matches.
I've tried multiple different Functions, the most luck I've had was with IF and OR but it doesn't exactly work correctly. This is a function I used that did work until I added more Results to search.
=IFS((B4:B20={"Carcass","Benchtop"}),(E4:E20 * F4:F20 * G4:G20)/1000000,
OR(B4:B20={"Misc","Doors"}),G4:G20)




Your
B4:B20={"Carcass","Benchtop"}returns 2D array that is why you get#SPILL!error.Something like this would work:
Or
if you want to do calculation for "Carcass" and "Benchtop", show blank for empty rows and show
Gfor every otherBvalue than "Carcass", "Benchtop" or blank.