Forum Discussion
- QuickBaseCoachDQrew CaptainIf (
[Miles]> 0 and [Miles <= 150, "$450,
[Miles]>150 and [Miles] <= 200, "$600",
.. then a value for when Miles is > 200)- MikeKlausingQrew Assistant CaptainMark- I followed a previous post of yours on how to use a URL formula to pull up google maps and generate a distance between two points. I have made it that far and google maps will say its 500 miles total. Is there a way to get the "500" miles back over to a field in my quickbase form without manually typing it in?
- QuickBaseCoachDQrew Captainplease post a new question and if you are referencing another post, provide a link to that post.
- MikeKlausingQrew Assistant CaptainPerfect, that works great.
Thanks for the quick reply as always Mark. - deldridgdeldridQrew TraineeThis can be done in a Case statement. The formula stops when the first match is found. Try something like this:
Case(True,
[Miles]<=0, 0,
[Miles]<=150, 450,
[Miles]<=200, 600,
0
)
The last zero is what's returned if nothing else matches. (You didn't specify what should happen if miles > 200.)