# Thread: Convert Footy Fixtures (2002)

1. ## Convert Footy Fixtures (2002)

Evening all,

I'm sure Somebody has done this before, or at least I hope they have. I want to convert the attached footy fixtures data, (copied from a website) into a table.
Please see attached. Using formula's or code?

Cheers

2. ## Re: Convert Footy Fixtures (2002)

The attached workbook does most of what you want using formulas in the second worksheet. The only thing that goes wrong is the R1 for the Carling Cup.

3. ## Re: Convert Footy Fixtures (2002)

Cheers Hans, spot on what I wanted. I want to duplicate this several times over and am unfarmiliar with the offset method. How do the formulas change if the data were to start in A1 on the first sheet?

4. ## Re: Convert Footy Fixtures (2002)

You'd have to decrease all the row offsets by 5 (since A6 moves to A1).
The attached version also corrects the Carling Cup, R1 problem.

5. ## Re: Convert Footy Fixtures (2002)

As Pop Larkin would haved said, Perfick!!

I don't suppose that you have 'an idiot's guide to the offset syntax' lying around going spare? [cheekygrin]

6. ## Re: Convert Footy Fixtures (2002)

The OFFSET function itself isn't complicated, see for example How to use the OFFSET function in Excel.
To refer to the correct cell in Sheet1, I used a row offset from the fixed cell A1; the column offset is 0 in all formulas.
The football matches occur at an interval of 4 rows, while the table in Sheet2 has 1 row for each match.
So the row offset uses ROW()*4, i.e. 4 times the row number of the cell with the formula. Depending on whether the formula refers to the first, second or third row for a match on Sheet1, the value of ROW()*4 is decreased by 8, 7 or 6.

Note: I didn't build the formulas in one go, I actually used several auxiliary columns with intermediate formulas to calculate the position of the comma or of " v " etc., then substituted the intermediate formulas in the ones you see now.

7. ## Re: Convert Footy Fixtures (2002)

Thankyou Hans!

8. ## Re: Convert Footy Fixtures (2002)

Here is yet another version in which the formulas use a set of defined names (you can view their definitions in Insert | Name | Define).
This has the following advantages:
- The formulas become shorter (and hopefully a teeny tiny bit clearer)
- The formulas are easier to maintain.
- The file size of the workbook decreases significantly.

9. ## Re: Convert Footy Fixtures (2002)

<img src=/S/clapping.gif border=0 alt=clapping width=19 height=23> <img src=/S/clever.gif border=0 alt=clever width=15 height=15> <img src=/S/cool.gif border=0 alt=cool width=15 height=15> <img src=/S/hailpraise.gif border=0 alt=hailpraise width=27 height=22> [smartarse] <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

<img src=/S/thewave.gif border=0 alt=thewave width=225 height=33> <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

10. It's that time of year again, hip hip.......

Hans kindly assisted me with this last year. I'd like the date to show as "dd mmm yy" but formatting the date does not work.

How can I show "=TheDate" which refers to "=MID(Row1,Pos1Comma1+2,100)" as "dd mmm yy"? Thanks

[attachment=84329:FootyFixtures.xls]

PS: What causes the 'privacy warning' when saving the file?

11. The MID function returns a text value, not a date. To convert the result to a date, you can change the definition of TheDate (in Insert | Name | Define... or whatever its equivalent in Excel 2007 is) to

=DATEVALUE(MID(Row1,Pos1Comma1+2,100))

The date format will work correctly after that.

The workbook has been set to remove personal information upon save. Sometimes Excel gets confused about what constitutes personal information and displays a bogus warning.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•