如何在超链接函数中连接字符串

发布于 2024-08-21 05:02:33 字数 232 浏览 2 评论 0原文

我想在我的 OpenOffice Calc 电子表格中添加一列。
特别是,此列应包含指向 Google 查询的超链接。

例如:如果在 A1 中我有字符串“角斗士”,我希望有 B1 列:

"www.google.it?q=The Gladiator"

这样我可以单击并打开浏览器来查看“电影”的情况(是的,它是一个简单的电影数据库)。

谢谢你!

I would like to add a column in my OpenOffice Calc spreadsheet.
In particular, this column should contain a hyperlink to a query on Google.

For example: if in A1 I have the string "The gladiator", I would like have column B1:

"www.google.it?q=The Gladiator"

So I can click and open the browser to see how that "film" is (yes, it is a simple film database).

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小帐篷 2024-08-28 05:02:33

您有两个选择:

& 运算符:

=hyperlink("http://www.google.com/search?q="&A1)

concatenate() 函数

=hyperlink(CONCATENATE("http://www.google.com/search?q="; A1))

HYPERLINK() 函数为您处理 URL 编码。

You have two options:

The & operator:

=hyperlink("http://www.google.com/search?q="&A1)

or the concatenate() function:

=hyperlink(CONCATENATE("http://www.google.com/search?q="; A1))

The HYPERLINK() function handles URL encoding for you.

养猫人 2024-08-28 05:02:33

优秀答案:使用 &Concatenate 函数。

让我补充一下,正确的连接符是分号,而不是逗号...

另外,我建议使用电影标题作为单元格文本,以避免在 b 列单元格中显示文字超链接。

=hyperlink("http...?q="&a1;a1)

=hyperlink(CONCATENTATE("http...?q=";a1);a1)

我正在使用这个确切的函数(不同的目标URL),并试图让新页面在与前一个页面相同的窗口中启动,以避免必须单击角落里的X(谈论懒惰)。

Excellent Answer: Use & or Concatenate function.

Let me add, the proper connector is semi-colon, not comma...

Also, I would recommend using the film title as the celltext, to avoid having the literal hyperlink display in the column b cell.

=hyperlink("http...?q="&a1;a1)

=hyperlink(CONCATENTATE("http...?q=";a1);a1)

I am using this exact function (different target URL) and am trying to get the new page to launch in the same window as the previous, to avoid having to click the X in the corner (talk about lazy).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文