Re: Help needed: if (xx in cell) - then insert (column title)
From this:
[TABLE="width: 1305"]
<!--StartFragment--> <colgroup><col width="87" span="6" style="width:65pt"> <col width="87" style="width:65pt"> <col width="87" span="8" style="width:65pt"> </colgroup><tbody>[TR]
[TD="class: xl89, width: 87"]date[/TD]
[TD="class: xl65, width: 87"]w22[/TD]
[TD="class: xl66, width: 87"]w12[/TD]
[TD="class: xl67, width: 87"]CAG[/TD]
[TD="class: xl68, width: 87"]PM[/TD]
[TD="class: xl66, width: 87"]CT[/TD]
[TD="class: xl66, width: 87"]MR[/TD]
[TD="class: xl90, width: 87"]EKKO[/TD]
[TD="class: xl91, width: 87"]SE/AE[/TD]
[TD="class: xl69, width: 174, colspan: 2"]Administration[/TD]
[TD="class: xl92, width: 87"]FRIKØBT[/TD]
[TD="class: xl93, width: 87"]Journalclub[/TD]
[TD="class: xl63, width: 174, colspan: 2"]Kongress[/TD]
[/TR]
[TR]
[TD="class: xl94, align: right"]1[/TD]
[TD="class: xl71, bgcolor: #92D050"] OK* AS**[/TD]
[TD="class: xl72, bgcolor: #92D050"]CT SG[/TD]
[TD="class: xl73, bgcolor: #92D050"]evt[/TD]
[TD="class: xl72, bgcolor: #92D050"]MK/SK[/TD]
[TD="class: xl72, bgcolor: #92D050"]IH[/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl72, bgcolor: #92D050"]TH[/TD]
[TD="class: xl75, bgcolor: #92D050"]KZ*[/TD]
[TD="class: xl76, bgcolor: #92D050, colspan: 2"] JD MH[/TD]
[TD="class: xl78"] [/TD]
[TD="class: xl74, bgcolor: #92D050"]EH[/TD]
[TD="class: xl79, bgcolor: #92D050, colspan: 2"]JJ HR MS JP[/TD]
[/TR]
[TR]
[TD="class: xl96, align: right"]2[/TD]
[TD="class: xl71, bgcolor: #92D050"]OK MH CV*[/TD]
[TD="class: xl72, bgcolor: #92D050"] MS IH AP[/TD]
[TD="class: xl73, bgcolor: #92D050"]evt[/TD]
[TD="class: xl72, bgcolor: #92D050"]SH[/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl80, bgcolor: #92D050"]JA[/TD]
[TD="class: xl75, bgcolor: #92D050"]TS[/TD]
[TD="class: xl81, bgcolor: #92D050, colspan: 2"] JD AS[/TD]
[TD="class: xl83, bgcolor: #92D050"]SK HD[/TD]
[TD="class: xl84"] [/TD]
[TD="class: xl71, bgcolor: #92D050, colspan: 2"]JJ HR AH EH[/TD]
[/TR]
[TR]
[TD="class: xl97, align: right"]3[/TD]
[TD="class: xl85, bgcolor: #92D050"]IH*'[/TD]
[TD="class: xl74, bgcolor: #92D050"]EH[/TD]
[TD="class: xl86"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl74"] [/TD]
[TD="class: xl87"] [/TD]
[TD="class: xl88"] [/TD]
[TD="class: xl85, bgcolor: #92D050, colspan: 2"]JJ[/TD]
[/TR]
[TR]
[TD="class: xl98, align: right"]4[/TD]
[TD="class: xl99, bgcolor: #92D050"]JA**[/TD]
[TD="class: xl100, bgcolor: #92D050"]IH[/TD]
[TD="class: xl100"] [/TD]
[TD="class: xl100"] [/TD]
[TD="class: xl100"] [/TD]
[TD="class: xl100, bgcolor: #92D050"]EH[/TD]
[TD="class: xl100"] [/TD]
[TD="class: xl100"] [/TD]
[TD="class: xl100"] [/TD]
[TD="class: xl100"] [/TD]
[TD="class: xl101"] [/TD]
[TD="class: xl102"] [/TD]
[TD="class: xl103, colspan: 2"] [/TD]
[/TR]
<!--EndFragment--></tbody>[/TABLE]
To this:
[TABLE="width: 174"]
<!--StartFragment--> <colgroup><col width="87" span="2" style="width:65pt"> </colgroup><tbody>[TR]
[TD="class: xl67, width: 87"]date[/TD]
[TD="class: xl65, width: 87, bgcolor: #92D050"]EH[/TD]
[/TR]
[TR]
[TD="class: xl68"]1[/TD]
[TD="class: xl63, bgcolor: #92D050"]Journalclub[/TD]
[/TR]
[TR]
[TD="class: xl69"]2[/TD]
[TD="class: xl64, bgcolor: #92D050"]Kongress[/TD]
[/TR]
[TR]
[TD="class: xl70"]3[/TD]
[TD="class: xl64, bgcolor: #92D050"]w12[/TD]
[/TR]
[TR]
[TD="class: xl71"]4[/TD]
[TD="class: xl66, bgcolor: #92D050"]MR[/TD]
[/TR]
<!--EndFragment--></tbody>[/TABLE]