简体   繁体   English

如何将其他谷歌表格中的值添加在一起并将它们显示在一张表格上?

[英]How do i add values from other google sheets together and display them on one sheet?

So I've created a few google sheets to track the hours I've worked with different clients and I'd like to create a master sheet that displays this as the total hours worked each day.所以我创建了一些谷歌表格来跟踪我与不同客户合作的时间,我想创建一个主表格,将其显示为每天的总工作时间。 My current sheets are already formatted like calendars with the hours inputed on a daily basis so its really just adding the same "day" across 6 or 7 sheets and displaying them on one.我当前的工作表已经像日历一样格式化,每天输入时间,所以它实际上只是在 6 或 7 张工作表中添加相同的“天”并将它们显示在一张上。

I've tried the importrange function but every time i get a new client i have to add the new importrange manually to every day's sum for that month.我已经尝试过 importrange function 但每次我得到一个新客户时,我都必须手动将新的 importrange 添加到该月每天的总和中。 There must be an easier way no?一定有更简单的方法不是吗?

Currently, I have this:目前,我有这个:

=SUM(IMPORTRANGE("client 1 link", "January!F10"), IMPORTRANGE("client 2 link", "January!F10"), IMPORTRANGE("client 3 link", "January!F10"), IMPORTRANGE("client 4 link", "January!F10"), IMPORTRANGE("client 5 link", "January!F10"))

Example of one of the sheets其中一张纸的示例

Dynamic ImportRange动态导入范围

This solution will only have 1 tab for each client in the overview workbook.此解决方案在概览工作簿中仅为每个客户提供 1 个选项卡。 You select the month you want to summarize, and it will import just that month into each client's tab.您 select 您要汇总的月份,它将仅将该月份导入每个客户的选项卡。

Setup设置

Refer to these two sheets:参考这两张表:

Individual Client Workbook个人客户工作簿

  1. For each month, create a named range for the calendar table.对于每个月,为日历表创建一个命名范围。 Example: March tabs named range would be Mar_2021, then April's would be Apr_2021, etc.示例:名为 range 的 3 月选项卡将为 Mar_2021,然后 4 月的将为 Apr_2021,依此类推。
  2. Every client needs to have the same named ranges , this is what you will use to import a specific month into your overview workbook.每个客户都需要具有相同的命名范围,这就是您将用于将特定月份导入概览工作簿的内容。

Overview Workbook概述工作簿

  1. In the workbook you will be using to aggregate all of the separate client sheets, add tabs for each client in addition to the overview tab, also add extra tabs so you don't need to update the formulas each time.在工作簿中,您将用于聚合所有单独的客户工作表,除了概述选项卡外,还为每个客户添加选项卡,还添加额外的选项卡,这样您就不需要每次都更新公式。

  2. On the overview tab, Create a dropdown that has the Month_Year named ranges, this will select the month that will be imported into each client's tab.在概览选项卡上,创建一个包含 Month_Year 命名范围的下拉菜单,这将 select 将导入每个客户选项卡的月份。 In this example it is B3.在本例中,它是 B3。

  3. In the same cell of each client tab add IMPORTRANGE("Client Workboook URL", B3) .在每个客户端选项卡的同一单元格中添加 IMPORTRANGE("Client Workbook URL", B3) If you use A1, then place the formula in A1 on all tabs.如果您使用 A1,则将公式放在所有选项卡上的 A1 中。 This will import only the month you selected on the overview tab.这将仅导入您在概览选项卡上选择的月份。

  4. Finally, on the overview tab, add your sum formula for the same cell on each tab.最后,在概览选项卡上,为每个选项卡上的同一单元格添加总和公式。 The key here is to have enough extra tabs to accommodate new clients.这里的关键是有足够的额外标签来容纳新客户。 You can also change a tabs client as you add / lose clients.您还可以在添加/丢失客户端时更改选项卡客户端。

Now you can go to the overview tab, select the month you want to view, and it will update each client's tab with that month, and add them all together on the overview tab.现在您可以 go 到概览选项卡,select 您要查看的月份,它会用该月份更新每个客户的选项卡,并将它们一起添加到概览选项卡上。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 Google Sheets Macros 从一张工作表复制值并将它们粘贴到另一张工作表中? - How to copy values from one sheet and paste them into another using Google Sheets Macros? Google 工作表脚本将数据集从一张工作表复制到另一张工作表的顶部(仅限值) - Google sheets script copy data sets from one sheet to another (values only) at the top of the sheet 如何将提示的值加在一起? - How do I add values of a prompt together? 从一张纸上取值并根据 ID 将它们保存在另一张纸上 - Take values ​from one sheet and save them on the other sheet based on the ID 如何遍历来自 API 的所有响应并使用 Javascript 将它们传递给 Google 表格? - How do I loop through all responses from API and pass them to Google Sheet using Javascript? 从 Google 表格的多个选项卡中提取一行数据并显示在一个主表格中 - Pull a row of data from multiple tabs in Google Sheets and display in one Master Sheet 当我想取消归档(谷歌表)时,归档不同工作表中的行并将它们删除到初始 position(到初始工作表) - Archive rows from different sheets and remove them to initial position (to initial sheet) when I want to unarchive (google sheets) 如何使用Google表格脚本将Google表格单元格数据添加到html电子邮件中? - How do you add google sheet cell data into an html-email using Google Scripts for Sheets? 使用Google App脚本从工作表中获取值并将其显示在文本框中 - Using Google App Script to get values from sheets and display them in text box 如何使用脚本从 Google 表格中“工作表 B”上的数据生成“工作表 A”上的列表 - How Do You Generate List On "Sheet A" from Data on "Sheet B" in Google Sheets Using a Script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM