Return Top cell in group of cells

rossn13

New Member
Joined
Jul 21, 2011
Messages
13
Hi there experts!

I have a list of football fixtures, example below (Had to remove team names due to some stupid rule preventing fixtures from being posted in forums).

What I want is for the date at the top of each group to appear in the cells to the right of each fixture.
The data is auto updated from an external source. They are also subject to change. So the size of groups, and position of fixtures will change. I need everything to adjust automatically.

Any ideas how I would go about this?

Cheers in advance :)



Table:

<table border="0" cellpadding="0" cellspacing="0" width="237"><colgroup><col style="mso-width-source:userset;mso-width-alt:8667;width:178pt" width="237"> </colgroup><tbody><tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt;width:178pt" height="20" width="237">Saturday, 13 August 2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 17:30</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">Sunday, 14 August 2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 13:30</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 16:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">Monday, 15 August 2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 20:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">Saturday, 20 August 2011</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 12:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 12:45</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 15:00</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">HOME v AWAY, 17:30</td> </tr> </tbody></table>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Managed to work something out if anybody's interested. I'm sure it's not the most efficient method :laugh:

Code:
=IF(OR(RIGHT(A11,1)="0",RIGHT(A11,1)="5"),IF(OR(RIGHT(A10,1)="0",RIGHT(A10,1)="5"),IF(OR(RIGHT(A9,1)="0",RIGHT(A9,1)="5"),IF(OR(RIGHT(A8,1)="0",RIGHT(A8,1)="5"),IF(OR(RIGHT(A7,1)="0",RIGHT(A7,1)="5"),IF(OR(RIGHT(A6,1)="0",RIGHT(A6,1)="5"),IF(OR(RIGHT(A5,1)="0",RIGHT(A5,1)="5"),IF(OR(RIGHT(A4,1)="0",RIGHT(A4,1)="5"),IF(OR(RIGHT(A3,1)="0",RIGHT(A3,1)="5"),IF(OR(RIGHT(A2,1)="0",RIGHT(A2,1)="5"),A1,A2),A3),A4),A5),A6),A7),A8),A9),A10),"")
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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