+ Reply to Thread
Results 1 to 7 of 7

Extracting the result from a football fixture

  1. #1
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Extracting the result from a football fixture

    Hello.

    I'm trying to extract just the score line from any given result as shown in cell A1 of the attachment.
    In row 3, is the required result. Can this be done?

    Thank you.
    Attached Files Attached Files
    Last edited by tom hatten; 01-24-2021 at 03:10 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Extracting the result from a football fixture

    In A3, copeid across:
    =TRIM(MID(SUBSTITUTE(" "&$A1," ",REPT(" ",125)),125*COLUMNS($A:A),125))

    HOWEVER, I guarantee that the ACTUAL problem will be more complicated that this suggests...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Extracting the result from a football fixture

    An alternative that will work with multi-word team names.

    team 1
    =LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1)

    Score
    =TRIM(LEFT(TRIM(SUBSTITUTE(A1,F5,"")),SEARCH(" ",TRIM(SUBSTITUTE(A1,F5,"")))))

    Team 2
    =MID(A1,SEARCH(G5,A1)+LEN(G5)+1,255)

    You seem to be using an older version of Excel than me. So, please refer to the attached file. If the formulae are enclosed within a pair of { }, these are array formulae.

    These are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see the curly brackets { } appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Extracting the result from a football fixture

    Another option if you have names that contain a space
    =TRIM(LEFT(A1,FIND("-",A1)-2))
    =TRIM(MID(A1,FIND("-",A1)-2,5))
    =TRIM(SUBSTITUTE(A1,A3&" "&B3,""))

  5. #5
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Extracting the result from a football fixture

    Both solutions work well for me. Thank you both very much.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Extracting the result from a football fixture

    Glad to help & thanks for the feedback.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Extracting the result from a football fixture

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. sumproduct not working on football result table
    By jono121ukk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-16-2016, 02:33 PM
  2. [SOLVED] How to calculate lamps per fixture based on lamp type & lamps per fixture?
    By Sandcastle in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-27-2015, 04:09 PM
  3. Football result formula for awarding points
    By Hine85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2013, 02:50 PM
  4. Football Fixture Results (How to find the last 5 fixtures involving a team)
    By Jose9Reyes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-04-2013, 08:00 PM
  5. Football Predictions - 3 for score, 1 for result
    By Mike.G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2010, 05:18 AM
  6. Football fixture generator?
    By BUSJEDWA in forum Excel General
    Replies: 2
    Last Post: 04-11-2008, 02:44 PM
  7. [SOLVED] football formula Fixture table help
    By Paul T in forum Excel General
    Replies: 2
    Last Post: 09-04-2005, 03:05 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1