You are on page 1of 3

Example of using HSC Chemistry Add-inn functions to create a table of minerals

Petri Kobylin, 3.12.2015, HSC Chemistry

Mineral 1 Mineral 2 Mineral 3


Mineral Pyrite Py Py/Joki
Code #ADDIN? #ADDIN? #ADDIN?
Formula #ADDIN? #ADDIN? #ADDIN?
Name #ADDIN? #ADDIN? #ADDIN?
Cu #ADDIN? #ADDIN? #ADDIN?
Zn #ADDIN? #ADDIN? #ADDIN?
Fe #ADDIN? #ADDIN? #ADDIN?
S #ADDIN? #ADDIN? #ADDIN?
Density #ADDIN? #ADDIN? #ADDIN?
Hardness #ADDIN? #ADDIN? #ADDIN?
Color #ADDIN? #ADDIN? #ADDIN?
Luster #ADDIN? #ADDIN? #ADDIN?
Location #ADDIN? #ADDIN? #ADDIN?
ID #ADDIN? #ADDIN? #ADDIN?
Elements #ADDIN? #ADDIN? #ADDIN?
Database #ADDIN? #ADDIN? #ADDIN?
Reference #ADDIN?

You can get mineral properties by using


- Mineral name (e.g. Pyrite)
- Mineral Code (returns the mineral name abbreviation, e.g. Py)
- Mineral Code (or Name) AND (part of the) Location (e.g. Py/Joki) (Returns the first matching)
- Mineral ID (e.g ID:54) (Returns the mineral with ID-number) NOTE the prefix is difference in HSC
- Mineral Location
ns to create a table of minerals
HSC Command
Mineral 4 Mineral 3
ID:12616 ID:12616
#ADDIN? Py =MineralCode(B4)
#ADDIN? FeS2 =MineralFormula(B5)
#ADDIN? Pyrite =MineralName(B7)
#ADDIN? 0.05 =MineralC(B4;A8)
#ADDIN? 0.00 =MineralC(B$6;$A11)
#ADDIN? 46.69 =MineralC(B$6;$A12)
#ADDIN? 53.47 =MineralC(B$6;$A13)
#ADDIN? 5.01 =MineralProperty(B$6,$A14)
#ADDIN? 6.5
#ADDIN? yellow, pale brass
#ADDIN? Metallic
#ADDIN? Pyhäsalmi
#ADDIN? 12616 General HSC Command MineralProperty(
#ADDIN? \Fe\S\ returns the property of given mineral
#ADDIN? HSC Property can be any of the following
#ADDIN? 3595 -Code
This column is -Formula
copy paste-special- -Density
values from the -Hardness
D-column to check -Color
the commands -Luster
- and any of the chemical elements (e.g. Cu, Zn, Pb, Si, O)
but in elemental form, not in oxide form (e.g. Si, NOT SiO2)
- Location
- ID
.g. Py/Joki) (Returns the first matching) -Elements
mber) NOTE the prefix is difference in HSC7 -Database
-Reference
Code example Explanation

=MineralCode("Pyrite") Gives standard HSC mineral code for a mineral (1-3 letters)
=MineralFormula("Galena") Gives general formula of mineral
=MineralName("Cc") Gives mineral name according to mineral code
=MineralC("Pyrite";"S") Gives wt% of element in mineral
=MineralC("Galena";"S") Gives wt% of element in mineral
=MineralC("Py";"S") Gives wt% of element in mineral
=MineralC("Kfs";"Al") Gives wt% of element in mineral

mand MineralProperty(MineralName,Property)
of given mineral
of the following

mical elements (e.g. Cu, Zn, Pb, Si, O)


rm, not in oxide form (e.g. Si, NOT SiO2)

You might also like