Burst range
Forums
Hi,
I need to find how automatically with idea (using formula or script ) that help me to burst a list of number that are between (upper and lower )
I have attached a file .xls as an example
Thank you
Hello Steve,
Hello Steve,
First of all, thank you very much for your answer, however; actually I have a large volume of numbers to treat and actually the formula will not help me too much, because I need a script .; and as for the script you sent me, I already use it in other need.
Thank you.
Ahmed.
Hi Ahmed, can you try this
Hi Ahmed, can you try this script out.
The client field can be either a character or numeric field. The upper and lower limits must be an integer, not sure what it would do with decimals, probably ignore them.
The script worked with your example.
Let me know how it work and if you have any suggestions and I will post it in the main library.
Thanks
Brian
Hello,
Hello,
To do this with an equation you would combine the @compif and @between functions in IDEA per the example below.
@compif(@between(NUMBER,11250000,11250009)=1,"ALPHA",@between(NUMBER,15000000,15000010)=1,"BETA",1,"")
where: Number is the name of the field that contains your value.
This equation can be expanded for many more "bursts" by simply copy and pasting the @between string and adjusting the number range and desired character result. The ,1, "" at the end of the compif tells the function that all testing is complete and if it comes across a number that doesen't meet all the burst criteria simply leave that record blank. You could also you some other character designation like "OUTLIER" instead of a blank.
If you had hundreds of range combinations this equation will beome very cumbersome. You would want to conduct a ranged join that would require an IDEAScript. I will leave that answer to Brian or one of the better scripters in the forum.
Steve