+ Reply to Thread
Results 1 to 5 of 5

Table, and Array function help

  1. #1
    Registered User
    Join Date
    09-20-2013
    Location
    ontario
    MS-Off Ver
    Excel 2007
    Posts
    14

    Table, and Array function help

    Hey Guys,

    First of all i wanna say thank you for the last time i was helped out by this forum.

    I am looking for a little help with indexing in tables.

    I have 2 tables one is going to be a database. and i want to use the other to recall all the data that matches to an athletes name.

    for convenience i have put them both on the same page.

    my question is this. when i index that data on the second table there if there is no data i get a "0" i would like it to just say blank.

    also my formula to index the data is

    {=IFERROR(INDEX(Athletes[Date], SMALL(IF(Athletes[Athletes Name]=$N$1,ROW(Athletes[Athletes Name])-3),ROWS(N$4:N4))),"-")}

    i had another program that did something very similar that used -1 i am not sure why this one would only work with -3

    forum file.xlsx


    thank you in advance.

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Table, and Array function help

    use Custom Format:
    0;-0;;@
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    09-20-2013
    Location
    ontario
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Table, and Array function help

    That Worked Pretty Darn Well!!

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Table, and Array function help

    the reason for the -3 is
    {=IFERROR(INDEX(Athletes[Date], SMALL(IF(Athletes[Athletes Name]=$N$1,ROW(Athletes[Athletes Name])-3),ROWS(N$4:N4))),"-")}
    ROW(Athletes[Athletes Name]) resolves to row(b4:b12) which in turn represents a range {4;5;6;7;8;9;10;11;12} ie each row number of the range
    but for the small(if to work it needs to start at 1 {1,2,3,4,5,6,7,8,9}
    so row(b4:b12)-3 does the equivelent of {4-3;5-3;6-3;7-3;8-3;9-3;10-3;11-3;12-3} giving the {1,2,3,4,5,6,7,8,9} required
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    09-20-2013
    Location
    ontario
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Table, and Array function help

    problem solved i suppose!! thanks everyone

+ 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. [SOLVED] Using VLOOKUP when the value in table array is another function
    By bbrunof in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2013, 12:57 PM
  2. [SOLVED] Table Array Argument in VLOOKUP Function
    By Kvramana in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2013, 02:45 AM
  3. Table Array for AVERAGE function
    By albatross32 in forum Excel General
    Replies: 3
    Last Post: 04-23-2010, 05:19 AM
  4. Variable Table Array in Lookup Function
    By matt_the_brum in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-04-2006, 12:07 PM
  5. Replies: 3
    Last Post: 03-01-2006, 08:45 AM

Tags for this Thread

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