I have tried to find some examples on here, but am coming up empty, if any of you have a good idea, please let me know.
Unfortunately with the way that excel deals with numbers, I am running into accuracy issues due to rounding errors, so I cannot do linear approximation for a project I am working on as the error is too much (lots of exponents etc- this has been verified by some other people as a problem for my application). As a result, i need to instead have a generated lookup table for reference instead.
it is based on 2 criteria, so in this case I need to use some form of a nested lookup function. Using the table below as a sample, I need to first find by the input criteria 1, then input criteria 2, and finally sort to the nearest value if it is not exact.
for example-
99, 2 will give 11.
88, 7 will give 67.
Finally, this is a function that will happen a couple thousand of times so I need to make it as "cpu friendly" as possible if that makes sense.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Input Criteria 1 [/TD]
[TD]Input Criteria 2[/TD]
[TD]Outputs[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]1[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]5[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]10[/TD]
[TD]33[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]20[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]50[/TD]
[TD]55[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]2[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]7[/TD]
[TD]67[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]9[/TD]
[TD]112[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]15[/TD]
[TD]520[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]32[/TD]
[TD]1113[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]60[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
If you have any ideas on how I could handle this, it would be greatly appreciated.
Thank you for your time.
Unfortunately with the way that excel deals with numbers, I am running into accuracy issues due to rounding errors, so I cannot do linear approximation for a project I am working on as the error is too much (lots of exponents etc- this has been verified by some other people as a problem for my application). As a result, i need to instead have a generated lookup table for reference instead.
it is based on 2 criteria, so in this case I need to use some form of a nested lookup function. Using the table below as a sample, I need to first find by the input criteria 1, then input criteria 2, and finally sort to the nearest value if it is not exact.
for example-
99, 2 will give 11.
88, 7 will give 67.
Finally, this is a function that will happen a couple thousand of times so I need to make it as "cpu friendly" as possible if that makes sense.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Input Criteria 1 [/TD]
[TD]Input Criteria 2[/TD]
[TD]Outputs[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]1[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]5[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]10[/TD]
[TD]33[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]20[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]50[/TD]
[TD]55[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]2[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]7[/TD]
[TD]67[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]9[/TD]
[TD]112[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]15[/TD]
[TD]520[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]32[/TD]
[TD]1113[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]60[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
If you have any ideas on how I could handle this, it would be greatly appreciated.
Thank you for your time.