Issues with negative numbers in Polynomial Trendline Equation

PerezM

New Member
Joined
Nov 15, 2023
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
I am trying to create a formula where I can type in the degrees desired in Fahrenheit and it spits out the % composition based on an input chart. 32 is the high and -60 is the low for min max on this chemical's capability where 100% of it would allow for -60 and 0% would allow for 32. I have tried using the 3rd degree trendline with an r of 1, I have changed the figures and decimal values and i keep getting bad data (i.e. i enter -52 and it gives me 137%. I've tried trend and other formulas but they all give me error or don't work well with the negative input for temperature. I am not an excel expert and am stuck now. For the sake of accuracy I am only using the data up to 60% makeup = 59.9

PG Calculator.xlsx
ABCDEFGHIJKL
1CelciusPercentageFarenheit
20.00.032.0
3-1.65.029.1
4-3.310.026.1
5-5.115.022.9
6-7.120.019.2
7-7.621.018.3
8-8.022.017.6
9-8.623.016.6
10-9.124.015.6
11-9.625.014.7
12-10.226.013.7
13-10.827.012.6
14-11.428.011.5
15-12.029.010.4
16-12.730.09.2
17-13.431.07.9
18-14.132.06.6
19-14.833.05.3
20-15.634.03.9
21-16.435.02.4-52.7
22-17.336.00.8
23-18.237.0-0.8137.48371
24-19.138.0-2.4
25-20.139.0-4.2
26-21.140.0-6.0
27-22.141.0-7.8
28-23.242.0-9.8
29-24.343.0-11.8
30-25.544.0-13.9
31-26.745.0-16.1
32-27.946.0-18.3
33-29.347.0-20.7
34-30.648.0-23.1
35-32.149.0-25.7
36-33.550.0-28.3
37-35.051.0-31.0
38-36.652.0-33.8
39-38.253.0-36.7
40-39.854.0-39.7
41-41.655.0-42.8
42-43.356.0-46.0
43-45.257.0-49.3
44-47.158.0-52.7
45-49.059.0-56.2
46-51.160.0-59.9
47<-51.065.0<-60.0
48<-51.070.0<-60.0
49<-51.075.0<-60.0
50<-51.080.0<-60.0
51<-51.085.0<-60.0
52<-51.090.0<-60.0
53<-51.095.0<-60.0
Table 1
Cell Formulas
RangeFormula
E23E23=TREND(C2:C46,B2:B46,E21,TRUE)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Ignore this please, I figured out my issue but can't figure out how to delete the post.
 
Upvote 0
Good to hear you got the solution.
If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
Thanks
 
Upvote 0
Good to hear you got the solution.
If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
Thanks
My apologies:
Flipped the data on the x and y so that % concentration was 'y' and temperature was 'x', given that data, created a 5th order Polynomial from the scatter point chart of the data.
The formula from this graph actually worked within a varying degree of error that was acceptable: y = -1E-08x5 - 2E-06x4 - 0.0002x3 - 0.0083x2 - 0.6383x + 36.062
Substituting x with the desired number gives an acceptable result and works with positive and negative numbers. User simply has to understand that numbers above 32 and below 60 are not to be used for the input.
Propylene Glycol Winterizer Calculator 2.0.xlsx
ABCDEFGH
1Temperature% by VolumeCalculator
2°C°F
30.032.00.0Desired Frezing Point (°F):9.2Cannot be above 31
4-1.629.14.8
5-3.326.19.6Concentration by Volume of Propylene Glycol (%):29.32!Verify Against Chart!
6-5.122.914.5
7-7.119.219.4
8-7.618.320.4Output Goal (Gallons):275Good
9-8.017.621.4
10-8.616.622.4Oil/Water Mix (G):194
11-9.115.623.4
12-9.614.724.4Propylene Glycol (G):81
13-10.213.725.3
14-10.812.626.4
15-11.411.527.4
16-12.010.428.4
17-12.79.229.4
18-13.47.930.4
19-14.16.631.4
20-14.85.332.4
21-15.63.933.5
22-16.42.434.4
23-17.30.835.5
24-18.2-0.836.5
25-19.1-2.437.5
26-20.1-4.238.5
27-21.1-6.039.6
28-22.1-7.840.6
29-23.2-9.841.6
30-24.3-11.842.6
31-25.5-13.943.7
32-26.7-16.144.7
33-27.9-18.345.7
34-29.3-20.746.8
35-30.6-23.147.8
36-32.1-25.748.9
37-33.5-28.349.9
38-35.0-31.050.9
39-36.6-33.851.9
40-38.2-36.753.0
41-39.8-39.754.0
42-41.6-42.855.0
43-43.3-46.056.0
44-45.2-49.357.0
45-47.1-52.758.0
46-49.0-56.259.0
47-51.1-59.960.0
48<-51.0<-60.065.0
49<-51.0<-60.070.0
50<-51.0<-60.075.0
51<-51.0<-60.080.0
52<-51.0<-60.085.0
53<-51.0<-60.090.0
54<-51.0<-60.095.0
Propylene Glycol Calculator
Cell Formulas
RangeFormula
F5F5= -0.00000001*$F$3^5 - 0.000002*$F$3^4 - 0.0002*$F$3^3 - 0.0083*$F$3^2 - 0.6383*$F$3 + 36.062
H8H8=IF(F10+F12=F8,"Good","Check Math")
F10F10=((100-F5)*F8)/100
F12F12=(F8*F5)/100
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H8Cell Valuecontains "Check Math"textNO
H8Cell Valuecontains "Good"textNO
 
Upvote 0
Solution

Forum statistics

Threads
1,215,198
Messages
6,123,593
Members
449,109
Latest member
Sebas8956

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top