admin管理员组文章数量:1415684
I need formula (in column C) that will count same bill# from column H. So Nick, Marc, and Lucas are on the same bill#, that's total count of 3 for Nick (or Lucas) (column A). Gee and Lucas are on the same bill#, that's total count of 2 for Gee (column A). Matt and Kim are on the same bill# and that's total count of 2 for Matt (column A). What formula to use? Note that values in A, B, C columns and values in F, G, H column are separate sheets.
I need formula (in column C) that will count same bill# from column H. So Nick, Marc, and Lucas are on the same bill#, that's total count of 3 for Nick (or Lucas) (column A). Gee and Lucas are on the same bill#, that's total count of 2 for Gee (column A). Matt and Kim are on the same bill# and that's total count of 2 for Matt (column A). What formula to use? Note that values in A, B, C columns and values in F, G, H column are separate sheets.
Share Improve this question asked Feb 13 at 18:16 vujkevujke 4958 silver badges14 bronze badges 1 |1 Answer
Reset to default 1Here is one way to accomplish the desired output using one single dynamic array formula:
=MAP(A2:A5,LAMBDA(x, FILTER(COUNTIF(H2:H8,H2:H8),F2:F8=x)))
Alternatively, without using a LAMBDA()
helper function;
=XLOOKUP(A2:A5,F2:F8,COUNTIF(H2:H8,H2:H8),"Oops Not Found!!")
本文标签: excelCount Same Values Based on Another Value in Another ColumnStack Overflow
版权声明:本文标题:excel - Count Same Values Based on Another Value in Another Column - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745196455a2647160.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
=COUNTIF(H2:H8,H2:H8)
at column I so you have all your results at once. – P.b Commented Feb 13 at 19:27