Reference¶
This section describes all available custom functions provided by IBM Envizi for Excel.
Each function calls the IBM Envizi Emissions API from Excel to calculate greenhouse gas (GHG) emissions based on provided inputs.
General Notes¶
All functions must be entered directly into Excel cells.
Arguments in square brackets (
[ ]) are optional.Errors are returned as Excel error messages.
Units must follow the supported unit conventions defined in Envizi.
Functions¶
Location-based Emissions¶
Syntax
=ENVIZI.LOCATION(type, value, unit, country, [stateProvince], [date], [powerGrid])
Parameters
type– Activity typevalue– Numeric activity valueunit– Unit of measurement (default: kWh if not specified)country– ISO alpha-3 country codestateProvince(optional) – Geographic state or provincedate(optional) – Activity datepowerGrid(optional) – Power grid region identifier
—
Alternate Syntax (factorId)
=ENVIZI.LOCATION_BY_FACTORID(factorId, value, [unit])
factorId– Factor ID from Envizivalue– Numeric activity valueunit(optional) – Unit of measurement
Outputs
Column |
Description |
|---|---|
|
The total emissions expressed as carbon dioxide equivalent (CO2e). This is the sum of all GHGs weighted by their global warming potential (GWP). |
|
Direct carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Indirect CO2 equivalent emissions, if applicable. |
|
Unit of measurement for the emissions result. |
|
Provides details on the factor set used in the calculation. |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
—
Stationary Source Emissions¶
=ENVIZI.STATIONARY(type, value, unit, country, [stateProvince], [date])
=ENVIZI.STATIONARY_BY_FACTORID(factorId, value, unit)
Outputs
Column |
Description |
|---|---|
|
The total emissions expressed as carbon dioxide equivalent (CO2e). This is the sum of all GHGs weighted by their global warming potential (GWP). |
|
Direct carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Indirect CO2 equivalent emissions, if applicable. |
|
Unit of measurement for the emissions result. |
|
Provides details on the factor set used in the calculation. |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
—
Fugitive Emissions¶
=ENVIZI.FUGITIVE(type, value, unit, country, [stateProvince], [date])
=ENVIZI.FUGITIVE_BY_FACTORID(factorId, value, unit)
Outputs
Column |
Description |
|---|---|
|
The total emissions expressed as carbon dioxide equivalent (CO2e). This is the sum of all GHGs weighted by their global warming potential (GWP). |
|
Direct carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Indirect CO2 equivalent emissions, if applicable. |
|
Unit of measurement for the emissions result. |
|
Provides details on the factor set used in the calculation. |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
—
Mobile Emissions¶
=ENVIZI.MOBILE(type, value, unit, country, [stateProvince], [date])
=ENVIZI.MOBILE_BY_FACTORID(factorId, value, unit)
Outputs
Column |
Description |
|---|---|
|
The total emissions expressed as carbon dioxide equivalent (CO2e). This is the sum of all GHGs weighted by their global warming potential (GWP). |
|
Direct carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Indirect CO2 equivalent emissions, if applicable. |
|
Unit of measurement for the emissions result. |
|
Provides details on the factor set used in the calculation. |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
—
Transportation and Distribution¶
=ENVIZI.TRANSPORTATION_AND_DISTRIBUTION(type, value, unit, country, [stateProvince], [date])
=ENVIZI.TRANSPORTATION_AND_DISTRIBUTION_BY_FACTORID(factorId, value, unit)
Outputs
Column |
Description |
|---|---|
|
The total emissions expressed as carbon dioxide equivalent (CO2e). This is the sum of all GHGs weighted by their global warming potential (GWP). |
|
Direct carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Indirect CO2 equivalent emissions, if applicable. |
|
Unit of measurement for the emissions result. |
|
Provides details on the factor set used in the calculation. |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
—
Calculation¶
=ENVIZI.CALCULATION(type, value, unit, country, [stateProvince], [date], [powerGrid])
=ENVIZI.CALCULATION_BY_FACTORID(factorId, value, unit)
Outputs
Column |
Description |
|---|---|
|
The total emissions expressed as carbon dioxide equivalent (CO2e). This is the sum of all GHGs weighted by their global warming potential (GWP). |
|
Direct carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Indirect CO2 equivalent emissions, if applicable. |
|
Unit of measurement for the emissions result. |
|
Provides details on the factor set used in the calculation. |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
—
Factor¶
=ENVIZI.FACTOR(type, unit, country, [stateProvince], [date])
=ENVIZI.FACTORBYID(factorId, [unit])
Outputs
Column |
Description |
|---|---|
|
The emission factor dataset used for calculation (e.g., DEFRA, EPA). |
|
Reference source of the factor (e.g., publication, license link). |
|
Category of data (e.g., Electricity - Scope 3). |
|
Unit of input activity data (e.g., kWh, liters). |
|
Human-readable name of the factor (e.g., “Electricity: UK - 2023”). |
|
Text description of the factor (e.g., “Electricity generated”). |
|
Dates for which the factor is valid from. |
|
Dates for which the factor is valid to. |
|
Publication period of the factor set from. |
|
Publication period of the factor set to. |
|
Geographic region where the factor applies. |
|
The total emissions expressed as carbon dioxide equivalent (CO2e), sum of all GHGs weighted by GWP. |
|
Carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Indirect CO2 equivalent emissions reported separately. |
|
Output measurement unit (typically kgCO2e). |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
—
Economic Activity¶
Syntax
=ENVIZI.ECONOMIC_ACTIVITY(type, value, unit, country, [stateProvince], [date])
Parameters
type– Activity typevalue– Numeric activity valueunit– Unit of measurementcountry– ISO alpha-3 country codestateProvince(optional) – Geographic state or provincedate(optional) – Activity date
—
Alternate Syntax (factorId)
=ENVIZI.ECONOMIC_ACTIVITY_BY_FACTORID(factorId, value, unit)
factorId– Factor ID from Envizivalue– Numeric activity valueunit– Unit of measurement
Outputs
Column |
Description |
|---|---|
|
The total emissions expressed as carbon dioxide equivalent (CO2e). This is the sum of all GHGs weighted by their global warming potential (GWP). |
|
Direct carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Indirect CO2 equivalent emissions, if applicable. |
|
Unit of measurement for the emissions result. |
|
Provides details on the factor set used in the calculation. |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
|
Energy consumption in megawatt-hours (MWh). |
|
The asset turnover ratio for the activity, if applicable. |
—
Real Estate¶
Syntax
=ENVIZI.REAL_ESTATE(type, value, unit, country, [stateProvince], [date])
Parameters
type– Activity typevalue– Numeric activity valueunit– Unit of measurementcountry– ISO alpha-3 country codestateProvince(optional) – Geographic state or provincedate(optional) – Activity date
—
Alternate Syntax (factorId)
=ENVIZI.REAL_ESTATE_BY_FACTORID(factorId, value, unit)
factorId– Factor ID from Envizivalue– Numeric activity valueunit– Unit of measurement
Outputs
Column |
Description |
|---|---|
|
The total emissions expressed as carbon dioxide equivalent (CO2e). This is the sum of all GHGs weighted by their global warming potential (GWP). |
|
Direct carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Indirect CO2 equivalent emissions, if applicable. |
|
Unit of measurement for the emissions result. |
|
Provides details on the factor set used in the calculation. |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
|
Energy consumption in megawatt-hours (MWh). |
|
The asset turnover ratio for the activity, if applicable. |
—
Factor Search¶
=ENVIZI.FACTOR_SEARCH(search, country, [stateProvince], [date])
Parameters
type– Activity typevalue– Numeric activity valueunit– Unit of measurementcountry– ISO alpha-3 country codestateProvince(optional) – Geographic state or provincedate(optional) – Activity date
—
Alternate Syntax (factorId)
=ENVIZI.ECONOMIC_ACTIVITY_BY_FACTORID(factorId, value, unit)
factorId– Factor ID from Envizivalue– Numeric activity valueunit– Unit of measurement
Outputs
Column |
Description |
|---|---|
|
The total emissions expressed as carbon dioxide equivalent (CO2e). This is the sum of all GHGs weighted by their global warming potential (GWP). |
|
Direct carbon dioxide (CO2) emissions reported separately. |
|
Methane (CH4) emissions reported separately. |
|
Nitrous oxide (N2O) emissions reported separately. |
|
Hydrofluorocarbon (HFC) emissions reported separately. |
|
Perfluorocarbon (PFC) emissions reported separately. |
|
Sulfur hexafluoride (SF6) emissions reported separately. |
|
Nitrogen trifluoride (NF3) emissions reported separately. |
|
Biogenic carbon dioxide (bioCO2) emissions, if applicable. |
|
Direct CO2 emissions explicitly reported when available. |
|
Unit of measurement for the emissions result. |
|
Provides details on the factor set used in the calculation. |
|
Unique identifier for the calculation transaction, used for reference and auditing. |
—
Recommend Activity Type¶
Uses AI to recommend the most appropriate activity type based on a text description. This function helps users find the correct activity type when they’re unsure which one to use for their emissions calculation.
Syntax
=ENVIZI.RECOMMEND_ACTIVITY_TYPE(search, country, [stateProvince], [date])
Parameters
search– Text description of the activity (e.g., “electricity consumption”, “diesel fuel”, “air travel”)country– ISO alpha-3 country codestateProvince(optional) – Geographic state or provincedate(optional) – Activity date (format: YYYY-MM-DD or Excel date)
Outputs
Column |
Description |
|---|---|
|
The AI-recommended activity type that best matches your description |
|
Confidence level of the recommendation (0-100). Higher values indicate stronger matches. |
|
Detailed description of the recommended activity type |
Examples
=ENVIZI.RECOMMEND_ACTIVITY_TYPE("electricity usage", "USA")
=ENVIZI.RECOMMEND_ACTIVITY_TYPE("diesel fuel for trucks", "GBR", "England", "2024-01-15")
=ENVIZI.RECOMMEND_ACTIVITY_TYPE("natural gas heating", "CAN", "Ontario")
Usage Tips
Use descriptive text in the
searchparameter for better recommendationsThe function returns only the top recommendation (highest confidence)
Use the recommended activity type in your emission calculation functions
Combine with
ENVIZI.HEADERSusingincludeDataTypeRecommender=TRUEto create templates that include recommendation columns
Workflow Example
Use
ENVIZI.RECOMMEND_ACTIVITY_TYPEto get activity type suggestionsReview the confidence level and description
Use the recommended activity type in functions like
ENVIZI.LOCATION,ENVIZI.STATIONARY, etc.
—
Headers¶
Returns the input and/or output column headers for a specific endpoint. Useful for setting up spreadsheet templates.
Syntax
=ENVIZI.HEADERS([functionName], [input], [output], [includeActivityTypeRecommender])
Parameters
functionName(optional) – Endpoint name (location, stationary, fugitive, mobile, transportation_and_distribution, calculation, economic_activity, real_estate, factor, factor_search, recommend_activity_type). Default: calculationinput(optional) – TRUE to include input headers, FALSE to exclude. Default: TRUEoutput(optional) – TRUE to include output headers, FALSE to exclude. Default: TRUEincludeActivityTypeRecommender(optional) – TRUE to include AI-recommended activity type columns in input headers (adds “Recommended Activity Type”, “Confidence(%)”, and “Description” after “Activity Type”). Only applies when input=TRUE. Ignored when input=FALSE. Default: FALSE
Examples
=ENVIZI.HEADERS() // Returns both input and output headers for calculation endpoint
=ENVIZI.HEADERS("location") // Returns both input and output headers for location endpoint
=ENVIZI.HEADERS("stationary", TRUE, FALSE) // Returns only input headers for stationary endpoint
=ENVIZI.HEADERS("stationary", FALSE, TRUE) // Returns only output headers for stationary endpoint
=ENVIZI.HEADERS("stationary", TRUE, TRUE, TRUE) // Returns both input and output headers with recommender columns
=ENVIZI.HEADERS("factor", FALSE, TRUE) // Returns only output headers for factor endpoint
=ENVIZI.HEADERS("recommend_activity_type", FALSE, TRUE) // Returns only output headers for activity type recommender
Output
Returns a single row array containing the header names for the specified endpoint. When both input and output are TRUE, returns both sets of headers in one row.
Note on Data Type Recommender
When includeActivityTypeRecommender is TRUE and input is TRUE, the input headers will include three additional columns after “Activity Type”:
Recommended Activity Type – AI-suggested activity type based on your description
Confidence(%) – Confidence level of the recommendation (0-100)
Description – Description of the recommended activity type
This is useful when you want to use the ENVIZI.RECOMMEND_ACTIVITY_TYPE function to get AI suggestions for activity types before performing calculations. Note that this parameter is ignored when input is FALSE.
—
Headers by FactorId¶
Returns the input and/or output column headers for factorId-based calculations. Use this when working with factorId instead of type-based parameters.
Syntax
=ENVIZI.HEADERS_BY_FACTORID([functionName], [input], [output], [includeActivityTypeRecommender])
Parameters
functionName(optional) – Endpoint name (location, stationary, fugitive, mobile, transportation_and_distribution, calculation, economic_activity, real_estate, factor). Default: calculationinput(optional) – TRUE to include input headers, FALSE to exclude. Default: TRUEoutput(optional) – TRUE to include output headers, FALSE to exclude. Default: TRUEincludeActivityTypeRecommender(optional) – This parameter is ignored for factorId-based functions as they don’t support recommender headers. Default: FALSE
Note: The factor_search and recommend_activity_type endpoints do not support factorId-based calls.
Examples
=ENVIZI.HEADERS_BY_FACTORID("location", TRUE, FALSE) // Returns only input headers: factorId, value, unit
=ENVIZI.HEADERS_BY_FACTORID("factor", TRUE, FALSE) // Returns only input headers: factorId, unit
=ENVIZI.HEADERS_BY_FACTORID("calculation") // Returns both input and output headers
=ENVIZI.HEADERS_BY_FACTORID("calculation", FALSE, TRUE) // Returns only output headers (same as regular HEADERS)
=ENVIZI.HEADERS_BY_FACTORID("location", TRUE, TRUE) // Returns both input and output headers
Output
- Returns a single row array containing the factorId-based header names for the specified endpoint. When both input and output are TRUE, returns both sets of headers in one row.
Factor ID from Envizi.