DataBrighten

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

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

    Real data: World Bank, World Development Indicators, indicator TM.VAL.MRCH.RS.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

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

    What it measures

    Merchandise imports by the reporting economy residuals are the total merchandise imports by the reporting economy from the rest of the world as reported in the IMF's Direction of trade database, less the sum of imports by the reporting economy from 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 imports by the economy.

    The numbers in 2023

    In 2023, 205 countries have a value. The highest is Dominica (3.51); the lowest is Ethiopia (-1.12e-14). The median country value is 0.000386. The World Bank's World aggregate for 2023 is 0.0332.

    Top 10 countries, 2023

    % of total merchandise imports

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

    Highest, 2023

    #CountryValue
    1Dominica3.51
    2Cuba2.49
    3Curacao2.31
    4Haiti2.13
    5Bermuda2.05
    6Lebanon0.586
    7Dominican Republic0.563
    8Guyana0.362
    9Colombia0.213
    10Guatemala0.187

    Lowest, 2023

    #CountryValue
    1Ethiopia-1.12e-14
    2Georgia-3.06e-15
    3Zimbabwe0
    4Yemen, Rep.0
    5Viet Nam0
    6Venezuela, RB0
    7Vanuatu0
    8Uganda0
    9Tuvalu0
    10Turkmenistan0
    How many countries report, by decade
    DecadeMost countries in one year
    1960s123
    1970s133
    1980s154
    1990s179
    2000s202
    2010s205
    2020s205

    World aggregate by year

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

    YearWorld
    20230.0332
    20220.0211
    20210.0227
    20200.0357
    20190.0991
    20180.197
    20170.196
    20160.195
    20150.247
    20140.393
    20130.44
    20120.484

    By region, 2023

    World Bank regionValue
    North America0.0992
    Latin America & Caribbean 0.0834
    South Asia0.0235
    Europe & Central Asia0.0192
    Middle East, North Africa, Afghanistan & Pakistan0.0133
    East Asia & Pacific0.0126
    Sub-Saharan Africa 0.000473

    First rows

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

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19640
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19650
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19670
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19680
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19690
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19700
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19710
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1973-7.2666613969666e-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 imports by the reporting economy, residual (% of total merchandise imports), 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?

    Dominica, with 3.51.

    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-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))

    y = df[df.year == 2023]
    y[y.value == y.value.max()][["country", "value"]]

    File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.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-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))

    (df.year == 2023).sum()

    File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv

    What is the median across countries in 2023?

    0.000386 (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-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))

    df[df.year == 2023]["value"].median()

    File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv

    Which country rose the most between 2013 and 2023?

    Dominica: from 0.0282 to 3.51, a rise of 3.48 (out of 205 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports-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-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2023] - w[2013]).dropna().nlargest(1)

    File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.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-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv