Index & Match to make a booking calender

asafi

New Member
Joined
Jun 22, 2011
Messages
1
<table border="0" cellpadding="0" cellspacing="0" width="1096"><col style="mso-width-source:userset;mso-width-alt:2633;width:54pt" width="72"> <col style="mso-width-source:userset;mso-width-alt:4388;width:90pt" width="120"> <col style="mso-width-source:userset;mso-width-alt:2633; width:54pt" span="2" width="72"> <col style="mso-width-source:userset;mso-width-alt:2048;width:42pt" width="56"> <col style="width:48pt" span="11" width="64"> <tbody><tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;width:54pt" height="20" width="72">Customer</td> <td class="xl84" style="border-left:none;width:90pt" width="120">Vehicle </td> <td class="xl84" style="border-left:none;width:54pt" width="72">start</td> <td class="xl84" style="border-left:none;width:54pt" width="72">end</td> <td class="xl84" style="border-left:none;width:42pt" width="56">No days</td> <td class="xl84" style="border-left:none;width:48pt" width="64">Day1</td> <td class="xl84" style="border-left:none;width:48pt" width="64">day2</td> <td class="xl84" style="border-left:none;width:48pt" width="64">day3</td> <td class="xl84" style="border-left:none;width:48pt" width="64">day4</td> <td class="xl84" style="border-left:none;width:48pt" width="64">day5</td> <td class="xl84" style="border-left:none;width:48pt" width="64">Day6</td> <td class="xl84" style="border-left:none;width:48pt" width="64">Day7</td> <td class="xl84" style="border-left:none;width:48pt" width="64">Day8</td> <td style="width:48pt" width="64">
</td> <td style="width:48pt" width="64">
</td> <td style="width:48pt" width="64">
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">jack</td> <td class="xl84" style="border-top:none;border-left:none">Car</td> <td class="xl85" style="border-top:none;border-left:none">4/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">5/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">2</td> <td class="xl83" style="border-top:none;border-left:none">4-Jan</td> <td class="xl83" style="border-top:none;border-left:none">5-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">joe</td> <td class="xl84" style="border-top:none;border-left:none">truck</td> <td class="xl85" style="border-top:none;border-left:none">3/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">3/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">1</td> <td class="xl83" style="border-top:none;border-left:none">3-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">tess</td> <td class="xl84" style="border-top:none;border-left:none">bike</td> <td class="xl85" style="border-top:none;border-left:none">1/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">7/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">7</td> <td class="xl83" style="border-top:none;border-left:none">1-Jan</td> <td class="xl83" style="border-top:none;border-left:none">2-Jan</td> <td class="xl83" style="border-top:none;border-left:none">3-Jan</td> <td class="xl83" style="border-top:none;border-left:none">4-Jan</td> <td class="xl83" style="border-top:none;border-left:none">5-Jan</td> <td class="xl83" style="border-top:none;border-left:none">6-Jan</td> <td class="xl83" style="border-top:none;border-left:none">7-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">fany</td> <td class="xl84" style="border-top:none;border-left:none">moterbike</td> <td class="xl85" style="border-top:none;border-left:none">5/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">5/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">1</td> <td class="xl83" style="border-top:none;border-left:none">5-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">terry</td> <td class="xl84" style="border-top:none;border-left:none">Car</td> <td class="xl85" style="border-top:none;border-left:none">1/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">3/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">3</td> <td class="xl83" style="border-top:none;border-left:none">1-Jan</td> <td class="xl83" style="border-top:none;border-left:none">2-Jan</td> <td class="xl83" style="border-top:none;border-left:none">3-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">nick</td> <td class="xl84" style="border-top:none;border-left:none">moterbike</td> <td class="xl85" style="border-top:none;border-left:none">3/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">4/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">2</td> <td class="xl83" style="border-top:none;border-left:none">3-Jan</td> <td class="xl83" style="border-top:none;border-left:none">4-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">jack</td> <td class="xl84" style="border-top:none;border-left:none">bike</td> <td class="xl85" style="border-top:none;border-left:none">8/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">8/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">1</td> <td class="xl83" style="border-top:none;border-left:none">8-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">Barry</td> <td class="xl84" style="border-top:none;border-left:none">bike</td> <td class="xl85" style="border-top:none;border-left:none">7/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">7/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">1</td> <td class="xl83" style="border-top:none;border-left:none">7-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">barbera</td> <td class="xl84" style="border-top:none;border-left:none">truck</td> <td class="xl85" style="border-top:none;border-left:none">5/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">7/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">3</td> <td class="xl83" style="border-top:none;border-left:none">5-Jan</td> <td class="xl83" style="border-top:none;border-left:none">6-Jan</td> <td class="xl83" style="border-top:none;border-left:none">7-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">tamy</td> <td class="xl84" style="border-top:none;border-left:none">bus</td> <td class="xl85" style="border-top:none;border-left:none">1/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">3/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">3</td> <td class="xl83" style="border-top:none;border-left:none">1-Jan</td> <td class="xl83" style="border-top:none;border-left:none">2-Jan</td> <td class="xl83" style="border-top:none;border-left:none">3-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl84" style="height:15.0pt;border-top:none" height="20">Jan</td> <td class="xl84" style="border-top:none;border-left:none">bus</td> <td class="xl85" style="border-top:none;border-left:none">4/01/2011</td> <td class="xl85" style="border-top:none;border-left:none">7/01/2011</td> <td class="xl84" style="border-top:none;border-left:none">4</td> <td class="xl83" style="border-top:none;border-left:none">4-Jan</td> <td class="xl83" style="border-top:none;border-left:none">5-Jan</td> <td class="xl83" style="border-top:none;border-left:none">6-Jan</td> <td class="xl83" style="border-top:none;border-left:none">7-Jan</td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td class="xl83" style="border-top:none;border-left:none"> </td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td>
</td> <td>
</td> <td class="xl81"> </td> <td class="xl82" style="border-left:none" align="right">1-Jan</td> <td class="xl82" style="border-left:none" align="right">2-Jan</td> <td class="xl82" style="border-left:none" align="right">3-Jan</td> <td class="xl82" style="border-left:none" align="right">4-Jan</td> <td class="xl82" style="border-left:none" align="right">5-Jan</td> <td class="xl82" style="border-left:none" align="right">6-Jan</td> <td class="xl82" style="border-left:none" align="right">7-Jan</td> <td class="xl82" style="border-left:none" align="right">8-Jan</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td>
</td> <td>
</td> <td class="xl81" style="border-top:none">car</td> <td class="xl80" style="border-top:none;border-left:none">terry</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">jack</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td>
</td> <td>
</td> <td class="xl81" style="border-top:none">truck</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">joe</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">barbera</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td>
</td> <td>
</td> <td class="xl81" style="border-top:none">bike</td> <td class="xl80" style="border-top:none;border-left:none">tess</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">Barry</td> <td class="xl80" style="border-top:none;border-left:none">jack</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td>
</td> <td>
</td> <td class="xl81" style="border-top:none">moterbike</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">nick</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">fany</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td>
</td> <td>
</td> <td class="xl81" style="border-top:none">Bus</td> <td class="xl80" style="border-top:none;border-left:none">tamy</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">Jan</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td class="xl80" style="border-top:none;border-left:none">#N/A</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td colspan="16" style="height:15.0pt;mso-ignore:colspan" height="20">I tried this "=INDEX($A$2:$A$12,MATCH($D16&E$15,INDEX($B$2:$B$12&$F$2:$F$12,),0))" index match and index and that only indexes 2 colums only and i need to index day 1 with vehicle, day2 with vehicle, day3 with vehicle upto day 8 with vehicle?????</td> </tr> <tr style="height:15.0pt" height="20"> <td colspan="3" style="height:15.0pt;mso-ignore:colspan" height="20">How do i do that can anyone help????</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="mso-height-source:userset;height:6.0pt" height="8"> <td style="height:6.0pt" height="8">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td colspan="9" style="height:15.0pt;mso-ignore:colspan" height="20">and one more question how do i use =ISNA(a1) to make the name appear in each date field and not have the #N/A appear?</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> </tbody></table>
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top