Forum Discussion
data validation on two cells gives result in third cell
- Jan 12, 2021
Hi,
The Weight Tracker is look great 🙂
So to explain, taking an Old English, she weighed in at 15.3Kg, her target weight is 23 to 27Kgs
Which means she is between 7Kg and 11.7Kg under her true weight.
In C10 it would give the difference from the weight and target weight
C11 it would give the date to the target weight in this case 23 to 27Kg if she gains 1 Kg a week, 7 to 11.7 weeks
Sorry if am not explaining myself right.
Somewhere above I noticed that SergeiBaklan had recommended the conversion of your reference data to a Table. I would recommend the same but I take it further. I use Tables and structured references and try to avoid any direct referencing using cell addresses. In the workbook that Sergei was kind enough to correct I had converted the data to a table but it wasn't obvious because I tend to remove the stripes and filters.
I have had an idea for comparing the animal weight with a band of normal weight that does not depend upon constructs with nested IFs. If you consider the 3 weights, breed maximum, breed minimum and actual weight, the formula
= MEDIAN( actual, minimum, maximum )
will return the closest bound. The percentage over/underweight is then given by
= StartWeight/result - 1
If you introduce number formatting to the result, you can add the "over/underweight" to the displayed value, depending upon the sign of the result. If the dog's weight is "Within normal bounds", the formula will give zero and the appropriate message displayed.
p.s. Glad to see from the later document that my Newfoundland dog is spot on target!
- UKAndyJan 12, 2021Copper Contributor