Between
Forums
Hi,
I would like to find an equation that allow me to find a number if it is in a range of numbering
I attachd a file .xls as un example,
Thank you.
Hi Ahmed,
Hi Ahmed,
Scott has created a script that should help you out, it is in post #5 from this thread (http://ideascripting.com/forum/joining-tables-when-key-between-two-valu…)
You will have to break out your file into two files, one with the upper and lower limits and another with just the numbers. For the upper and lower limit file if you don't already have a field that indicates what the range is you can add a recno field to the file so it know how it relates.
Let me know how it goes and if it works for you.
Thanks
Brian
There might be a few ways to
There might be a few ways to make it more efficient but I don't think there will be huge savings. It is the nature of the beast where this is comparing all the records against multiple criteria so it is going to take a long time. Also this is a script so it is much slower then if this was a built in IDEA function.
Hi Admed,
Hi Admed,
Thanks for giving an example file. Try this function with a character field, it will return Yes if the number is between the range and No if it isn't.
@if(@Between(NUMBERS, FROM, TO) = 1, "Yes", "No")