Googlesheets:从包含几个字符串的单元格获取数据

huangapple go评论66阅读模式
英文:

Googlesheets: get data from a cell which contains a few string

问题

Initially I use =transpose(IMPORTXML("https://www.coingecko.com/en/watchlists/all-time-high-crypto","/html/body/div[4]/div[6]",3)) to get a list of coins data.

However, it is not in a table form and it is `Googlesheets:从包含几个字符串的单元格获取数据

How can I use VLOOKUP (or any method) to find ETH and get the data for ATH which is $4,878.26?

英文:

Initially I use =transpose(IMPORTXML("https://www.coingecko.com/en/watchlists/all-time-high-crypto","/html/body/div[4]/div[6]",3)) to get a list of coins data.

However, it is not in a table form and it is `Googlesheets:从包含几个字符串的单元格获取数据

How can I use VLOOKUP (or any method) to find ETH and get the data for ATH which is $4,878.26?

答案1

得分: 1

=index(xlookup(B1&"",trim(A:A),--regexextract(A:A,"ATH:\s+$(.?) "),,2))

Googlesheets:从包含几个字符串的单元格获取数据

英文:

You may try:

=index(xlookup(B1&"*",trim(A:A),--regexextract(A:A,"ATH:\s+$(.*?) "),,2))

Googlesheets:从包含几个字符串的单元格获取数据

huangapple
  • 本文由 发表于 2023年3月9日 21:26:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/75685239.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定