+ Reply to Thread
Results 1 to 5 of 5

Inserting values into a grid

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-05-2006
    Posts
    166

    Inserting values into a grid

    Hi,

    I am trying to get scores into a grid. In column A I have the home teams name and in column B I have the away teams name and in C and D I have their respective scores. I then have a grid set up and want to get the figures from column C and D into the relevant positions. To put it more simply I need a function that puts a value in a cell where the two names in column A and B match those on the sides of the grid.

    Any help would be appreciated!

    Cheers,

    Phil

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    It sounds like a vlookup you need, is it possible to post a zipped copy of your spreadsheet so that one of us can give you a positive answer?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by phil2006
    Hi,

    I am trying to get scores into a grid. In column A I have the home teams name and in column B I have the away teams name and in C and D I have their respective scores. I then have a grid set up and want to get the figures from column C and D into the relevant positions. To put it more simply I need a function that puts a value in a cell where the two names in column A and B match those on the sides of the grid.

    Any help would be appreciated!

    Cheers,

    Phil
    some formulae are just for fun,

    =IF(OR(ISERROR(SUMPRODUCT(--($A$11:$A$20=$A2)*(--($B$11:$B$20=B$1)*ROW($B$11:$B$20)))),SUMPRODUCT(--($A$11:$A$20=$A2)*(--($B$11:$B$20=B$1)*ROW($B$11:$B$20)))=0)," ",OFFSET($C$11,SUMPRODUCT(--($A$11:$A$20=$A2)*(--($B$11:$B$20=B$1)*ROW($B$11:$B$20)))-11,0)&" v "&OFFSET($D$11,(SUMPRODUCT(--($A$11:$A$20=$A2)*(--($B$11:$B$20=B$1)*ROW($B$11:$B$20)))-11),0))

    others put the scores in.

    hth
    ---
    Attached Files Attached Files
    Si fractum non sit, noli id reficere.

  4. #4
    Forum Contributor
    Join Date
    06-05-2006
    Posts
    166
    Thanks! That's just what I needed!

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by phil2006
    Thanks! That's just what I needed!
    Good to see, and thanks for the response.

    ---
    added,

    the formula, like the grid, assumes that teams play each other once as Home-Away, and once as Away-Home, and no more than that.
    ---
    Last edited by Bryan Hessey; 01-07-2007 at 10:30 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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