Rolandtb

Joined 4 May 2023
fix formatting
(how to update a google sheet cell with numbers from a github csv file)
(fix formatting)
Line 18: Line 18:
'''Method 1: Using the <code>IMPORTDATA</code> Function (Manual/Semi-automated)''' 
'''Method 1: Using the <code>IMPORTDATA</code> Function (Manual/Semi-automated)''' 


This method is the simplest if your CSV file is publicly accessible and you<br />
This method is the simplest if your CSV file is publicly accessible and you
don’t need real-time, automatic updates. The data will refresh<br />
don’t need real-time, automatic updates. The data will refresh
periodically or when the sheet is manually reopened.<br />
periodically or when the sheet is manually reopened.
* 1. '''Get the raw CSV URL from GitHub:''' Navigate to your CSV file on GitHub, click the '''“Raw”''' button, and copy the URL from your browser’s address bar. This URL<br />
* 1. '''Get the raw CSV URL from GitHub:''' Navigate to your CSV file on GitHub, click the '''“Raw”''' button, and copy the URL from your browser’s address bar. This URL<br />
should point directly to the raw data and typically starts with <code>raw.githubusercontent.com...</code>.<br />
should point directly to the raw data and typically starts with <code>raw.githubusercontent.com...</code>.<br />
Line 26: Line 26:


<pre class="excel">=IMPORTDATA(&quot;YOUR_RAW_CSV_URL&quot;)</pre>
<pre class="excel">=IMPORTDATA(&quot;YOUR_RAW_CSV_URL&quot;)</pre>
* 3. '''Press Enter:''' The data from the GitHub CSV file will populate the sheet starting from<br />
* 3. '''Press Enter:''' The data from the GitHub CSV file will populate the sheet starting from
that cell. The data will automatically arrange itself into rows and<br />
that cell. The data will automatically arrange itself into rows and
columns
columns


Line 88: Line 88:
** Under “Select event source”, choose '''Time-driven'''.
** Under “Select event source”, choose '''Time-driven'''.
** Configure the frequency (e.g., every hour, day) and save the trigger
** Configure the frequency (e.g., every hour, day) and save the trigger
== 2026-01-15 How to syntax colour and highligt aka escape JavaScript code in wikitext==
== 2026-01-15 How to syntax colour and highligt aka escape JavaScript code in wikitext==
* apparently it's <code>&lt;syntaxhighlight lang="javascript">your JavaScript code here&lt;/syntaxhighlight></code>. For example:
* apparently it's <code>&lt;syntaxhighlight lang="javascript">your JavaScript code here&lt;/syntaxhighlight></code>. For example:
992

edits