Merchandise exports by the reporting economy, residual (% of total merchandise exports)
Real data: World Bank, World Development Indicators, indicator TX.VAL.MRCH.RS.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Merchandise exports by the reporting economy residuals are the total merchandise exports by the reporting economy to the rest of the world as reported in the IMF's Direction of trade database, less the sum of exports by the reporting economy to high-, low-, and middle-income economies according to the World Bank classification of economies. Includes trade with unspecified partners or with economies not covered by World Bank classification. Data are as a percentage of total merchandise exports by the economy.
The numbers in 2023
In 2023, 205 countries have a value. The highest is Cuba (4.05); the lowest is Libya (-1.15e-14). The median country value is 0.000485. The World Bank's World aggregate for 2023 is 0.049.
Top 10 countries, 2023
% of total merchandise exports
Highest, 2023
| # | Country | Value |
|---|---|---|
| 1 | Cuba | 4.05 |
| 2 | Aruba | 3.09 |
| 3 | Korea, Dem. People's Rep. | 2.35 |
| 4 | Colombia | 1.38 |
| 5 | Uruguay | 0.66 |
| 6 | Guyana | 0.647 |
| 7 | Argentina | 0.396 |
| 8 | Curacao | 0.352 |
| 9 | Brazil | 0.34 |
| 10 | Panama | 0.215 |
Lowest, 2023
| # | Country | Value |
|---|---|---|
| 1 | Libya | -1.15e-14 |
| 2 | Benin | -1.13e-14 |
| 3 | St. Lucia | -8.83e-15 |
| 4 | Algeria | -4.35e-16 |
| 5 | Zimbabwe | 0 |
| 6 | Zambia | 0 |
| 7 | Yemen, Rep. | 0 |
| 8 | West Bank and Gaza | 0 |
| 9 | Viet Nam | 0 |
| 10 | Venezuela, RB | 0 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1960s | 120 |
| 1970s | 130 |
| 1980s | 153 |
| 1990s | 179 |
| 2000s | 202 |
| 2010s | 205 |
| 2020s | 205 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2023 | 0.049 |
| 2022 | 0.0442 |
| 2021 | 0.0359 |
| 2020 | 0.0386 |
| 2019 | 0.0326 |
| 2018 | 0.0622 |
| 2017 | 0.0612 |
| 2016 | 0.1 |
| 2015 | 0.178 |
| 2014 | 0.214 |
| 2013 | 0.257 |
| 2012 | 0.329 |
By region, 2023
| World Bank region | Value |
|---|---|
| Latin America & Caribbean | 0.206 |
| North America | 0.104 |
| East Asia & Pacific | 0.0487 |
| South Asia | 0.034 |
| Europe & Central Asia | 0.0193 |
| Middle East, North Africa, Afghanistan & Pakistan | 0.00331 |
| Sub-Saharan Africa | 0.00319 |
First rows
merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1960 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1961 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1962 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1963 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1964 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1965 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1966 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1967 | -4.4719224748654e-15 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Merchandise exports by the reporting economy, residual (% of total merchandise exports), exactly as the World Bank API returns it (not rounded) |
Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.
Practice questions
answers computed from the file
Which country has the highest value in 2023?
Cuba, with 4.05.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2023)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2023)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2023
AND value = (SELECT MAX(value) FROM wb WHERE year = 2023);pandas (df = pd.read_csv("merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv"))
y = df[df.year == 2023]
y[y.value == y.value.max()][["country", "value"]]File: merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv
How many countries report a value for 2023?
205 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2023)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2023;pandas (df = pd.read_csv("merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv"))
(df.year == 2023).sum()File: merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv
What is the median across countries in 2023?
0.000485 (median of the 205 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2023))SQL (table wb = the CSV)
-- SQLite has no MEDIAN(); this picks the middle value(s)
SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2023 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2023) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2023));pandas (df = pd.read_csv("merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv"))
df[df.year == 2023]["value"].median()File: merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv
Which country rose the most between 2013 and 2023?
Korea, Dem. People's Rep.: from 0.841 to 2.35, a rise of 1.51 (out of 205 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports-wide.csv): add a column = [2023] - [2013], then sort it largest to smallest.SQL (table wb = the CSV)
SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
WHERE a.year = 2013 AND b.year = 2023 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2023] - w[2013]).dropna().nlargest(1)File: merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv
Which year has the most countries reporting?
2023, with 205 countries.
Excel (on the long CSV: E = year, F = value)
Make a pivot table: year in Rows, Count of value in Values, then sort by the count.SQL (table wb = the CSV)
SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;pandas (df = pd.read_csv("merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv