petethecat
Board Regular
- Joined
- Oct 25, 2011
- Messages
- 63
I want to interrogate some data that is only available in a certain format & can change every day. The objective is to extract the data under the "header" so that ultimately i can use a VLOOKUP to get what i want from the data.
This is how it looks at present:
<colgroup><col span="5"><col><col span="3"></colgroup><tbody>
</tbody>
What i want to do is have a new column that identifies the area (LEG4, LEG5 LEG7 In bold/italics) and what ever is under that is called the heading. IE in a column next to T2001 I would want to have "LEG 4" shown. Same in T2002 Etc until we get to LEG5 where i would want to show LEG5 against T2002B & so on all the way down.
I have attempted If/AND but i come unstuck when we get further down the list as the statement does not cover all the scenarios.
This must be a simple thing to rectify but i cant for the life in me think what it is!
Any help is greatly appreciated.
This is how it looks at present:
0 | 0 | 0 | Leg 4 | 0 | 0 | 0 | ||
T2001A | 0 | 2500 | SF632V(1) | MB | 7604 | 1013904 | ||
T2002A | 0 | 2500 | SF632V(1) | MB | 7604 | 1013901 | ||
T2003A | 0 | 1200 | SF632V(1) | MB | 7604 | 1013905 | ||
T2004A | 0 | 2500 | SF632V(1) | MB | 7604 | 1013630 | ||
T2006A | 0 | 1200 | SF632V(2) | MB | 7604 | 1013902 | ||
T2007A | 0 | 1200 | SF632V(2) | MB | 7604 | 1013629 | ||
T2008A | 0 | 3600 | 0 | 0 | 0 | 0 | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
T2044 | 0 | 0 | SF632V(2) | MB | 7604 | 1013625 | ||
0 | 0 | 0 | Leg 5 | 0 | 0 | 0 | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
T2002B | 0 | 0 | DF770E(1) | VS | 6233 | 1013809 | ||
T202 | 0 | 0 | DF770E(2) | VS | 6233 | 1013810 | ||
A300 | 0 | 0 | DF578E(1) | JL | 5976 | 1013805 | ||
0 | 0 | 0 | DF578E(2) | JL | 5976 | 1013806 | ||
0 | 0 | 0 | DF770E(1) | VS | 6233 | 1014077 | ||
0 | 0 | 0 | DF770E(2) | VS | 6233 | 1014078 | ||
0 | 0 | 0 | Leg 7 | 0 | 0 | 0 | ||
T880 | 0 | 0 | SF630VCM(1) | VW | 6380 | 1013819 | ||
T881 | 0 | 0 | SF630VCM(1) | VW | 6381 | 1013817 | ||
T882 | 0 | 0 | 0 | 0 | 0 | 0 | ||
T883 | 0 | 0 | SF630VCM(2) | VW | 6381 | 1013818 | ||
T884 | 0 | 0 | SF630VCM(2) | VW | 6380 | 1013820 | ||
T885 | 0 | 0 | SF630VCM(2) | VW | 6381 | 1013816 | ||
T886 | 0 | 0 | DW2114LB(1) | LB | 6133 | 1014105 |
<colgroup><col span="5"><col><col span="3"></colgroup><tbody>
</tbody>
What i want to do is have a new column that identifies the area (LEG4, LEG5 LEG7 In bold/italics) and what ever is under that is called the heading. IE in a column next to T2001 I would want to have "LEG 4" shown. Same in T2002 Etc until we get to LEG5 where i would want to show LEG5 against T2002B & so on all the way down.
I have attempted If/AND but i come unstuck when we get further down the list as the statement does not cover all the scenarios.
This must be a simple thing to rectify but i cant for the life in me think what it is!
Any help is greatly appreciated.