Reference issue perhaps? I need help please

%3CLINGO-SUB%20id%3D%22lingo-sub-1628812%22%20slang%3D%22en-US%22%3EReference%20issue%20perhaps%3F%20I%20need%20help%20please%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1628812%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20having%20an%20issue%20as%20to%20figure%20out%20how%20to%20make%20this%20work.%20Any%20help%20would%20be%20appreciated.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20certain%20numbers%20that%20refer%20to%20the%20measurement%20of%20my%20fence%20gate%20height(H%22)%20that%20I%20type%20in%20a%20certain%20cell%20(48%2C60%2C72%20inches).%20The%2048%20and%2060%20inch%20numbers%20require%202%20horizontal%20rails%20per%20gate%20as%20shown%20in%20pic.%20The%2072%20inch%20number%20requires%203%20horizontal%20rails.%20This%20is%20the%20issue.%20How%20do%20I%20get%20the%2072%20to%20multiply%20by%203%20per%20number%20of%20gate%20qty%20entered%20and%20still%20multiply%20by%202%20when%2048%20and%2060%20is%20imputed%3F%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%22Annotation%202020-09-02%20140305.jpg%22%20style%3D%22width%3A%20632px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F216110iE2A25AEBADFE331E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Annotation%202020-09-02%20140305.jpg%22%20alt%3D%22Annotation%202020-09-02%20140305.jpg%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1628812%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-1629068%22%20slang%3D%22en-US%22%3ERe%3A%20Reference%20issue%20perhaps%3F%20I%20need%20help%20please%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1629068%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F779945%22%20target%3D%22_blank%22%3E%40rkolenda%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20RK%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAssuming%20the%20gate%20H%20is%20in%20cell%20h3%20and%20the%20gate%20quantity%20is%20in%20k3%2C%3C%2FP%3E%3CP%3EIn%20the%20QTY%20cell%20put%3C%2FP%3E%3CP%3E%3D%20IF(OR(H3%3D48%2CH3%3D60)%2C2%2CIF(H3%3D72%2C3%2C0))*K3%3C%2FP%3E%3CP%3EAdjust%20for%20you%20actual%20cells.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am having an issue as to figure out how to make this work. Any help would be appreciated. 

 

I have certain numbers that refer to the measurement of my fence gate height(H") that I type in a certain cell (48,60,72 inches). The 48 and 60 inch numbers require 2 horizontal rails per gate as shown in pic. The 72 inch number requires 3 horizontal rails. This is the issue. How do I get the 72 to multiply by 3 per number of gate qty entered and still multiply by 2 when 48 and 60 is imputed? 

 

Annotation 2020-09-02 140305.jpg 

 

 

 

 

 

2 Replies

@rkolenda 

Hi RK,

 

Assuming the gate H is in cell h3 and the gate quantity is in k3,

In the QTY cell put

= IF(OR(H3=48,H3=60),2,IF(H3=72,3,0))*K3

Adjust for you actual cells.

Thank you so much @SqueakySneakers 

 

It works perfectly! I am learning as I go and hope to improve with time.