JonElCanche
Board Regular
- Joined
- Aug 25, 2011
- Messages
- 59
I am close on this, but can't quite get it figured out. Thanks for the help!
Below is the data that I am working with. In a new cell I want to create a formula that will match the License # in column A with the correct Maintenance in column B and give me the latest date for that particular License # and Maintenance. The formula that I have tried so far is:
=if(and(columnA="KP3157", columnB="Adjust Valve Clearance), max(columnC), "N/A")
This formula almost works but it just gives the latest date entered in column C, 1/22/2012, and the answer should be 10/15/2011. Any ideas?
<table border="0" cellpadding="0" cellspacing="0" width="603"><col style="mso-width-source:userset;mso-width-alt:3437;width:71pt" width="94"> <col style="mso-width-source:userset;mso-width-alt:11629;width:239pt" width="318"> <col style="mso-width-source:userset;mso-width-alt:6985;width:143pt" width="191"> <tbody><tr><td style="vertical-align: top;"> A
</td><td style="vertical-align: top;"> B
</td><td style="vertical-align: top;"> C
</td></tr><tr><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td></tr><tr style="height:15.0pt" height="20"> <td class="xl66" style="height:15.0pt;width:71pt" height="20" width="94">License #</td> <td class="xl66" style="width:239pt" width="318">Maintenance
</td> <td class="xl66" style="width:143pt" width="191">Date</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Adjust Valve Clearance</td> <td class="xl65">8/25/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3164</td> <td class="xl64">Air Filter</td> <td class="xl65">9/22/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3175</td> <td class="xl64">Alignment</td> <td class="xl65">9/23/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Springs</td> <td class="xl65">10/10/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3168</td> <td class="xl64">Oxygen Sensor</td> <td class="xl65">10/30/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Adjust Valve Clearance</td> <td class="xl65">10/15/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3164</td> <td class="xl64">Air Filter</td> <td class="xl65">11/22/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3175</td> <td class="xl64">Alignment</td> <td class="xl65">11/23/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Springs</td> <td class="xl65">12/10/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3168</td> <td class="xl64">Oxygen Sensor</td> <td class="xl65">12/30/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Cap, Rotor, & Wire</td> <td class="xl65">1/22/2012</td> </tr> </tbody></table>
Below is the data that I am working with. In a new cell I want to create a formula that will match the License # in column A with the correct Maintenance in column B and give me the latest date for that particular License # and Maintenance. The formula that I have tried so far is:
=if(and(columnA="KP3157", columnB="Adjust Valve Clearance), max(columnC), "N/A")
This formula almost works but it just gives the latest date entered in column C, 1/22/2012, and the answer should be 10/15/2011. Any ideas?
<table border="0" cellpadding="0" cellspacing="0" width="603"><col style="mso-width-source:userset;mso-width-alt:3437;width:71pt" width="94"> <col style="mso-width-source:userset;mso-width-alt:11629;width:239pt" width="318"> <col style="mso-width-source:userset;mso-width-alt:6985;width:143pt" width="191"> <tbody><tr><td style="vertical-align: top;"> A
</td><td style="vertical-align: top;"> B
</td><td style="vertical-align: top;"> C
</td></tr><tr><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td></tr><tr style="height:15.0pt" height="20"> <td class="xl66" style="height:15.0pt;width:71pt" height="20" width="94">License #</td> <td class="xl66" style="width:239pt" width="318">Maintenance
</td> <td class="xl66" style="width:143pt" width="191">Date</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Adjust Valve Clearance</td> <td class="xl65">8/25/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3164</td> <td class="xl64">Air Filter</td> <td class="xl65">9/22/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3175</td> <td class="xl64">Alignment</td> <td class="xl65">9/23/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Springs</td> <td class="xl65">10/10/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3168</td> <td class="xl64">Oxygen Sensor</td> <td class="xl65">10/30/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Adjust Valve Clearance</td> <td class="xl65">10/15/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3164</td> <td class="xl64">Air Filter</td> <td class="xl65">11/22/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3175</td> <td class="xl64">Alignment</td> <td class="xl65">11/23/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Springs</td> <td class="xl65">12/10/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3168</td> <td class="xl64">Oxygen Sensor</td> <td class="xl65">12/30/2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl64" style="height:15.0pt" height="20">KP3157</td> <td class="xl64">Cap, Rotor, & Wire</td> <td class="xl65">1/22/2012</td> </tr> </tbody></table>