HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Absolute reference is when a reference has the dollar sign ($)
Absolute reference is when a reference has the dollar sign ($
).
It locks a reference in the formula.
Add $
to the formula to use absolute references.
The dollar sign has three different states:
=$A$1
=$A1
=A$1
Let's have a look at an example helping the Pokemon trainers to calculate prices for Pokeballs
Type or copy the following data:
The price's reference is B11
, we do not want the fill function to change this, so we lock it.
The reference is absolutely locked by using the formula $B$11
.
How to do it, step by step:
C2(=)
B11
$
) before the B
and 11
($B$11
)*
)B2
C2:C7
Note: You can press F4
on your keyboard and toggle between different states of absolute references.
function copyFormulas(elementId){ /* Get the text field */ var copyText = document.getElementById(elementId); /* Select the text field */ copyText.select(); copyText.setSelectionRange(0, 99999); /* For mobile devices */ /* Copy the text inside the text field */ navigator.clipboard.writeText(copyText.value) .then(() => { alert('Range copied to clipboard.\nIt can now be pasted into the Google Sheets spreadsheet.') }) .catch((error) => { alert(`Copy failed! ${error}`) }) }