Basically I'm trying to make a formula that spits out a value based on a long series of nested IF statements. Here's what I've written so far. I made a major edit to the formula but it said I had entered too many arguments. Once I removed some extra parentheses it told me the error was fixed but it was still giving me a #VALUE message where it shouldn't have. Here's what I currently have:
'=IF(IF((B31-B32)>0.3,IF(B31<4,B31-(B31-B32)*0.2,IF(B31<4.5,B31-(B31-B32)*0.25,IF(B31<5,B31-(B31-B32)*0.3,IF(B31<5.5,B31-(B31-B32)*0.35,IF(B31<6,B31-(B31-B32)*0.4,IF(B31<=6.5,B31-(B31-B32)*0.45,IF(B31<=7,B31-(B31-B32)*0.5,"Destroy"))))))),IF(B31<4, B31-0.1, IF(B31<=4.5, B31-0.15, IF(B31<=5, B31-0.2, IF(B31<=6, B31-0.25, IF(B31<=7, B31-0.3, IF(B31>7,"Destroy","Error, check formula"))))))) >B31,IF(B31<4,B31,IF(B31<4.5,B31-0.1,IF(B31<5,B31-0.15,IF(B31<6,B31-0.2,IF(B31<=7,B31-0.25, IF(B31>7, "Destroy", "Error, check formula"))))))) ,IF((B31-B32)>0.3,IF(B31<4,B31-(B31-B32)*0.2,IF(B31<4.5,B31-(B31-B32)*0.25,IF(B31<5,B31-(B31-B32)*0.3,IF(B31<5.5,B31-(B31-B32)*0.35,IF(B31<6,B31-(B31-B32)*0.4,IF(B31<=6.5,B31-(B31-B32)*0.45,IF(B31<=7,B31-(B31-B32)*0.5,"Destroy"))))))),B32)
B31 in this case is 5 and B32 is 4. The output is supposed to be 4.65 but we're still getting the #VALUE problem. We were getting the right number at first but then I had to add in something into the formula (see underlined) and that's when we started seeing the error. Orginally the underlined portion just said B32 but I had to change that. Any ideas on how to fix this? Thanks for reading.
Bookmarks