I am trying to concatenate col and row headers based on the cell value. Sample data is added as below.
Sample data:

Wherever cell value is '1' then row and col headers needs to be concatenated and written into a new worksheet. Sample result is as below. I am a beginner and still trying to learn so any help I can get is greatly appreciated.
Result:

