Forum Discussion

AnnaHarris's avatar
AnnaHarris
Qrew Trainee
5 years ago

Formula - Total field if/then based on numeric value and percent.

I have attached a photo of a formula I have been working on. A bit of background information: I will use this to create an estimate for clients for some of our products. This formula field will display our fee based on the total cost the the Estimate Cost field. The first few statements are based on cost with a flat fee associated. After $3000.00 the costs will be based on percentage. It worked until I added the percentage portion. I've written it a few times, and after so many times of staring at it I can't seem to get it right. Please help :)

------------------------------
Anna Harris
------------------------------

7 Replies

  • AustinK's avatar
    AustinK
    Qrew Commander
    Best bet to get quicker help is to post the actual formula as text so people can copy and paste it. Also is this a text field? I am guessing text as the numbers have quotes around them but it would be good to know for sure.

    With an offhand guess I would wrap the yellow text in a ToText function.
    • AnnaHarris's avatar
      AnnaHarris
      Qrew Trainee
      Formula:

      If([Estimate Cost]<=500,"100.00",[Estimate Cost]>=500,"150.00",[Estimate Cost]>=1000, "250.00",[Estimate Cost]>=3000,[Estimate Cost] *.12)

      ------------------------------
      Anna Harris
      ------------------------------
      • AdamKeever1's avatar
        AdamKeever1
        Qrew Commander
        Try this Anna:
        If(
        [Estimate Cost]=0,null,
        [Estimate Cost]<=500,100,
        [Estimate Cost]>500 and [Estimate Cost]<=1000,150,
        [Estimate Cost]>1000 and [Estimate Cost]<=3000,250,
        [Estimate Cost]*0.12)​


        [Estimate Cost] needs to be numeric and the formula field needs to be formula numeric.



        ------------------------------
        Adam Keever
        ------------------------------