I have a very messy datafeed with no markers to define columns, for this reason I am left witth using formulas to populate cells
Has anyone any idea of how I can approach this
below is an example of what i have (Col B)
and what I need to create (Col D:H)
Sheet4
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 64px"><COL style="WIDTH: 743px"><COL style="WIDTH: 64px"><COL style="WIDTH: 109px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 72px"><COL style="WIDTH: 325px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD><TD>H</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD> </TD><TD>RawData</TD><TD> </TD><TD>Description</TD><TD>Weight</TD><TD>Price</TD><TD>£/Kg</TD><TD>Promo</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD> </TD><TD>King Prawn Tikka And Pilau Rice 475GAny 2 for £6.00 valid from 2/3/2011 until 22/3/2011£4.65 (£9.79/kg)</TD><TD> </TD><TD>King Prawn Tikka And Pilau Rice </TD><TD>475G</TD><TD style="TEXT-ALIGN: right">£4.65</TD><TD>(£9.79/kg)</TD><TD>Any 2 for £6.00 valid from 2/3/2011 until 22/3/2011</TD></TR></TBODY></TABLE>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
I have managed to get the £/Kg using this formula
In G2
but am stuck on the rest
There rules appear to be
Martin
Has anyone any idea of how I can approach this
below is an example of what i have (Col B)
and what I need to create (Col D:H)
Sheet4
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 64px"><COL style="WIDTH: 743px"><COL style="WIDTH: 64px"><COL style="WIDTH: 109px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 72px"><COL style="WIDTH: 325px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD><TD>H</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD> </TD><TD>RawData</TD><TD> </TD><TD>Description</TD><TD>Weight</TD><TD>Price</TD><TD>£/Kg</TD><TD>Promo</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD> </TD><TD>King Prawn Tikka And Pilau Rice 475GAny 2 for £6.00 valid from 2/3/2011 until 22/3/2011£4.65 (£9.79/kg)</TD><TD> </TD><TD>King Prawn Tikka And Pilau Rice </TD><TD>475G</TD><TD style="TEXT-ALIGN: right">£4.65</TD><TD>(£9.79/kg)</TD><TD>Any 2 for £6.00 valid from 2/3/2011 until 22/3/2011</TD></TR></TBODY></TABLE>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
I have managed to get the £/Kg using this formula
Code:
=MID(B2,FIND("(",B2),LEN(B2))
but am stuck on the rest
There rules appear to be
- Description
- Weight
- Promo (If any)
- Price
- £/Kg
- start of cell to first number
- First found number to Character "G"
- no idea
- find"£" to find"("-2 (there always seems to be a space between them)
- find open and closing brackets (which I've done)
Martin