I use a lot of nest if formulas and they can get quite cumbersome.
I have a setup page in a workbook that has a table for maximum length, and overlap length and a wastage length for scores of different materials.
Here is an example formula that finds the quantity of pieces based on a total lineal metre figure:
=IF(R9=”“,”“,(IF(V9>(2*(VLOOKUP-VLOOKUP)),ROUNDUP)+V9)/VLOOKUP),0),IF(V9>(2*(VLOOKUP-VLOOKUP)),ROUNDUP)+V9)/VLOOKUP),0),IF(V9>(2*(VLOOKUP-VLOOKUP)),ROUNDUP)+V9)/VLOOKUP),0),IF(V9>(2*(VLOOKUP-VLOOKUP)),ROUNDUP)+V9)/VLOOKUP),0),IF(V9>(2*(VLOOKUP-VLOOKUP)),ROUNDUP)+V9)/VLOOKUP),0),IF(V9>(2*(VLOOKUP-VLOOKUP)),ROUNDUP)+V9)/VLOOKUP),0),IF(V9>(1*VLOOKUP),ROUNDUP)+V9)/VLOOKUP),0),1)))))))))
And here is a complimentary formula that finds the actual length of the members from the total lineal metre figure.
=IF(R9=”“,”“,SUM – VLOOKUP)),ROUNDUP+VLOOKUP),-2),IF(V9>(6*(VLOOKUP – VLOOKUP)),ROUNDUP+VLOOKUP),-2),IF(V9>(5*(VLOOKUP – VLOOKUP)),ROUNDUP+VLOOKUP),-2),IF(V9>(4*(VLOOKUP – VLOOKUP)),ROUNDUP+VLOOKUP),-2),IF(V9>(3*(VLOOKUP – VLOOKUP)),ROUNDUP+VLOOKUP),-2),IF(V9>(2*(VLOOKUP – VLOOKUP)),ROUNDUP+VLOOKUP),-2),IF(V9>(1*VLOOKUP),ROUNDUP+VLOOKUP),-2),ROUNDUP)))))))))
I am wondering if there is a simpler way to acheive this? My spreadsheet is getting a bit too cumbersome and I might need to start again but I want to make sure I break down each aspect and make it as simple as possible. For each product type I have allowed 50 different entries for total lineal metres.
This is only a very small part of what the spreadsheet does. I also have created a method of finding all like materials, summing the same lengths and then combining them into lengths in decending order IE: 23/6000mm, 34/5400mm, 12/4800mm
Does anyone have any idea on how to simplify my calcs or am I suck with nested if formulas?