+ Reply to Thread
Results 1 to 5 of 5

Marking Grid Points

  1. #1
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664

    Marking Grid Points

    Hi all,

    I have a worksheet ('Matrix') that has a grid that is 40 rows x 40 columns. On another sheet ('Drivers') I have a two columned table where a user is enters two numbers between (you guessed it!) 1 and 40.

    What I'm trying to do is within the grid, have a "Y" appear on the crossing point as denoted by the table. I've tried a couple of experiments with MATCH, but I'm not getting very far.

    I've attached an example document to make this a bit clearer and I've coloured the references on the 'Drivers' sheet to correspond to where they should appear on the 'Matrix' sheet.

    Sorry if that's a bit garbled. Let me know if you need any clarification.

    TIA,

    SamuelT
    Attached Files Attached Files
    Last edited by SamuelT; 11-18-2008 at 01:02 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Name the range Drivers!$A$2:$A$65 as MYROW and
    Drivers!$B$2:$B$65 as MYCOL

    The in Matrix!B2 use this formula.

    =CHOOSE(SUMPRODUCT((MYROW=$A2)*(MYCOL=B$1))+1,"","Y","X")

    Copy across and down.
    Note that the X is there as row 39 column 15 is in your list twice.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Thanks Andy, that's working a treat. One other related question - is it possible that if besides the MYROW and MYCOL columns there was another one called (let's say) MYNUM which has a number in it - is it possible to put that in instead of the Y.

    Note that the X is there as row 39 column 15 is in your list twice.
    That'll teach me to use RANDBETWEEN!

    Many thanks,

    SamuelT

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Yes.

    If you named the range of values in column C MYVALUES use this new formula on the Matrix sheet

    =SUMPRODUCT((MYROW=$A2)*(MYCOL=B$1)*MYVALUES)

  5. #5
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Great stuff. Thanks Andy - much appreciated.

    Solved!

+ 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