Excel索引从标准获取列标题

发布于 2025-01-31 00:04:59 字数 507 浏览 4 评论 0原文

下午好,

我有一个查询一个excel查询,我目前正在努力开始工作:

设置:

我有以下2行更大的桌子,我想输入“每行等级:

   Gender   Round   Score   Grade
    Male   Albion    550    
   Female  Windsor   894    

我有点从下表中提取等级,其中等级是从技术上讲的列标题:

Gender  Round   GMB MB   B  1st 2nd 3rd
Male    Albion  890 840 746 590 435 257
Female  Windsor 931 895 828 713 584 402

例如,公式将确定:

分数为550的男性Albion将是二年级。 得分为894的女性温莎将是B级。

这可以做到吗?通常我会展示我的工作,但我对此完全不了解。

提前致谢。

干杯

Good afternoon,

I have a query an Excel query that I'm currently struggling to even start working through:

Setup:

I have the following 2 rows of a much larger table where I want to input a "Grade for each row:

   Gender   Round   Score   Grade
    Male   Albion    550    
   Female  Windsor   894    

I somehow have to extract the Grade from the following table, where Grade is technically the column headers:

Gender  Round   GMB MB   B  1st 2nd 3rd
Male    Albion  890 840 746 590 435 257
Female  Windsor 931 895 828 713 584 402

For instance the formula would identify that:

A male Albion with score 550 would be a 2nd grade.
A female Windsor with score 894 would be a B grade.

Can this be done, and how? Usually I'd show my working but I'm completely out of my depth with this.

Thanks in advance.

Cheers

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

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

发布评论

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

评论(1

轮廓§ 2025-02-07 00:04:59

如果您有办公室365

  • 名称您的大表格scores
=LET(x,INDEX(FILTER(Scores,(Scores[Gender]=K8)*(Scores[Round]=L8)),0, SEQUENCE(COLUMNS(Scores)-2,,3)),
     y, INDEX(SORT(x),MATCH(M8,SORT(x))),
     z, XMATCH(y,x),
     res, INDEX(Scores[#Headers],z+2),res)

“在此处输入图像说明”

带有较早版本,我建议使用VBA或POWER查询

If you have Office 365

  • Name your big table Scores
=LET(x,INDEX(FILTER(Scores,(Scores[Gender]=K8)*(Scores[Round]=L8)),0, SEQUENCE(COLUMNS(Scores)-2,,3)),
     y, INDEX(SORT(x),MATCH(M8,SORT(x))),
     z, XMATCH(y,x),
     res, INDEX(Scores[#Headers],z+2),res)

enter image description here

With an earlier version, I'd suggest VBA or Power Query

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文