显示特定范围内的所有数据,并将其右侧单元格的值求和。

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

Display all data from a certain range and sum the value of their right cell

问题

I'm not sure how to go about this since I'm still a newbie at Excel and I only know how to COUNTIF in static lists. My problems are:

  1. A8 and below - How to dynamically display the Tasks from a dynamic list (B3-B5, D3-D5, F3-F5 and so on and so forth)
  2. B8 and below - How do I get the sum of Hours of each Task items?
英文:

I'm not sure how to go about this since I'm still newbie at Excel and I only know how to COUNTIF in static lists. My problems are:

  1. A8 and below - How to dynamically display the Tasks from a dynamic list (B3-B5, D3-D5, F3-F5 and so on and so forth)
  2. B8 and below - How do I get the sum of Hours of each Task items?

显示特定范围内的所有数据,并将其右侧单元格的值求和。

答案1

得分: 3

=假设范围为B2:K4

=LET(
    ζ, B2:K4,
    ξ, WRAPROWS(TOCOL(ζ), 2),
    γ, TAKE(ξ, , 1),
    δ, SORT(UNIQUE(γ)),
    HSTACK(δ, BYROW(δ, LAMBDA(ε, SUM((γ = ε) * TAKE(ξ, , -1))))))

(Note: I've provided the translated code portion without additional content as requested.)

英文:

Assuming a range of B2:K4:

=LET(
    ζ, B2:K4,
    ξ, WRAPROWS(TOCOL(ζ), 2),
    γ, TAKE(ξ, , 1),
    δ, SORT(UNIQUE(γ)),
    HSTACK(δ, BYROW(δ, LAMBDA(ε, SUM((γ = ε) * TAKE(ξ, , -1)))))
)

huangapple
  • 本文由 发表于 2023年5月13日 12:43:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76241110.html
匿名

发表评论

匿名网友

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

确定