SHARRIS2013
New Member
- Joined
- Jan 3, 2013
- Messages
- 10
Hi guys!
I am struggling with a data extract that i need to reformat and hoping someone can assist
I have the below raw data in tab1, most of the fields in column h repeat themselves so i want to set these fields up as headings and then format the data as per example 2 in tab2. some fields, the first 12 rows denoted by column F 'flex udf' need to be applied to all of the other rows
[TABLE="width: 715"]
<TBODY>[TR]
[TD]REF</SPAN>[/TD]
[TD]TYPE</SPAN>[/TD]
[TD]E</SPAN>[/TD]
[TD]P</SPAN>[/TD]
[TD]CCY</SPAN>[/TD]
[TD]TYPE</SPAN>[/TD]
[TD]NAME</SPAN>[/TD]
[TD]VALUE1</SPAN>[/TD]
[TD]VALUE2</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]EX</SPAN>[/TD]
[TD]TEST</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]FLEX_UDF</SPAN>[/TD]
[TD]TK</SPAN>[/TD]
[TD]TARGET</SPAN>[/TD]
[TD]0.2</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]EX</SPAN>[/TD]
[TD]TEST</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]FLEX_UDF</SPAN>[/TD]
[TD]TK</SPAN>[/TD]
[TD]PAYTYP</SPAN>[/TD]
[TD]STRIP</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]EX</SPAN>[/TD]
[TD]TEST</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]FLEX_UDF</SPAN>[/TD]
[TD]TK</SPAN>[/TD]
[TD]EXPIRY</SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]EX</SPAN>[/TD]
[TD]TEST</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]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]
[TD]LEV2</SPAN>[/TD]
[TD]2
</SPAN>[/TD]
[/TR]
</TBODY>[/TABLE]
Example 2 - how i would like it to look (previously i recorded a macro copying and pasting and using filters which doesnt seem efficient)
[TABLE="width: 1724"]
<TBODY>[TR]
[TD]REF</SPAN>[/TD]
[TD]P</SPAN>[/TD]
[TD]CCY</SPAN>[/TD]
[TD]TARGET</SPAN>[/TD]
[TD]PAYTYP</SPAN>[/TD]
[TD]EXPIRY</SPAN>[/TD]
[TD]EXPFLW</SPAN>[/TD]
[TD]FIXFRO</SPAN>[/TD]
[TD]ACCPRO</SPAN>[/TD]
[TD]TAGTYP</SPAN>[/TD]
[TD]MUPROF</SPAN>[/TD]
[TD]CP</SPAN>[/TD]
[TD] DELIVE</SPAN>[/TD]
[TD] FIXSCH</SPAN>[/TD]
[TD]FIXTO</SPAN>[/TD]
[TD]FIXDAT</SPAN>[/TD]
[TD]QUODAT</SPAN>[/TD]
[TD]PAYDAT</SPAN>[/TD]
[TD]VALDAT</SPAN>[/TD]
[TD]STRIK1</SPAN>[/TD]
[TD]MPLY1</SPAN>[/TD]
[TD]STRIK2</SPAN>[/TD]
[TD]MPLY2</SPAN>[/TD]
[TD]STRIK3</SPAN>[/TD]
[TD]MPLY3</SPAN>[/TD]
[TD]STRIK4</SPAN>[/TD]
[TD]MPLY4</SPAN>[/TD]
[TD]LEV1</SPAN>[/TD]
[TD]PIVOT</SPAN>[/TD]
[TD]LEV2</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]0.2</SPAN>[/TD]
[TD]STRIP</SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD]YES</SPAN>[/TD]
[TD]20121205 </SPAN>[/TD]
[TD] 0.2</SPAN>[/TD]
[TD]CAPPED</SPAN>[/TD]
[TD]NO</SPAN>[/TD]
[TD]PUT_FIRST_CCY</SPAN>[/TD]
[TD] 20130207</SPAN>[/TD]
[TD] VOLA</SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD] 20121205</SPAN>[/TD]
[TD]20121205</SPAN>[/TD]
[TD]20121207</SPAN>[/TD]
[TD]20121204</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]2</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]0.2</SPAN>[/TD]
[TD]STRIP</SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD]YES</SPAN>[/TD]
[TD]20121205</SPAN>[/TD]
[TD] 0.2</SPAN>[/TD]
[TD]CAPPED</SPAN>[/TD]
[TD]NO</SPAN>[/TD]
[TD]PUT_FIRST_CCY</SPAN>[/TD]
[TD] 20130207</SPAN>[/TD]
[TD] VOLA </SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD] 20130107</SPAN>[/TD]
[TD]20130107</SPAN>[/TD]
[TD]20130109</SPAN>[/TD]
[TD]20130106</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]2</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]0.2</SPAN>[/TD]
[TD]STRIP</SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD]YES</SPAN>[/TD]
[TD]20121205</SPAN>[/TD]
[TD] 0.2</SPAN>[/TD]
[TD]CAPPED</SPAN>[/TD]
[TD]NO</SPAN>[/TD]
[TD]PUT_FIRST_CCY</SPAN>[/TD]
[TD] 20130207</SPAN>[/TD]
[TD] VOLA </SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD] 20130205 </SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD]20130207</SPAN>[/TD]
[TD]20130204</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]2</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL span=5><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP>[/TABLE]
sorry this isnt laid out very well but i wasn't sure how to attach a s/s to provide the data
once i have the data in the above format i would like to copy any rows into tab3 where
the 'fixdat' column = todays date
if anyone could help that would be amazing or pointing me in the right direction as to what code or formula would be suitable would also be great!
Thanks!
I am struggling with a data extract that i need to reformat and hoping someone can assist
I have the below raw data in tab1, most of the fields in column h repeat themselves so i want to set these fields up as headings and then format the data as per example 2 in tab2. some fields, the first 12 rows denoted by column F 'flex udf' need to be applied to all of the other rows
[TABLE="width: 715"]
<TBODY>[TR]
[TD]REF</SPAN>[/TD]
[TD]TYPE</SPAN>[/TD]
[TD]E</SPAN>[/TD]
[TD]P</SPAN>[/TD]
[TD]CCY</SPAN>[/TD]
[TD]TYPE</SPAN>[/TD]
[TD]NAME</SPAN>[/TD]
[TD]VALUE1</SPAN>[/TD]
[TD]VALUE2</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SP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>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]FLEX_VECTOR</SPAN>[/TD]
[TD]TK</SPAN>[/TD]
[TD]MPLY4</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]EX</SPAN>[/TD]
[TD]TEST</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]FLEX_VECTOR</SPAN>[/TD]
[TD]TK</SPAN>[/TD]
[TD]LEV1</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]EX</SPAN>[/TD]
[TD]TEST</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]FLEX_VECTOR</SPAN>[/TD]
[TD]TK</SPAN>[/TD]
[TD]PIVOT</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]EX</SPAN>[/TD]
[TD]TEST</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]FLEX_VECTOR</SPAN>[/TD]
[TD]TK</SPAN>[/TD]
[TD]LEV2</SPAN>[/TD]
[TD]2
</SPAN>[/TD]
[/TR]
</TBODY>[/TABLE]
Example 2 - how i would like it to look (previously i recorded a macro copying and pasting and using filters which doesnt seem efficient)
[TABLE="width: 1724"]
<TBODY>[TR]
[TD]REF</SPAN>[/TD]
[TD]P</SPAN>[/TD]
[TD]CCY</SPAN>[/TD]
[TD]TARGET</SPAN>[/TD]
[TD]PAYTYP</SPAN>[/TD]
[TD]EXPIRY</SPAN>[/TD]
[TD]EXPFLW</SPAN>[/TD]
[TD]FIXFRO</SPAN>[/TD]
[TD]ACCPRO</SPAN>[/TD]
[TD]TAGTYP</SPAN>[/TD]
[TD]MUPROF</SPAN>[/TD]
[TD]CP</SPAN>[/TD]
[TD] DELIVE</SPAN>[/TD]
[TD] FIXSCH</SPAN>[/TD]
[TD]FIXTO</SPAN>[/TD]
[TD]FIXDAT</SPAN>[/TD]
[TD]QUODAT</SPAN>[/TD]
[TD]PAYDAT</SPAN>[/TD]
[TD]VALDAT</SPAN>[/TD]
[TD]STRIK1</SPAN>[/TD]
[TD]MPLY1</SPAN>[/TD]
[TD]STRIK2</SPAN>[/TD]
[TD]MPLY2</SPAN>[/TD]
[TD]STRIK3</SPAN>[/TD]
[TD]MPLY3</SPAN>[/TD]
[TD]STRIK4</SPAN>[/TD]
[TD]MPLY4</SPAN>[/TD]
[TD]LEV1</SPAN>[/TD]
[TD]PIVOT</SPAN>[/TD]
[TD]LEV2</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]0.2</SPAN>[/TD]
[TD]STRIP</SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD]YES</SPAN>[/TD]
[TD]20121205 </SPAN>[/TD]
[TD] 0.2</SPAN>[/TD]
[TD]CAPPED</SPAN>[/TD]
[TD]NO</SPAN>[/TD]
[TD]PUT_FIRST_CCY</SPAN>[/TD]
[TD] 20130207</SPAN>[/TD]
[TD] VOLA</SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD] 20121205</SPAN>[/TD]
[TD]20121205</SPAN>[/TD]
[TD]20121207</SPAN>[/TD]
[TD]20121204</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]2</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]0.2</SPAN>[/TD]
[TD]STRIP</SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD]YES</SPAN>[/TD]
[TD]20121205</SPAN>[/TD]
[TD] 0.2</SPAN>[/TD]
[TD]CAPPED</SPAN>[/TD]
[TD]NO</SPAN>[/TD]
[TD]PUT_FIRST_CCY</SPAN>[/TD]
[TD] 20130207</SPAN>[/TD]
[TD] VOLA </SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD] 20130107</SPAN>[/TD]
[TD]20130107</SPAN>[/TD]
[TD]20130109</SPAN>[/TD]
[TD]20130106</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]2</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]TEST_R</SPAN>[/TD]
[TD]EUR/GBP</SPAN>[/TD]
[TD]0.2</SPAN>[/TD]
[TD]STRIP</SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD]YES</SPAN>[/TD]
[TD]20121205</SPAN>[/TD]
[TD] 0.2</SPAN>[/TD]
[TD]CAPPED</SPAN>[/TD]
[TD]NO</SPAN>[/TD]
[TD]PUT_FIRST_CCY</SPAN>[/TD]
[TD] 20130207</SPAN>[/TD]
[TD] VOLA </SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD] 20130205 </SPAN>[/TD]
[TD]20130205</SPAN>[/TD]
[TD]20130207</SPAN>[/TD]
[TD]20130204</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]1.1</SPAN>[/TD]
[TD]2</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL span=5><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP>[/TABLE]
sorry this isnt laid out very well but i wasn't sure how to attach a s/s to provide the data
once i have the data in the above format i would like to copy any rows into tab3 where
the 'fixdat' column = todays date
if anyone could help that would be amazing or pointing me in the right direction as to what code or formula would be suitable would also be great!
Thanks!