Forum Discussion

MeganHardison's avatar
MeganHardison
Qrew Member
5 years ago

If formula

I need help writing a formula please. Hopefully super easy...

If([Add 7% tax]=true,[7 Percent Tax Formula],[Taxes])

But then I want to add that if [Taxes]=0, then display "Not Included".

Thanks so much!

------------------------------
Megan Hardison
------------------------------
  • Megan,
    The challenge here is that when you define a formula field in QuickBase it needs to be a type like Text or Numeric.  You seem to be wanting a result which is sometimes numeric and sometimes text.

    In your use case can you have a formula numeric field that will calculate to a numeric result and then have a separate text field to put in the form that says "Taxes not included".   That's the easy way through this.

    There is a way to coax the numbers into a text field if you want to pursue that direction, but it will  be more complicated than you expected.  But we can go down that path together if you want to work your way through it on this Forum.

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • MeganHardison's avatar
      MeganHardison
      Qrew Member
      Yes, I can do the easy way, but I need EF+ to display on the printout "Taxes not included" if its $0. Maybe its a formula with the EF+ form itself?

      ------------------------------
      Megan Hardison
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        OK, I get it.  I will post back later when I get a chance.

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------
    • MeganHardison's avatar
      MeganHardison
      Qrew Member
      For the last line, it gives an error for "expecting number but found text" on the "Not Included".

      IF([Taxes]=0, "Not Included", $NumberInTextFormat)

      ------------------------------
      Megan Hardison
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        The field type should be changed to formula text.  It sounds like the field type is now formula numeric.

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------
    • MeganHardison's avatar
      MeganHardison
      Qrew Member
      Its not showing the [7 Percent Tax Formula] if [Add 7% tax]=true.
      But it will show [Taxes] if its filled out, and the "Not Included" if its not.

      ------------------------------
      Megan Hardison
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        In your test record, what value is in the [7% tax formula]?

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------