I have been trying to resolve this problem for months.
I would like to have a formula that produces a date code (format ddmmyyyy00) in J col based on "y" criteria in H col OR I col. At the moment I get it to work by using a helper cell with IF(OR) formula & this works. Ideally I want one formula in J col & do away with helper cell.
See below TIA.
Excel 2003<table rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6" cellpadding="2.5px"><colgroup><col style="background-color: #E0E0F0" width="25px"><col><col><col><col><col><col></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th>
</th><th>A</th><th>E</th><th>H</th><th>I</th><th>J</th><th>O</th></tr></thead><tbody><tr><td style="color: #161120;text-align: center;">2</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Date</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Description</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Liquid Sample taken</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Solid Sample taken</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Sample ID</td><td style="font-weight: bold;text-align: center;;">
</td></tr><tr><td style="color: #161120;text-align: center;">27</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">25/01/12</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">RS</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">
</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">
</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">
</td><td style="font-weight: bold;text-align: center;border-left: 1px solid black;;">
</td></tr><tr><td style="color: #161120;text-align: center;">28</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">27/01/12</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">CP</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">y</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">y</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">2701201201</td><td style="font-weight: bold;text-align: center;border-left: 1px solid black;;">1</td></tr><tr><td style="color: #161120;text-align: center;">29</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">27/01/12</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">CP</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">
</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">y</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">2701201202</td><td style="font-weight: bold;text-align: center;border-left: 1px solid black;;">1</td></tr></tbody></table>
<table rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" cellpadding="2.5px" width="85%"><tbody><tr><td style="padding:6px">Worksheet Formulas<table rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6" cellpadding="2.5px" width="100%"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">J27</th><td style="text-align:left">=IF(OR(H27="y",I27="y"),TEXT(A27,"ddmmyyyy")&TEXT(SUMPRODUCT(($A$3:A27=A27)*($O$3:O27=1)),"00"),"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">J28</th><td style="text-align:left">=IF(OR(H28="y",I28="y"),TEXT(A28,"ddmmyyyy")&TEXT(SUMPRODUCT(($A$3:A28=A28)*($O$3:O28=1)),"00"),"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">J29</th><td style="text-align:left">=IF(OR(H29="y",I29="y"),TEXT(A29,"ddmmyyyy")&TEXT(SUMPRODUCT(($A$3:A29=A29)*($O$3:O29=1)),"00"),"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">O27</th><td style="text-align:left">=IF(OR(H27="Y",I27="Y"),1,"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">O28</th><td style="text-align:left">=IF(OR(H28="Y",I28="Y"),1,"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">O29</th><td style="text-align:left">=IF(OR(H29="Y",I29="Y"),1,"")</td></tr></tbody></table></td></tr></tbody></table>
I would like to have a formula that produces a date code (format ddmmyyyy00) in J col based on "y" criteria in H col OR I col. At the moment I get it to work by using a helper cell with IF(OR) formula & this works. Ideally I want one formula in J col & do away with helper cell.
See below TIA.

Excel 2003<table rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6" cellpadding="2.5px"><colgroup><col style="background-color: #E0E0F0" width="25px"><col><col><col><col><col><col></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th>
</th><th>A</th><th>E</th><th>H</th><th>I</th><th>J</th><th>O</th></tr></thead><tbody><tr><td style="color: #161120;text-align: center;">2</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Date</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Description</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Liquid Sample taken</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Solid Sample taken</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">Sample ID</td><td style="font-weight: bold;text-align: center;;">
</td></tr><tr><td style="color: #161120;text-align: center;">27</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">25/01/12</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">RS</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">
</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">
</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">
</td><td style="font-weight: bold;text-align: center;border-left: 1px solid black;;">
</td></tr><tr><td style="color: #161120;text-align: center;">28</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">27/01/12</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">CP</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">y</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">y</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">2701201201</td><td style="font-weight: bold;text-align: center;border-left: 1px solid black;;">1</td></tr><tr><td style="color: #161120;text-align: center;">29</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">27/01/12</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">CP</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">
</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">y</td><td style="font-weight: bold;text-align: center;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;;">2701201202</td><td style="font-weight: bold;text-align: center;border-left: 1px solid black;;">1</td></tr></tbody></table>
Receipting
<table rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" cellpadding="2.5px" width="85%"><tbody><tr><td style="padding:6px">Worksheet Formulas<table rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6" cellpadding="2.5px" width="100%"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">J27</th><td style="text-align:left">=IF(OR(H27="y",I27="y"),TEXT(A27,"ddmmyyyy")&TEXT(SUMPRODUCT(($A$3:A27=A27)*($O$3:O27=1)),"00"),"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">J28</th><td style="text-align:left">=IF(OR(H28="y",I28="y"),TEXT(A28,"ddmmyyyy")&TEXT(SUMPRODUCT(($A$3:A28=A28)*($O$3:O28=1)),"00"),"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">J29</th><td style="text-align:left">=IF(OR(H29="y",I29="y"),TEXT(A29,"ddmmyyyy")&TEXT(SUMPRODUCT(($A$3:A29=A29)*($O$3:O29=1)),"00"),"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">O27</th><td style="text-align:left">=IF(OR(H27="Y",I27="Y"),1,"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">O28</th><td style="text-align:left">=IF(OR(H28="Y",I28="Y"),1,"")</td></tr><tr><th style=" background-color: #E0E0F0;color: #161120" width="10px">O29</th><td style="text-align:left">=IF(OR(H29="Y",I29="Y"),1,"")</td></tr></tbody></table></td></tr></tbody></table>