Forum Discussion

erin-5304's avatar
erin-5304
Brass Contributor
Mar 30, 2023
Solved

IF Formula / #Value! Error

Having trouble figuring out what is causing the #Value! error in the following formula:

 

=IF(E18="Flat Rate",IF(C46>360,SUM(C46/2-150)*8),IF(E18>=0.01,IF(C46>300,SUM(C46/2-150)*8),"")

 

The answer will be decided using 2 different cells of information, E18 and C46.  Any ideas?

  • erin-5304 

    Try

     

    =IF(E18="Flat Rate",IF(C46>360,(C46/2-150)*8,0),IF(E18>=0.01,IF(C46>300,(C46/2-150)*8,0),0))

    • erin-5304's avatar
      erin-5304
      Brass Contributor
      First possibility:
      If E18 says "Flat Rate" and if C46 is greater than 360 then divide the number in C46 by 2, take away 150, then multiply that total by 8; if E18 says "Flat Rate" and C46 is less than or equal to 360 then it should be $0.00.

      Second possibility:
      If E18 has a number instead of text that is greater than $0.01 and if C46 is greater than 300 then divide the number in C46 by 2, take away 150, then multiply that total by 8; if E18 has a number instead of text that is greater than $0.01 but C46 is less than or equal to 300 then it should be $0.00.

      If E18 equals $0, then it should be $0




      • SergeiBaklan's avatar
        SergeiBaklan
        MVP

        erin-5304 

        As variant

        =IF(
            ISTEXT(E18),
            IF(E18 = "Flat Rate", (C46 > 360) * (C46 / 2 - 150) * 8, ""),
            IF(E18 >= 0.01, (C46 > 300) * (C46 / 2 - 150) * 8, 0)
        )
    • erin-5304's avatar
      erin-5304
      Brass Contributor
      C46 would only contain a number. E18 is the only cell that could possibly have text.

Resources