Search the web with GPT for Excel
Search the web directly in GPT for Excel using models with web search capabilities (indicated by the 🌐 icon in the model switcher). These models use fresh web search data, which allows you to generate up-to-date responses about companies, current events, facts, and more, directly in your workbook. You can use web-capable models in any bulk tool or GPT function.
For model-specific pricing information, see our model price list.
Prerequisites
- You have installed GPT for Excel.
- You have opened a workbook where you want to perform the search.
Bulk tools vs. GPT functions
Choose the method that best fits your needs:
Use bulk tools if:
You want to perform bulk searches on entire columns (row-by-row).
You are working with thousands of rows.
You want to include source references in your output.
You need to target specific domains or time ranges for your searches.
Use GPT functions if:
You're comfortable using spreadsheet formulas.
You're working with up to a few hundred cells or you want to run searches for individual cells.
You need the flexibility of nested formulas or of combining GPT functions with native functions.
Web search with bulk tools
Use bulk tools to perform web searches with any model that has web search capabilities (🌐). When using the Perplexity Sonar models, you can also target specific domains and time periods.
Searching a specific domain only works if:
- Perplexity's web crawler has already independently indexed the content of the domain. The crawler does not index new content on demand. In addition, the crawler respects robots.txt directives and does not index disallowed content.
- You can specify up to 3 domains to focus your search.
If a specific domain does not produce valid results, use a different source of information.
Click GPT for Excel Word in the Home tab.
infoYou can also go to Home > Add-ins > My add-ins > GPT for Excel Word.
Expand the model switcher and select a model with web search capabilities (indicated by the 🌐 icon).
In the sidebar, select Bulk tools and click the tool you want to use.
Set up your bulk tool run. For example, to set up a Custom prompt run:
Field Description Example Prompt to run for each row Enter the prompt you want to run for each row. Write an SEO-optimized description for a bike based on its specifications: {{Bike specifications}}. Include key features, benefits, and any recent reviews or updates.
Search options - Domains: Specify up to three domains to target. The model will attempt to generate responses based only on search results from these domains.
- Recency limit: Select a time range for the search results. The model will generate responses using only results from this period.
- Domains:
stockanalysis.com, www.nasdaq.com
No recency limit
Put results in column Select the column or columns to put the results in. Cells in these columns won't be overwritten with the results if they contain text. B: Description
Show sources Enable this option to write source references in the column to the right of the results column. Enabled Click Run rows.
Your search results appear in the output column. If you enabled source references, they appear in the adjacent column.

For instructions on how to use the tools, see Bulk tools.
Web search with GPT functions
Use GPT functions to perform general web searches. Note that domain and time period targeting are only available through bulk tools when using the Perplexity Sonar models.
For OpenAI search models, you can access web search options through both bulk tools and functions.
Using the model switcher
Click GPT for Excel Word in the Home tab.
infoYou can also go to Home > Add-ins > My add-ins > GPT for Excel Word.
Expand the model switcher and select a model with web search capabilities (indicated by the 🌐 icon).
In the workbook, select a cell and write your formula:
=GPT("What are the latest trends in AI technology?")
The formula uses the web-capable model selected in the model switcher.
Specifying the model in the formula
Click GPT for Excel Word in the Home tab.
infoYou can also go to Home > Add-ins > My add-ins > GPT for Excel Word.
In the workbook, select a cell and write your formula, specifying a web-capable model directly in the formula, for example the Perplexity Sonar model:
=GPT("What are the latest trends in AI technology?", , , "sonar")
The formula uses the web-capable model regardless of what's currently selected in the model switcher.
For instructions on how to write formulas with GPT functions, see GPT functions.