hammerhead13 wrote:I need to get ranged number scores when they are with in a Range.
hammerhead13 wrote:some of the Results still do come out accurate.
What you have asked about in this topic is performing an
Interpolation:
One often has a number of data points, obtained by sampling or experimentation, which represent the values of a function for a limited number of values of the independent variable. It is often required to interpolate (i.e. estimate) the value of that function for an intermediate value of the independent variable.
As you will find, when you read the link, there are many ways to perform interpolation. When you posted, you did not specify how you wanted this done, so I chose the method that would be simplest
for me (since I'm providing free help). The method I chose is called Linear Regression using the
Least Squares approach. I used it because Calc provides a convenient function, FORECAST, which implements this method. This picture will show you why B12 has the value it does.
Your data points for row 12 are not in a straight line. This is inconvenient because interpolation on a straight line is very easy. FORECAST chooses a straight line (the one shown) using Least Squares, then finds the point of intersection with 84.95%. As you can see it's slightly less than 2½. The result from FORECAST is correct, though not what you expect.
Now, you are suggesting that the method
that I chose does not meet
your needs. So, you must indicate more precisely what those needs are. Read the linked article about Interpolation in my first sentence. Do you want Linear Interpolation? That is not difficult, though it requires a more complicated formula.
Polynomial and
Spilne interpolation are also possible, though they are much more complex. But we can do that if it is what you want.
Please try to get this right though. I will have limited patience with continually changing requirements. We've already learned that your first attempt at specifying the problem was incomplete. It was also confusing because your attachment did not match your post.
hammerhead13 wrote:How can i have it be no higher than 4.
Here is another example of a requirement which was not stated explicitly. Depending on your data, and depending on the interpolation method you choose, it is possible for the interpolated result to lie outside the range [0,4]. Your revised attachment shows a value in A5 which is outside the range provided in C5:G5. Your original attachment did not include that case. How would I have known that situation may happen? To ensure the formula result is in this interval, use
=MEDIAN(0;interpolating_function;4).
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).