I've been trying to figure out a way to add another IF in the below formula but can't wrap my head around the impact of the variable cell, F41 in this case, then would go down one row to F42, F43, etc...
I've read up on putting it to VBA or using Named Ranges but the variable cells throw me off.
=IF(F41="","",IF(F41=$AE$27,MAX(H41,$V$13*I41),IF(F41=$AE$28,MAX(MAX(,$V$13 ,$B$22*E41,$D$14)*I41,H41),IF(F41="Container",H41*I41,IF(F41="flat",H41,IF( F41="CBM",MAX(MAX($V$13/E41,$B$22)*I41,H41),MAX(MAX($V$13,$B$22*E41)*I41,H41,$D$22)))))))
any ideas? the first IF F41="" is important for esthetics purposes