Home

Struggling with IF statement

%3CLINGO-SUB%20id%3D%22lingo-sub-862094%22%20slang%3D%22en-US%22%3EStruggling%20with%20IF%20statement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-862094%22%20slang%3D%22en-US%22%3E%3CP%3ETrying%20to%20get%20a%20range%20function%20to%20multiple%20by%20designated%20amounts%20through%20cell%20values%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIF(AND(D10%26lt%3B%3D24)%2CB16*180%2C%20IF(AND(D10%26gt%3B%3D25%2C%20but%20D10%3D%26lt%3B36)%2CB16*225%2C%20IF(AND(D10%26gt%3B%3D37%2C%20but%20D10%3D%26lt%3B48)%2CB16*250%2C%20IF(AND(D10%26gt%3B%3D49%2C%20but%20D10%3D%26lt%3B60)%2CB16*300%2C%20IF(AND(D10%26gt%3B%3D61)%2CB16*350)))))%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-862094%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-862166%22%20slang%3D%22en-US%22%3ERe%3A%20Struggling%20with%20IF%20statement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-862166%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F411438%22%20target%3D%22_blank%22%3E%40truckbox-us%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPerhaps%20it's%20better%20to%20use%20LOOKUP()%2C%20but%20if%20with%20IF%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DB16*%0AIF(D10%26gt%3B%3D61%2C350%2C%0AIF(D10%26gt%3B%3D49%2C300%2C%0AIF(D10%26gt%3B%3D37%2C250%2C%0AIF(D10%26gt%3B%3D25%2C225%2C%0A180%0A))))%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
truckbox-us
Occasional Visitor

Trying to get a range function to multiple by designated amounts through cell values

 

IF(AND(D10<=24),B16*180, IF(AND(D10>=25, but D10=<36),B16*225, IF(AND(D10>=37, but D10=<48),B16*250, IF(AND(D10>=49, but D10=<60),B16*300, IF(AND(D10>=61),B16*350)))))

1 Reply

@truckbox-us 

Perhaps it's better to use LOOKUP(), but if with IF

=B16*
IF(D10>=61,350,
IF(D10>=49,300,
IF(D10>=37,250,
IF(D10>=25,225,
180
))))

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
21 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies