IF formula needed

%3CLINGO-SUB%20id%3D%22lingo-sub-3389105%22%20slang%3D%22en-US%22%3EIF%20formula%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3389105%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20an%20if%20formula%20for%20this%20situation.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20Debit%20is%20in%20column%20G%2C%20I%20want%20the%20value%20in%20column%20F%20reflected%20in%20column%20H%20as%20a%20negative%20number.%3C%2FP%3E%3CP%3EIf%20Debit%20is%20not%20in%20column%20G%2C%20I%20want%20the%20value%20in%20column%20F%20reflected%20in%20column%20H%20as%20a%20positive%20number.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22alloyd1965_0-1652813699917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F372515i49DD5433228C9BE8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22alloyd1965_0-1652813699917.png%22%20alt%3D%22alloyd1965_0-1652813699917.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3389105%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-3389158%22%20slang%3D%22en-US%22%3ERe%3A%20IF%20formula%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3389158%22%20slang%3D%22en-US%22%3E%3Dif(G2%3D%22debit%22%2Cf2*(-1)%2Cf2)%3C%2FLINGO-BODY%3E
Occasional Visitor

I need an if formula for this situation.  

If Debit is in column G, I want the value in column F reflected in column H as a negative number.

If Debit is not in column G, I want the value in column F reflected in column H as a positive number. 

 

alloyd1965_0-1652813699917.png

 

1 Reply
=if(G2="debit",f2*(-1),f2)