DataBrighten

    Merchandise exports by the reporting economy, residual (% of total merchandise exports)

    10,464 × 6rows × columns: 205 countries, 1960 to 2023

    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.

    textnumberdateyes/no
    Rows10,464country-year values
    Countries205with at least one value
    Years1960 – 202364 years with data
    LicenceCC BY 4.0credit the World Bank

    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

    Source: World Bank, TX.VAL.MRCH.RS.ZS, retrieved 19 November 2026. Computed from merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv.

    Highest, 2023

    #CountryValue
    1Cuba4.05
    2Aruba3.09
    3Korea, Dem. People's Rep.2.35
    4Colombia1.38
    5Uruguay0.66
    6Guyana0.647
    7Argentina0.396
    8Curacao0.352
    9Brazil0.34
    10Panama0.215

    Lowest, 2023

    #CountryValue
    1Libya-1.15e-14
    2Benin-1.13e-14
    3St. Lucia-8.83e-15
    4Algeria-4.35e-16
    5Zimbabwe0
    6Zambia0
    7Yemen, Rep.0
    8West Bank and Gaza0
    9Viet Nam0
    10Venezuela, RB0
    How many countries report, by decade
    DecadeMost countries in one year
    1960s120
    1970s130
    1980s153
    1990s179
    2000s202
    2010s205
    2020s205

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    20230.049
    20220.0442
    20210.0359
    20200.0386
    20190.0326
    20180.0622
    20170.0612
    20160.1
    20150.178
    20140.214
    20130.257
    20120.329

    By region, 2023

    World Bank regionValue
    Latin America & Caribbean 0.206
    North America0.104
    East Asia & Pacific0.0487
    South Asia0.034
    Europe & Central Asia0.0193
    Middle East, North Africa, Afghanistan & Pakistan0.00331
    Sub-Saharan Africa 0.00319

    First rows

    merchandise-exports-by-the-reporting-economy-residual-percent-of-total-merchandise-exports.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19600
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19610
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19620
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19630
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19640
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19650
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19660
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1967-4.4719224748654e-15

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberMerchandise 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