Q
Q
I am trying to use excel to perform some calculations with colour matching.
I have 20 rows of colour samples with three inter related columns of numbers
R-G-B for each sample.
I am dividing each sample row by 10 to produce a predetermined fraction of
each colour sample, example below with just two rows.
A B C
120 100 50
100 150 90
/10
A B C
12 10 5
10 15 9
Having reduced each of the 20 rows of three columns to a tenth as fraction
samples of their starting values I now want to calculate what 10 additive
combinations of the 20 rows of three columns will come closest to a target
value. eg. If I wish to achieve;
A B C
215 40 87
By adding 10 fraction samples from the rows together to achieve the closest
result. The closest result can have anything between 0-10 fraction samples
from any of the rows but it must have 10 samples in total (all ten could
even come from one row) and the result just has to be the closest mix within
those parameters.
e.g. The result might end up being
A B C
208 46 81
Any ideas on how I might achieve the formulas for this?
I have 20 rows of colour samples with three inter related columns of numbers
R-G-B for each sample.
I am dividing each sample row by 10 to produce a predetermined fraction of
each colour sample, example below with just two rows.
A B C
120 100 50
100 150 90
/10
A B C
12 10 5
10 15 9
Having reduced each of the 20 rows of three columns to a tenth as fraction
samples of their starting values I now want to calculate what 10 additive
combinations of the 20 rows of three columns will come closest to a target
value. eg. If I wish to achieve;
A B C
215 40 87
By adding 10 fraction samples from the rows together to achieve the closest
result. The closest result can have anything between 0-10 fraction samples
from any of the rows but it must have 10 samples in total (all ten could
even come from one row) and the result just has to be the closest mix within
those parameters.
e.g. The result might end up being
A B C
208 46 81
Any ideas on how I might achieve the formulas for this?