Hi,
First time on this forum so looking forward to improving my Excel skills here.
I'm not an Excel newbie but I'm not an expert either.
I've been building a tabular dataset using results posted on ResultsDB detailing English Premiership football results going back to season 2000-01. The ultimate aim is to have an extensive dataset to build a decent dashboard to practice my dashboard building skills.
I copied the data for the relevant season into a text file (380 rows per season) and then imported the file into a single column formatted as general with no delimiters. I built a macro to reformat the date to dd/mm/yyyy format, separate out teams into separate columns, and to split out score into home and away scores. The macro worked perfectly until I hit a particular variation on team name: Queens Park Rangers. This meant that my macro needed modifying to account for a team name that had three elements. I won't go into the details of the macro but I'll outline the issue I ran into:
1. I imported the text file into Excel (no problems); an example of a row of data is
[TABLE="width: 411"]
<tbody>[TR]
[TD] [TABLE="width: 433"]
<tbody>[TR]
[TD]April 27th 2013 Southampton - West Brom 0-3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
2. I then did a Text to Columns: I used a space delimiter to separate out April-27th-2013 into three separate columns so I could reformat the date in dd/mm/yyyy.
3. I left out all the other columns.
I've used the text to columns tool many times but what happened next was weird: on a number of instances (but not all) where Queens Park Rangers was associated with the line of data, there would occasionally be an entry in the otherwise empty next column with either a score or a partial date in it. Here's an example:
<tbody>
</tbody>
First time on this forum so looking forward to improving my Excel skills here.
I'm not an Excel newbie but I'm not an expert either.
I've been building a tabular dataset using results posted on ResultsDB detailing English Premiership football results going back to season 2000-01. The ultimate aim is to have an extensive dataset to build a decent dashboard to practice my dashboard building skills.
I copied the data for the relevant season into a text file (380 rows per season) and then imported the file into a single column formatted as general with no delimiters. I built a macro to reformat the date to dd/mm/yyyy format, separate out teams into separate columns, and to split out score into home and away scores. The macro worked perfectly until I hit a particular variation on team name: Queens Park Rangers. This meant that my macro needed modifying to account for a team name that had three elements. I won't go into the details of the macro but I'll outline the issue I ran into:
1. I imported the text file into Excel (no problems); an example of a row of data is
[TABLE="width: 411"]
<tbody>[TR]
[TD] [TABLE="width: 433"]
<tbody>[TR]
[TD]April 27th 2013 Southampton - West Brom 0-3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
2. I then did a Text to Columns: I used a space delimiter to separate out April-27th-2013 into three separate columns so I could reformat the date in dd/mm/yyyy.
3. I left out all the other columns.
I've used the text to columns tool many times but what happened next was weird: on a number of instances (but not all) where Queens Park Rangers was associated with the line of data, there would occasionally be an entry in the otherwise empty next column with either a score or a partial date in it. Here's an example:
February 23rd 2013 Queens Park Rangers - Manchester United 0-2 (original line of data)
<tbody> </tbody> |
<tbody>
</tbody>