+ Reply to Thread
Results 1 to 6 of 6

INDEX/MATCH function against another cell on same spreadsheet

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    INDEX/MATCH function against another cell on same spreadsheet

    Hi all,

    Can someone please help me with a potential IF/MATCH function?

    I have a ‘ score result’ in my spreadsheet (see B1).

    I want to calculate the points awarded for predictions. So in cell C3, a prediction of 1-2 should be like this: 1 (matching 1 in cell B1 = 5 points, 2 (matching 2 in cell B1) = 5 points.

    Can anyone please help me write a suitable formula?

    Thank you.
    Attached Files Attached Files
    Thanks,

    R.



  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
    44,036

    Re: INDEX/MATCH function against another cell on same spreadsheet

    You may have formatted them to look like football scores... but your 1-2 values are defaulting to dates. Do you REALLY need to have the 1 and 2 in the same cell? It would be soooo much simpler to have them in separate cells.

    What is the score for NOT predicting the H/A score correctly?
    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 Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: INDEX/MATCH function against another cell on same spreadsheet

    Hi Glenn,

    Yes excel was being a bit funny, so I was just uploading this to get the ideas and then I`ll work on the formating.

    Ideally I don't want in seperate cells, because it may end up taking more time from me to split predicted scores every week into seperate cells.


    0 points for not predicting the scores correctly (I`ll be calculating other stuff seperate i.e was a win, draw or loss predicted)

    Thank you!

  4. #4
    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
    44,036

    Re: INDEX/MATCH function against another cell on same spreadsheet

    In d3:

    =IF(LEFT(C3,SEARCH("-",C3)-1)=LEFT($B$1,SEARCH("-",$B$1)-1),5,0)+IF(MID(C3,SEARCH("-",C3)+1,255)=MID($B$1,SEARCH("-",$B$1)+1,255),5,0)

    copied down.

  5. #5
    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
    44,036

    Re: INDEX/MATCH function against another cell on same spreadsheet

    As opposed to this (separate columns):
    =IF(G3=G$1,5,0)+IF(H3=H$1,5,0)

    and separating the scores couldn't be easier:

    =--TRIM(MID(SUBSTITUTE("-"&$B11,"-",REPT(" ",125)),125*COLUMNS($A:A),125))

    copied across and down.

    see sheet. You will regret NOT separating them... sooner or later.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: INDEX/MATCH function against another cell on same spreadsheet

    Thank you so much Glenn. I`ll take your words on advice on board. For now this solution works! rep added. thanks again!

+ 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. Replies: 2
    Last Post: 03-13-2018, 01:41 AM
  2. [SOLVED] Help with Index Match function and formula based on another cell value
    By shaggyjh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2018, 05:51 PM
  3. [SOLVED] One Cell GAP coming with INDEX, Match function
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-11-2017, 07:09 AM
  4. [SOLVED] INDEX MATCH function not matching on data in a multi-line cell
    By ericalee83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2017, 10:55 PM
  5. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  6. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  7. Replies: 2
    Last Post: 03-16-2009, 01:09 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