公式找到Excel中范围的第一个非空白单元格的标题索引? [英] Formula to find the header index of the first non blank cell of a range in Excel?

查看:413
本文介绍了公式找到Excel中范围的第一个非空白单元格的标题索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个表,可以看作是一个基本的自定义甘特图:

I have this table, which can be seen as a basic custom gantt chart:

我想填写A列的开始日期,基于范围的第一个填充单元格同一行,以及其相应列的标题值(行1)。显示我的预期结果比实际写的更容易:

And I would like to fill the A column with start dates, based on the first filled cell of the range on the same row, and the header value of its respective column (row 1). It's easier to show my expected result than write it actually:

非常感谢您的帮助!

推荐答案

在A2中,尝试将此公式复制

In A2 try this formula copied down

= IF(COUNTA(B2:Z2),INDEX(B $ 1:Z $ 1, MATCH(TRUE,INDEX(B2:Z2,0),0)),)

将列A格式化为所需的日期格式

you may have to format column A with the required date format

将数据置于列Z之前,根据需要进行调整

assumes data up to column Z, adjust as required

这篇关于公式找到Excel中范围的第一个非空白单元格的标题索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆