+ Reply to Thread
Results 1 to 3 of 3

Thread: Change a range to a named selection

  1. #1
    Registered User
    Join Date
    03-27-2009
    Location
    New York City
    MS-Off Ver
    Excel 2003
    Posts
    10

    Change a range to a named selection

    All,

    I have no problem changing my range to a named array. This is a bit trickier than that; here is my formula:

    =(SUMPRODUCT(ISNUMBER(MATCH(ROW('All Games'!$E$157:$E$168),INDEX(LARGE(('All Games'!$E$157:$E$168=C12)*ROW('All Games'!$E$157:$E$168),{2}),0),0))*'All Games'!$F$157:$F$168))

    Right now I search E157:E168, index the selection, and select corresponding data in column F. What I would like to do is select all rows from 157-168 via a named array and sub-select the various columns when I need them. I've done this sort of thing with VLOOKUP before but I am not sure how to integrate that approach with my current formula. Ideally I want to do this:

    =(SUMPRODUCT(ISNUMBER(MATCH(ROW(named array, column E),INDEX(LARGE(((named array, column E)=C12)*ROW(named array, column E),{2}),0),0))*named array, column F))

    A helping hand would be greatly appreciated.

    Thanks,
    The Dropper
    Last edited by The Dropper; 04-12-2010 at 12:39 PM.

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: Change a range to a named selection

    Hard to tell without seeing what you're doing. Maybe

    =SUMPRODUCT(ISNUMBER(MATCH(ROW(tbl), INDEX(LARGE( (INDEX(tbl, 0, 5)=C12) * ROW(tbl), 2), 0), 0)) * INDEX(tbl, 0, 6))
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-27-2009
    Location
    New York City
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Change a range to a named selection

    shg,

    That works like a charm. Thank you very much.

    Thanks,
    The Dropper

    PS. Attached is the sheet I had been working on previously before I tried to re-order 'All Games'. These are stat for my dart team I was constantly reassigning the ranges of the search when I made a new season or a new week...so I wanted to make All Games have new stuff at the top so week 1 data would always be in the same place so my search range could be set for all weeks....essentially so I could set it up once and forget it. now, however...that I can mange this with 'holistic' named arrays concept I will probable stick with the old 'new stuff at bottom' approach.

    PPS. Either way...thank you much. The original formula was derived with considerable help from these forums as well; a truly wonderful resource.
    Attached Files Attached Files

+ 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.2.0