View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.setup
rama[_2_] rama[_2_] is offline
external usenet poster
 
Posts: 1
Default TRANSPOSE COLUMN HEADING WITH CONDITION

Hello,
I have some MS Excel worksheets (chart,) which are having data in rows
and related effects are marked as column headings. Each row is
connected to the effects with a marking as below.

T-100 T-101 T-102 T-103
A-123 X X X X
B-234 X X X
B-334 X X

The cell A1 is blank, A2 onwards contains some tags which are
connected to the effect using a ‘X’ mark and the first effect is
marked in B1,and subsequent cells, C1, D1, E1, F1, G1, H1,... etc.
contains effects. I am looking for some help to convert this data in
B1, C1, D1, E1, F1, G1, H1,... etc. (column heading) as marked below
using macro or function. Tag in cell A2 should bring the effect marked
in cell B1, if X mark is there in B2. Where ever X markings are there
bring the cell values in B1, C1, D1, E1, F1, G1, H1,... etc. rows,
transpose it and bring it to rows next to the tag in A2. Please see
the below example.
A-123 T-100
T-101
T-102
T-103
B-234 T-100
T-102
T-103
B-334 T-101
T-103
Please help me to solve this problem. Thanks in advance.
Rama