[英]How to find the first cell with a specific value in each row?
I am looking for a formula or macro that will return the first cell in which a specified value occurs by row. 我正在寻找一个公式或宏,它将返回按行出现指定值的第一个单元格。 For example, Column A would be EMPLOYEE NAME, Column B would be MANAGER LEVEL 1, Column C would be MANAGER LEVEL 2.... so on.
例如,列A将是雇员名称,列B将是经理级别1,列C将是经理级别2。 Some managers are certified, which will be indicated by their name - Brian (Certified) or Brian if not certified.
有些经理是经过认证的,并会以其姓名表示-布莱恩(Certified)或未认证的布莱恩。
Using the above example, I want to find the lowest level manager who is certified for each employee. 使用上面的示例,我想找到为每位员工认证的最低级别的经理。 That is, ColumnF results as shown under the header:
也就是说,ColumnF的结果如标题下所示:
Function findCertified(row As Integer)
findCertified = Sheet1.Rows(row).Find("(Certified)").Value
End Function
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.