Show the column header to a row if there is value in cells of that columns without VBA

后端 未结 4 347
刺人心
刺人心 2021-01-13 15:56

Update 1:

Because my question is not clear, so I post second example

\"Example

Because row

4条回答
  •  迷失自我
    2021-01-13 16:58

    I assume that when you say "column header" you really mean "row header".

    Considering that the first cell (containing the text "Column Header") is at A1 this is the formula you have to introduce in cell A2:

    =IF(B2>0, $B$1, IF(C2>0, $C$1, IF(D2>0, $D$1, "")))
    

    Drag this formula down on as many rows as you need and it'll (hopefully) achieve what you want.

提交回复
热议问题