Joneye
Well-known Member
- Joined
- May 28, 2010
- Messages
- 785
- Office Version
- 365
- 2019
- Platform
- Windows
- MacOS
My objective here is to have an IF / AND statement report back the term in months by looking at Cell G for out or in...
The answer if correct should be 75 if wrong "no". (at present im getting "NO" as the answer - no idea why)
I hope I have explained the above ok?
<b>Excel 2003</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">13</td><td style="background-color: #FFFF00;;">Term in Storage</td><td style=";">Building</td><td style=";">Description</td><td style=";">Account Code</td><td style=";">Code</td><td style=";">Alternate Code</td><td style=";">Item Status</td><td style=";">Add Date</td><td style=";">Status Date</td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="background-color: #FFFF00;;">no</td><td style=";">ENF</td><td style="text-align: right;;"></td><td style="text-align: right;;">1</td><td style="text-align: right;;">6695250</td><td style="text-align: right;;"></td><td style=";">Out</td><td style="text-align: right;;">02/03/2005</td><td style="text-align: right;;">03/03/2005</td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="background-color: #FFFF00;;">no</td><td style=";">ENF</td><td style="text-align: right;;"></td><td style="text-align: right;;">1</td><td style="text-align: right;;">6695254</td><td style="text-align: right;;"></td><td style=";">In</td><td style="text-align: right;;">02/03/2005</td><td style="text-align: right;;">03/03/2005</td></tr></tbody></table><p style="width:10.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">2. Crown Inventory</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><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 width="10px" style=" background-color: #E0E0F0;color: #161120">A14</th><td style="text-align:left">=IF(<font color="Blue">AND(<font color="Red">G14="Out",G14="In",0</font>),DATEDIF(<font color="Red">H14,NOW(<font color="Green"></font>),"M"</font>),"no"</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A15</th><td style="text-align:left">=IF(<font color="Blue">AND(<font color="Red">G15="Out",G15="In",0</font>),DATEDIF(<font color="Red">H15,NOW(<font color="Green"></font>),"M"</font>),"no"</font>)</td></tr></tbody></table></td></tr></table><br />
The answer if correct should be 75 if wrong "no". (at present im getting "NO" as the answer - no idea why)
I hope I have explained the above ok?
<b>Excel 2003</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">13</td><td style="background-color: #FFFF00;;">Term in Storage</td><td style=";">Building</td><td style=";">Description</td><td style=";">Account Code</td><td style=";">Code</td><td style=";">Alternate Code</td><td style=";">Item Status</td><td style=";">Add Date</td><td style=";">Status Date</td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="background-color: #FFFF00;;">no</td><td style=";">ENF</td><td style="text-align: right;;"></td><td style="text-align: right;;">1</td><td style="text-align: right;;">6695250</td><td style="text-align: right;;"></td><td style=";">Out</td><td style="text-align: right;;">02/03/2005</td><td style="text-align: right;;">03/03/2005</td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="background-color: #FFFF00;;">no</td><td style=";">ENF</td><td style="text-align: right;;"></td><td style="text-align: right;;">1</td><td style="text-align: right;;">6695254</td><td style="text-align: right;;"></td><td style=";">In</td><td style="text-align: right;;">02/03/2005</td><td style="text-align: right;;">03/03/2005</td></tr></tbody></table><p style="width:10.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">2. Crown Inventory</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><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 width="10px" style=" background-color: #E0E0F0;color: #161120">A14</th><td style="text-align:left">=IF(<font color="Blue">AND(<font color="Red">G14="Out",G14="In",0</font>),DATEDIF(<font color="Red">H14,NOW(<font color="Green"></font>),"M"</font>),"no"</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A15</th><td style="text-align:left">=IF(<font color="Blue">AND(<font color="Red">G15="Out",G15="In",0</font>),DATEDIF(<font color="Red">H15,NOW(<font color="Green"></font>),"M"</font>),"no"</font>)</td></tr></tbody></table></td></tr></table><br />