cant get IF command to work

%3CLINGO-SUB%20id%3D%22lingo-sub-656230%22%20slang%3D%22en-US%22%3Ecant%20get%20IF%20command%20to%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-656230%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20make%20a%20certain%20cell%20contingent%20on%20two%20different%20cells%20using%20the%20IF%20command.%20My%20formula%20is%20IF(G28%3D%22%23REF!%22%2CG34%2CG28).%20where%20G34%20contains%20the%20word%20%22steel%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20goal%20is%20that%20if%20the%20value%20G28%20is%20supposed%20to%20contain%20isnt%20available%20for%20reference%20then%20to%20use%20the%20other%20cell%20but%20it%20isn't%20working.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-656230%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-656322%22%20slang%3D%22en-US%22%3ERe%3A%20cant%20get%20IF%20command%20to%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-656322%22%20slang%3D%22en-US%22%3E%3CP%3ENevermind%2C%20i%20discovered%20the%20IFERROR%20command%2C%20which%20was%20what%20i%20actually%20needed%20to%20use.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I'm trying to make a certain cell contingent on two different cells using the IF command. My formula is IF(G28="#REF!",G34,G28). where G34 contains the word "steel".

 

The goal is that if the value G28 is supposed to contain isnt available for reference then to use the other cell but it isn't working.

1 Reply

Nevermind, i discovered the IFERROR command, which was what i actually needed to use.