如何编写Excel公式以返回列标题名称
我希望允许用户选择模块。深入研究,用户可以选择课程提纲上的基础。此后,它将告诉他们哪些课程(又称列标题),该课程与“ Y”相匹配的条件基础。
示例如果选择了以下内容: - 数据治理(政策和过程) - 数据分析项目(问题声明制定) - 数据探索(探索性分析) - 数据探索(机器学习) 这都将返回CourseID1& CourseID2,如果选择数据分析项目(数据处理&ENCLICS)将无法返回CourseID1。只有CourseID2将退还
我附上了Excel桌子的屏幕截图。流量如下: 步骤1:用户选择模块 步骤2:用户选择与模块绑定的教学大纲(步骤1的相关选择) 步骤3:显示合适课程的输出!
如何编写这样的公式?
我使用的公式是错误的,
=INDEX($A$1:$E$1,SUMPRODUCT(MAX(($A$2:$E$72="Y")*($B$2:$B$72=B2)*(COLUMN($A$2:$E$72))))-COLUMN($A$1)+1)
当选择正确的标准时,它不会返回CourseID1和CourseID2。
I am looking to allow users to select the modules. Diving deeper, the users can select base on syllabus. Thereafter, it will tell them which courses (aka the column header), which matches the condition base on the rows with "Y".
Example If the following is selected: - Data Governance (Policy and Process) - Data Analytics Project (Problem Statement Formulation) - Data Exploration (Exploratory Analysis) - Data Exploration (Machine Learning) It will all return both CourseID1 & CourseID2, If Data Analytics Project (Data Handling & Ethics) selected it will not return CourseID1. Only CourseID2 will be returned
I have attached a screen shot of the Excel Table. The flow is as follows:
step 1: user selects module
step 2: user select the syllabus that's tied to the module (a dependent selection from step 1)
step3: Output for the suitable courses is shown!
How to write such formula?
The formula I used was wrong
=INDEX($A$1:$E$1,SUMPRODUCT(MAX(($A$2:$E$72="Y")*($B$2:$B$72=B2)*(COLUMN($A$2:$E$72))))-COLUMN($A$1)+1)
It does not return both CourseID1 and CourseID2 when the right criteria is being selected.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,假设您正在使用 o365
/code>使用
filterxml()
,xlookup()
,textjoin()
,index()
,替换()
&column()
函数。或,如果您使用的是 o365 ,并且目前在 Office Insiders Beta Channel版本中,然后使用
textsplit()
而不是filterxml()
•单元格中使用的公式
a18
So, this is what I have tried, assuming you are using O365
• Formula used in cell
A17
usingFILTERXML()
,XLOOKUP()
,TEXTJOIN()
,INDEX()
,SUBSTITUTE()
&COLUMN()
functions.Or, If you are using O365 and presently in Office Insiders Beta Channel Version then using
TEXTSPLIT()
instead ofFILTERXML()
• Formula used in cell
A18