规范化数据以从1到10进行缩放

Mat*_*pus 4 excel normalization

我有以下数据集:

A   B   N
1   3   10
2   3   5
3   3   1
3   6   5
10  10  1
20  41  5
20  120 9
Run Code Online (Sandbox Code Playgroud)

我正在寻找一个excel函数,它将A和B归一化为N,从1到10.

在上面的例子中它将是

1 of 3 is best so N = 10
2 of 3 is in the middle N = 5
3 of 3 is worst N=1
20 of 120 is in second decade N=9
Run Code Online (Sandbox Code Playgroud)

A> = 1 && A <= B.

B是自然数

1 <= N <= 10

Dr.*_*ius 6

假设你的数字在col A和B中.写在c1:

=MAX(CEILING((B1-A1)/(B1-1)*10,1),1)
Run Code Online (Sandbox Code Playgroud)

并拖动到C列的底部