Formula to split cell data

paulwebb

Board Regular
Joined
Dec 23, 2009
Messages
75
Hi all

I have a spreadsheet which imports data from a web page. The data is football fixtures, which are imported as 1 fixture per cell e.g. "Liverpool v Manchester United". The teams are always separated by (space)v(space). Is there a simple formula I can use that will extract the teams to individual cells, so that if the fixture was in say cell A1, I could import the home team to cell B1 and the away team to cell C1? I'm sure I did something like this a long time ago, but the old grey matter isn't as sharp as it used to be!

Thanks in anticipation

Paul
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi,

This should do it:

In cell B1: =LEFT(A1,SEARCH(" v ",A1,1)-1)
In cell C1: =RIGHT(A1,LEN(A1)-SEARCH(" v ",A1,1)-2)
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
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