User:Timeshifter/Sandbox284
See:
Change table from rates per million to rates per 100,000
Divide all data cells in a rates table by 10 in order to change to deaths per 100,000 instead of deaths per million.
Some background info if needed:
Via free Google Sheets
:See https://workspace.google.com/products/sheets
Copy the data cells: In source editor put nowiki tags around templates just above the wiki table. Then in visual editor select a corner data cell. Then shift-click on opposite corner of rectangle of data cells. Then copy from your browser edit menu (or use {{Keypress|Ctrl|C}}).
Paste the data cells into a blank Google sheet]. Use the edit menu from your browser or {{Keypress|Ctrl|V}}. Once pasted in you should see the range of cells already selected. If not, select one corner cell. Then shift-click the opposite corner. Just above the top cells to the left should be the range. For example: A1:C29.
Put that range in the formula like this:
:=ARRAYFORMULA(Sheet2!A1:C29/10)
The formula is dividing all cells in the range by 10. Check the sheet number in the sheet tabs just below the data.
Use the formula: Click on a blank column head to the right of the data. Paste the formula in the fx spot just above the data. Click enter on your keyboard. All the corrected data will show up.
Paste the adjusted data into the wikitable: Copy that data, and paste it over the old data in the wikitable via the visual editor.
For more info:
- [https://support.google.com/docs/thread/229667532/to-divide-entire-range-of-cells-by-1000-each-cell?hl=en To divide entire range of cells by 1000 (each cell)]. Google Docs Editors Community.
Via freeware LibreOffice Calc
:See LibreOffice Calc.
Paste just the data cells into a blank sheet. Note the range in the spot to the left just above the data cells. Such as A1:C29
Put it in the Calc formula:
:=A1:C29/10
Click the top of any blank column. Paste the formula in the fx spot just above the data. Click Ctrl + Shift + Enter on your keyboard. All the corrected data will show up.
For more info:
- [https://help.libreoffice.org/latest/en-US/text/scalc/01/04060107.html Array functions]. LibreOffice Help.
Via Excel online
:See: https://www.microsoft.com/en-us/microsoft-365/excel
Paste just the data cells into a blank workbook via the browser edit menu, or {{Keypress|Ctrl|v}}.
Then click the top of a blank column. Formula is same as in LibreOffice Calc:
:=A1:C29/10
Paste the formula in the fx spot just above the data via the browser edit menu or {{Keypress|Ctrl|v}}. Click enter, and the adjusted data shows up starting at the top data cell of the blank column you had selected.
Select the adjusted data. Then right-click it, and click copy. Or use {{Keypress|Ctrl|c}}. Paste it into the wiki table via the visual editor.
Rates table. Deaths per 100,000
- Location links are "Healthcare in LOCATION" links.
Templates above the table have been surrounded by nowiki tags in order to allow copying and pasting all the data cells at once via the VisualEditor.
class="wikitable sortable sticky-table-col1 sticky-table-head mw-datatable static-row-numbers" style=text-align:right;
|+ Drug-induced mortality rates per 100,000 among adults (15-64), females, males and total.{{cite web |title=Overdose situation (FAQ drug overdose deaths in Europe) |url=https://www.euda.europa.eu/publications/topic-overviews/drug-induced-deaths-faq/overdose-situation_en#faq24-drd-question-8 |website=European Union Drugs Agency}} Scroll down to Figure 1.5. Then; "Show data table". !Location !Year !Females !Males !Total |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Austria}}
|2022 |1.8 |6.5 |4.2 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Belgium}}
|2020 |0.7 |3.4 |2.1 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Bulgaria}}
|2022 |0.1 |0.8 |0.4 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Croatia}}
|2022 |1.3 |7.1 |4.2 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Cyprus}}
|2022 |0.3 |1.3 |0.8 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Czechia}}
|2022 |0.6 |1.2 |0.9 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Denmark}}
|2021 |1.9 |6 |4 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Estonia}}
|2022 |3.4 |15.5 |9.5 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Finland}}
|2022 |3.3 |10.6 |7 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|France}}
|2016 |0.3 |1.6 |0.9 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Germany}}
|2022 |1 |4.9 |3 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Greece}}
|2020 |1 |5.8 |3.4 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Hungary}}
|2021 |0.3 |0.9 |0.6 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Ireland}}
|2020 |6.4 |13 |9.7 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Italy}}
|2022 |0.2 |1.3 |0.8 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Latvia}}
|2022 |1.2 |9.6 |5.3 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Lithuania}}
|2022 |1 |8.6 |4.7 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Luxembourg}}
|2022 |0.5 |3.1 |1.8 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Malta}}
|2020 |0.6 |4.3 |2.6 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Netherlands}}
|2022 |1.3 |4 |2.6 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Norway}}
|2022 |5.3 |11.8 |8.6 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Poland}}
|2021 |0.5 |1.1 |0.8 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Portugal}}
|2021 |0.4 |1.9 |1.1 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Romania}}
|2022 |0.1 |0.3 |0.2 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Slovakia}}
|2021 |0.3 |1.2 |0.7 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Slovenia}}
|2022 |1.6 |7.4 |4.6 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Spain}}
|2021 |0.7 |3.4 |2.1 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Sweden}}
|2022 |3.5 |10.2 |7 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Türkiye}}
|2022 |0.1 |0.7 |0.4 |
{{sticky table end}}
Rates table. Deaths per million
- Location links are "Healthcare in LOCATION" links.
{{sticky table start}}{{mw-datatable}}{{static row numbers}}
class="wikitable sortable sticky-table-col1 sticky-table-head mw-datatable static-row-numbers" style=text-align:right;
|+ Drug-induced mortality rates per million among adults (15-64), females, males and total.{{cite web |title=Overdose situation (FAQ drug overdose deaths in Europe) |url=https://www.euda.europa.eu/publications/topic-overviews/drug-induced-deaths-faq/overdose-situation_en#faq24-drd-question-8 |website=European Union Drugs Agency}} Scroll down to Figure 1.5. Then; "Show data table". !Location !Year !Females !Males !Total |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Austria}}
|2022 |18 |65 |42 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Belgium}}
|2020 |7 |34 |21 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Bulgaria}}
|2022 |1 |8 |4 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Croatia}}
|2022 |13 |71 |42 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Cyprus}}
|2022 |3 |13 |8 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Czechia}}
|2022 |6 |12 |9 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Denmark}}
|2021 |19 |60 |40 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Estonia}}
|2022 |34 |155 |95 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Finland}}
|2022 |33 |106 |70 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|France}}
|2016 |3 |16 |9 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Germany}}
|2022 |10 |49 |30 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Greece}}
|2020 |10 |58 |34 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Hungary}}
|2021 |3 |9 |6 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Ireland}}
|2020 |64 |130 |97 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Italy}}
|2022 |2 |13 |8 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Latvia}}
|2022 |12 |96 |53 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Lithuania}}
|2022 |10 |86 |47 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Luxembourg}}
|2022 |5 |31 |18 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Malta}}
|2020 |6 |43 |26 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Netherlands}}
|2022 |13 |40 |26 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Norway}}
|2022 |53 |118 |86 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Poland}}
|2021 |5 |11 |8 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Portugal}}
|2021 |4 |19 |11 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Romania}}
|2022 |1 |3 |2 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Slovakia}}
|2021 |3 |12 |7 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Slovenia}}
|2022 |16 |74 |46 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Spain}}
|2021 |7 |34 |21 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Sweden}}
|2022 |35 |102 |70 |
{{flagg|uspeft|pref=Healthcare in|pref2=Health in|Türkiye}}
|2022 |1 |7 |4 |
{{sticky table end}}
Rates. Plain table. Deaths per million
class=wikitable
!Location !Year !Females !Males !Total |
Austria
|2022 |18 |65 |42 |
Belgium
|2020 |7 |34 |21 |
Bulgaria
|2022 |1 |8 |4 |
Croatia
|2022 |13 |71 |42 |
Cyprus
|2022 |3 |13 |8 |
Czechia
|2022 |6 |12 |9 |
Denmark
|2021 |19 |60 |40 |
Estonia
|2022 |34 |155 |95 |
Finland
|2022 |33 |106 |70 |
France
|2016 |3 |16 |9 |
Germany
|2022 |10 |49 |30 |
Greece
|2020 |10 |58 |34 |
Hungary
|2021 |3 |9 |6 |
Ireland
|2020 |64 |130 |97 |
Italy
|2022 |2 |13 |8 |
Latvia
|2022 |12 |96 |53 |
Lithuania
|2022 |10 |86 |47 |
Luxembourg
|2022 |5 |31 |18 |
Malta
|2020 |6 |43 |26 |
Netherlands
|2022 |13 |40 |26 |
Norway
|2022 |53 |118 |86 |
Poland
|2021 |5 |11 |8 |
Portugal
|2021 |4 |19 |11 |
Romania
|2022 |1 |3 |2 |
Slovakia
|2021 |3 |12 |7 |
Slovenia
|2022 |16 |74 |46 |
Spain
|2021 |7 |34 |21 |
Sweden
|2022 |35 |102 |70 |
Türkiye
|2022 |1 |7 |4 |
Reference
{{reflist}}