You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Google Sheets中移除IMPORTHTML函数输出数据中的星号(*)

Remove Asterisks from IMPORTHTML Output

Got it, let's fix this. To strip all asterisks (*) from the data your IMPORTHTML formula pulls, you just need to nest it inside a SUBSTITUTE function—this will replace every instance of the asterisk with an empty string, effectively removing them entirely.

Here's the full working formula:

=SUBSTITUTE(IMPORTHTML("https://niftyinvest.com/option-chain/BAJFINANCE?expiry=26MAY2022","Table",1),"*","")

How it breaks down:

  • IMPORTHTML(...): This part does the original work of fetching the table from the specified URL.
  • SUBSTITUTE(data_to_clean, "*", ""): The outer function takes the raw table data, finds every occurrence of *, and replaces it with nothing (the empty string "").

This will clean all asterisks from every cell in the imported table automatically.

内容的提问来源于stack exchange,提问作者Brijesh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.28 18:38:10