我在Excel电子表格中有40列和数百行。
Range C6:AQ6, C7:AQ7, C8:AQ8, and so on
CASE 1: Only one cell in the range D6:AQ6 usually contains a value.
CASE 2: In some rare cases, more than one cell OR no cells contain a value in this range.
这是我想要完成的事情:
If CASE 1: Populate the cell C6 with the value in the only cell in the range D6:AQ6.
If CASE 2: Leave C6 blank
如何使用Excel公式执行此操作?
答案 0 :(得分:1)
将此公式输入Cell C6:
=IF(COUNTA(D6:AQ6)=1,INDEX(D6:AQ6,Match("*",D6:AQ6,0)),"")
工作原理: