This is a formula in a spreadsheet I have made for calculating component sizes for cutting panels out of mdf:
=IF((E7=0),(C7+D7-4),(C7+D7+E7-8 ))
This works fine as long as there are values in C7 & D7, but my problem is that if I want to leave a row blank (to create a break between different sets of items) then the formula will give a value of -4, which messes up the total when I add the column. I'm sure there must be a way around this but it's making my brain ache trying to see it, can anyone help?
=IF((E7=0),(C7+D7-4),(C7+D7+E7-8 ))
This works fine as long as there are values in C7 & D7, but my problem is that if I want to leave a row blank (to create a break between different sets of items) then the formula will give a value of -4, which messes up the total when I add the column. I'm sure there must be a way around this but it's making my brain ache trying to see it, can anyone help?