当搜索键都不在两个列中时

发布于 2025-01-21 15:32:34 字数 594 浏览 2 评论 0原文

我有2列文件#数据,代表薪资周期中不同的几周。我也有2列的常规小时数据。我正在使用vlookup并总和将常规时间添加在一起,以在薪水期间接收小时。

=SUM(VLOOKUP($AI2,RICS_TimeClocks!O$2:S,4, FALSE) , VLOOKUP($AI2,RICS_TimeClocks!T$2:X,4, FALSE))

我的文件#和名称将每一列划为一个列,

=UNIQUE(FLATTEN(

但我现在的问题是,有些员工只在一个星期上工作,导致了一个

“在评估中找不到价值'____'...

任何建议,以便在仅有2个数据列之一中的一个信息时该公式可以起作用?例如,文件#43021仅在第二周工作,文件#43034仅在第一周工作,但我仍然希望能够计算和显示他们的总小时。

...还是更好的方法来匹配并将信息添加到另一个变平的信息列中?

“

I have 2 columns of File # data, representing different weeks in a payroll cycle. I also have 2 columns of Regular Hours data. I am using VLOOKUP and SUM to add the Regular Hours together to receive hours for the pay period.

=SUM(VLOOKUP($AI2,RICS_TimeClocks!O$2:S,4, FALSE) , VLOOKUP($AI2,RICS_TimeClocks!T$2:X,4, FALSE))

I have the File #s and Names flattened into one column each with

=UNIQUE(FLATTEN(

The issue I have now though, is that there are employees that only worked on one of the weeks, resulting in a

"Did not find value '____' in VLOOKUP evaluation"...

Any suggestions so that the formula can function when there is information in only one of 2 data columns? Example, File # 43021 only works in the second week, and File # 43034 only works in the first week, but I still want to be able to compute and display their total hours.

...or a better way to match and add the information into another flattened column of information?

ScreenShot of Google Sheet

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

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

发布评论

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

评论(1

紙鸢 2025-01-28 15:32:34

尝试设置为零的IFNA:

=SUM(IFNA(VLOOKUP($AI2, RICS_TimeClocks!O$2:S, 4, 0), 0), 
     IFNA(VLOOKUP($AI2, RICS_TimeClocks!T$2:X, 4, 0), 0))

try IFNA set to zero:

=SUM(IFNA(VLOOKUP($AI2, RICS_TimeClocks!O$2:S, 4, 0), 0), 
     IFNA(VLOOKUP($AI2, RICS_TimeClocks!T$2:X, 4, 0), 0))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文