Home

Need help with an Excel Formula

%3CLINGO-SUB%20id%3D%22lingo-sub-751001%22%20slang%3D%22en-US%22%3ENeed%20help%20with%20an%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751001%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20to%20input%20a%20formula%20into%20cell%20B2%20that%20will%20take%20the%20value%20from%20A2%20and%20divide%20it%20by%20a%20set%20figure%20if%20it%20is%20less%20than%2C%20equal%20to%20or%20great%20than%20a%20set%20parameter...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eexample%3A%20if%20the%20value%20is%20in%20B2%20is%20%26lt%3B10%2C%20then%20%2F.7%2C%20if%20it%20is%20%26gt%3B10%20but%20%26lt%3B30%20then%20%2F.72%2C%20%26gt%3B30%20but%20%26lt%3B60%20then%20%2F.75%2C%20%26gt%3B61%20then%20%2F.8%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-751001%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-751045%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20an%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751045%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F375012%22%20target%3D%22_blank%22%3E%40wunderj%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20suggest%20making%20a%20two%20column%20lookup%20table%20for%20your%20divisors.%20The%20first%20column%20will%20be%20the%20bottom%20of%20each%20bracket%2C%20while%20the%20second%20is%20the%20divisor.%20My%20lookup%20table%20was%20in%20cells%20G2%3AH5%2C%20so%20I%20was%20able%20to%20use%20a%20VLOOKUP%20formula%20in%20cell%20B2%20like%3A%3C%2FP%3E%0A%3CPRE%3E%3DA2%2FVLOOKUP(A2%2CG2%3AH5%2C2)%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123089i2666E286ABB68C9E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-751049%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20an%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751049%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F375012%22%20target%3D%22_blank%22%3E%40wunderj%3C%2FA%3E%26nbsp%3BYou%20may%20use%20below%20formula%20in%20cell%20B2%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DIF(A2%26lt%3B10%2CA2%2F0.7%2CIF(A2%26lt%3B30%2CA2%2F0.72%2CIF(A2%26lt%3B60%2CA2%2F0.75%2CA2%2F0.8)))%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%20style%3D%22width%3A%20764px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123090i5CBDE463B4C361AC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22If%20Formula.JPG%22%20title%3D%22If%20Formula.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-751060%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20an%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751060%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F375012%22%20target%3D%22_blank%22%3E%40wunderj%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsual%20question%20is%20what%20it%20shall%20be%20if%20B2%20is%20equal%20to%2010%2C%20or%2030%2C%20or%2060%2C%20or%2061%3C%2FP%3E%3C%2FLINGO-BODY%3E
wunderj
Occasional Visitor

I need to input a formula into cell B2 that will take the value from A2 and divide it by a set figure if it is less than, equal to or great than a set parameter...

 

example: if the value is in B2 is <10, then /.7, if it is >10 but <30 then /.72, >30 but <60 then /.75, >61 then /.8

3 Replies

@wunderj 

I suggest making a two column lookup table for your divisors. The first column will be the bottom of each bracket, while the second is the corresponding divisor. My lookup table was in cells G2:H5, so I was able to use a VLOOKUP formula in cell B2 like:

=A2/VLOOKUP(A2,G2:H5,2)

image.png

@wunderj You may use below formula in cell B2

 

=IF(A2<10,A2/0.7,IF(A2<30,A2/0.72,IF(A2<60,A2/0.75,A2/0.8)))

 

If Formula.JPG

@wunderj 

Usual question is what it shall be if B2 is equal to 10, or 30, or 60, or 61

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies