Automatic calculations. PPT to Gravity and Gravity to PPT

javichuteck

New Member
View Badges
Joined
Jan 19, 2024
Messages
7
Reaction score
5
Location
Spain
Rating - 0%
0   0   0
Hello!
I have an Excel sheet, where I have a lot of aquarium data, and I have found myself in the need many times to want to know in a direct way how much is in gravity unit the value obtained from a measurement of a Hanna pencil (for example) in ppt.
And the other way around too, to have the reference that X units of gravity how many ppt would that be?

I have seen many online calculators that do this.
I have looked into them (source code) but the calculations are done on the server, and I have not been able to pull up the algorithm they use.
I would like to know the formula to use in my excel sheet (in both directions. ppt to gravity, and gravity to ppt).

Does anyone have this data?
Thank you very much!
 

Randy Holmes-Farley

Reef Chemist
View Badges
Joined
Sep 5, 2014
Messages
72,100
Reaction score
69,741
Location
Massachusetts, United States
Rating - 0%
0   0   0
Hello!
I have an Excel sheet, where I have a lot of aquarium data, and I have found myself in the need many times to want to know in a direct way how much is in gravity unit the value obtained from a measurement of a Hanna pencil (for example) in ppt.
And the other way around too, to have the reference that X units of gravity how many ppt would that be?

I have seen many online calculators that do this.
I have looked into them (source code) but the calculations are done on the server, and I have not been able to pull up the algorithm they use.
I would like to know the formula to use in my excel sheet (in both directions. ppt to gravity, and gravity to ppt).

Does anyone have this data?
Thank you very much!

A reasonably accurate assumption is that sg= 1.0264 = 35 ppt and sg = 1.000 = 0 ppt. Linearly interpolate in between and extend above 35 ppt.
 

MnFish1

10K Club member
View Badges
Joined
Dec 28, 2016
Messages
24,326
Reaction score
23,111
Location
Midwest
Rating - 100%
1   0   0
A reasonably accurate assumption is that sg= 1.0264 = 35 ppt and sg = 1.000 = 0 ppt. Linearly interpolate in between and extend above 35 ppt.
With no offense - most people may not understand this - and - as a math major - neither do i...? :(
 

Randy Holmes-Farley

Reef Chemist
View Badges
Joined
Sep 5, 2014
Messages
72,100
Reaction score
69,741
Location
Massachusetts, United States
Rating - 0%
0   0   0
With no offense - most people may not understand this - and - as a math major - neither do i...? :(

Sg = 1.0xxx

Xxx = (salinity/35) x 264
 
OP
OP
javichuteck

javichuteck

New Member
View Badges
Joined
Jan 19, 2024
Messages
7
Reaction score
5
Location
Spain
Rating - 0%
0   0   0
Sg = 1.0xxx

Xxx = (salinity/35) x 264
I have doubts (I am not very good at math, equations, etc).

I don't understand how to use this.

Could you give me a couple of examples with 1.0264 and with (for example) 1.0249?

Just to understand how to use it and apply it to an automated Excel cell.

Thanks
 

Johnd651

Getting back in after 10+ years
View Badges
Joined
Oct 29, 2019
Messages
2,053
Reaction score
2,653
Location
Utica, NY
Rating - 100%
1   0   0
I have doubts (I am not very good at math, equations, etc).

I don't understand how to use this.

Could you give me a couple of examples with 1.0264 and with (for example) 1.0249?

Just to understand how to use it and apply it to an automated Excel cell.

Thanks
Your excel formula would be (if sg is in cell A1), =((A1-1.0)/35)*264)
 

livinlifeinBKK

5000 Club Member
View Badges
Joined
May 31, 2020
Messages
6,197
Reaction score
5,656
Location
Bangkok
Rating - 0%
0   0   0
With no offense - most people may not understand this - and - as a math major - neither do i...? :(
Since OP uses Excel and asked for a formula, I think the assumption is that he probably knows how to create a graph and plot points on a linear line. He may or may not.
 
OP
OP
javichuteck

javichuteck

New Member
View Badges
Joined
Jan 19, 2024
Messages
7
Reaction score
5
Location
Spain
Rating - 0%
0   0   0
Your excel formula would be (if sg is in cell A1), =((A1-1.0)/35)*264)
The calculations do not work. Practical example:

A1 = 1,0264

((1,0264-1.0)/35)*264)

(0,0264 / 35) * 264

0,000754285714286 * 264

0,199131428571429

This value does not refer to ppt for a sg with value 1.0264.

What am I doing wrong?
 

KStatefan

2500 Club Member
View Badges
Joined
Jun 24, 2015
Messages
4,560
Reaction score
4,375
Location
MHK
Rating - 0%
0   0   0
The calculations do not work. Practical example:

A1 = 1,0264

((1,0264-1.0)/35)*264)

(0,0264 / 35) * 264

0,000754285714286 * 264

0,199131428571429

This value does not refer to ppt for a sg with value 1.0264.

What am I doing wrong?

1728728709244.png
 
OP
OP
javichuteck

javichuteck

New Member
View Badges
Joined
Jan 19, 2024
Messages
7
Reaction score
5
Location
Spain
Rating - 0%
0   0   0
Do you know how to plot a graph with Excel?
I do know how to trace it.
But now I am not at the time to generate graphs. I will see if I want to create a chart in the future.

I am now with the conversion of each measurement to its homonym.
 

Johnd651

Getting back in after 10+ years
View Badges
Joined
Oct 29, 2019
Messages
2,053
Reaction score
2,653
Location
Utica, NY
Rating - 100%
1   0   0
The calculations do not work. Practical example:

A1 = 1,0264

((1,0264-1.0)/35)*264)

(0,0264 / 35) * 264

0,000754285714286 * 264

0,199131428571429

This value does not refer to ppt for a sg with value 1.0264.

What am I doing wrong?
I went off of the above formula to turn it into excel. I will need to look at it when I'm more awake. Quick comparison it might be a decimal point and parentheses shift.
 

KStatefan

2500 Club Member
View Badges
Joined
Jun 24, 2015
Messages
4,560
Reaction score
4,375
Location
MHK
Rating - 0%
0   0   0
I do know how to trace it.
But now I am not at the time to generate graphs. I will see if I want to create a chart in the future.

I am now with the conversion of each measurement to its homonym.

I guess I am not understanding what you are looking for. I thought the screen shot of excel above answered your question. Can you explain a different way what you are looking for?
 
OP
OP
javichuteck

javichuteck

New Member
View Badges
Joined
Jan 19, 2024
Messages
7
Reaction score
5
Location
Spain
Rating - 0%
0   0   0
I guess I am not understanding what you are looking for. I thought the screen shot of excel above answered your question. Can you explain a different way what you are looking for?
Yes, of course the Excel answer answered my question.

But another person has asked if it was to make a graph, and I have answered to you that it was not to make a graph (same time).
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top