IF THEN ELSE FORMULA

%3CLINGO-SUB%20id%3D%22lingo-sub-2532908%22%20slang%3D%22en-US%22%3EIF%20THEN%20ELSE%20FORMULA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2532908%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20having%20trouble%20trying%20to%20create%20a%20formula.%26nbsp%3B%20I%20want%20an%20if%20then%20else%20formula.%26nbsp%3B%20here%20is%20what%20I%20put%20in%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3Dif%20C9%3CD9%20then%3D%22%22%20d9%3D%22%22%20else%3D%22%22%20c9.%3D%22%22%3E%3C%2FD9%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20I%20get%20some%20direction%20from%20someone%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2532908%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2532947%22%20slang%3D%22en-US%22%3ERe%3A%20IF%20THEN%20ELSE%20FORMULA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2532947%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1099750%22%20target%3D%22_blank%22%3E%40RicBanister%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPerhaps%20you're%20looking%20for%20this%20formula%3F%3C%2FP%3E%3CPRE%3E%3DIF(C9%26lt%3BD9%2CD9%2CC9)%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I am having trouble trying to create a formula.  I want an if then else formula.  here is what I put in:

 

=if C9<D9 then D9 else C9.  The cell then puts a:  #NAME? 

 

Can I get some direction from someone?

 

Thanks

2 Replies

Hello @RicBanister,

 

Perhaps you're looking for this formula?

=IF(C9<D9,D9,C9)

 

@RicBanister 

Or

=MAX(C9,D9)