Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 构建一个公式,该公式使用单元格中的变量(将是关键字)构建URL_Excel_Google Sheets_Spreadsheet - Fatal编程技术网

Excel 构建一个公式,该公式使用单元格中的变量(将是关键字)构建URL

Excel 构建一个公式,该公式使用单元格中的变量(将是关键字)构建URL,excel,google-sheets,spreadsheet,Excel,Google Sheets,Spreadsheet,谷歌表单。。。基本上。。。我想建立一个URL(它将是一个布尔站点:搜索),其中一个单元格字段将是搜索的网站,另一个单元格将是搜索的关键字。如果字段中有多个关键字,则需要将URL中的空格替换为+符号 例如,我在网站的单元格中有“opentoexport.com”,在搜索词/关键字字段中有“这是一个测试”。它需要构建一个URL,将搜索词中的空格替换为+符号,如-google.co.uk/?gws\u rd=ssl\q=site:opentoexport.com+this+is+a+test 为了让我

谷歌表单。。。基本上。。。我想建立一个URL(它将是一个布尔站点:搜索),其中一个单元格字段将是搜索的网站,另一个单元格将是搜索的关键字。如果字段中有多个关键字,则需要将URL中的空格替换为+符号

例如,我在网站的单元格中有“opentoexport.com”,在搜索词/关键字字段中有“这是一个测试”。它需要构建一个URL,将搜索词中的空格替换为+符号,如-google.co.uk/?gws\u rd=ssl\q=site:opentoexport.com+this+is+a+test

为了让我的意思更清楚,我想要一些公式,可以让像google.co.uk/?gws\u rd=ssl#q=site:(Cell C:4)+(Cell a:4)这样的URL成为我想要的网站,其中C:4是我想要做的网站:搜索,C:4是关键词。C:4中的关键字之间有空格,URL需要将这些空格改为+号

到目前为止,我尝试过的公式是=CONCAT(“google.co.uk/?gws#rd=ssl#q=site:($C4)+($A4)),但它不起作用

C4中的信息是“opentoexport.com”,这是我想在谷歌上搜索的网站。 A4中的信息是我想在谷歌上使用的关键词:搜索,在本例中是“物品出口市场”。我想让它创造

这是我正在使用的工作表的一个示例

有人能帮忙吗?这看起来很复杂,但我希望知道他们在做什么的人能把它简单化


注意,我不得不修改URL以允许自己发布,因为它警告我有太多的链接

这个公式是否按照您的意愿工作:


=”https://www.google.co.uk/?gws_rd=ssl#q=site:&C4&“+”&替换(A4,“,“+”)

欢迎加入SO。你的问题是什么?谢谢!这就行了。