HELP with nest "IF(AND" Formula to determine structure size

bfuentes1412

New Member
Joined
Apr 21, 2010
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm trying to figure out a formula to determine a structure size (Q5) based on the total value of cells J6:N6 along with the value in P5. I partially can get it to work using nested "IF(AND.." but can't figure out how to mix in the "Cable Trench" and "2 banks of "*"" into the formula to make it work.

Here's the criteria... If the total value of J6:N6 is >4 and P5 is <=500, then 6x8'6".. If J6:N6 is <4 and P5 is <=500, then 92x74, IF J6:N6 is >4 and P5 is >500, then 8x10, IF ANY value in J6:N6 is = 2 banks of "*", then 8x10 (XFMR size doesn't matter), IF ANY value in J6:N6 = Cable Trench, then 10x12 (XFMR size doesn't matter). In the example provided, Q5 should return "10x12" b/c N6 list's "CABLE TRENCH".

Please let me know if I need to add more info or provide clarification. Thank you!

All in One Calculator v2.xlsm
IJKLMNOPQRS
3panel 1panel 2panel 3 panel 4 panel 5xfmr sizestructurestructure size
492x74
5duct size4"4"4"4"24x365006x8'6"6x8'6"
6# of duct1112CABLE TRENCH8x10
710x12
Sheet2
Cell Formulas
RangeFormula
Q5Q5=IF(AND(SUM(J6:N6)>4,P5<=500),S5,IF(AND(SUM(J6:N6)<=4,P5<=500),S4,IF(AND(SUM(J6:N6)>4,P5>500),S6,IF(AND(SUM(J6:N6)<=4,P5>500),S6,S7))))
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
There is a detail in your criteria, if the sum is <4 and P5 > 500, then you are not putting a result. With the following formula I am returning "None" for that.


Excel Formula:
=LET(a,J6:N6,b,SUM(a),c,CONCAT(a),IF(ISNUMBER(SEARCH("2 banks of ""*""",c)),S6,IF(ISNUMBER(SEARCH("CABLE TRENCH",c)),S7,IF(AND(b>4,P5>500),S6,IF(AND(b>4,P5<=500),S5,IF(AND(b<4,P5<=500),S4,"None"))))))




--------------
Let me know the result and I'll get back to you as soon as I can.
Cordially
Dante Amor
--------------​
 
Last edited:
Upvote 0
@DanteAmor.. Found 1 issue... if I enter "2 banks of "*"" and also enter "Cable Trench" in another cell, it doesn't change to 10x12. It defaults to the size for the 2 banks. The cable trench should supersede the 2 banks.
 
Upvote 0
Try:

Excel Formula:
=LET(a,J6:N6,b,SUM(a),c,CONCAT(a),IF(ISNUMBER(SEARCH("CABLE TRENCH",c)),S7,IF(ISNUMBER(SEARCH("2 banks of ""*""",c)),S6,IF(AND(b>4,P5>500),S6,IF(AND(b>4,P5<=500),S5,IF(AND(b<4,P5<=500),S4,"None"))))))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top