+ Reply to Thread
Results 1 to 6 of 6

How to look up a value in a ever growing table

  1. #1
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Question How to look up a value in a ever growing table

    Hi there,

    It's a bit difficult to explain in words so I've rather attached an example of what I need. Basically I want to find/match/index (not sure what word to use) a value in the "RaceTime" column of Table1 where I have a match on "Winter Champs", "50m Breast" and "Deen Steenkamp".

    I'm not sure if this is possible in excel tables, but if it is, could anyone please suggest a way I do this?

    pic2.png



    Thank-you
    Michelle
    Attached Files Attached Files
    Last edited by michellepace; 07-18-2016 at 04:10 PM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to look up a value in a ever growing table

    In the Name column some of the entries have trailing space characters.

    Deen Steenekamp[space]

    Use cells to hold the criteria:

    A10 = Winter Champs
    B10 = 50m Breast
    C10 = Deen Steenekamp

    Then, this formula:

    =SUMIFS(Table1[Race Time],Table1[Gala],A10,Table1[Event],B10,Table1[Name],C10)

    Apply your time format.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Re: How to look up a value in a ever growing table

    Quote Originally Posted by Tony Valko View Post
    ...Then, this formula:

    =SUMIFS(Table1[Race Time],Table1[Gala],A10,Table1[Event],B10,Table1[Name],C10)
    Thanks Tony, your solution looks much more simpler than mine. In the attached spreadsheet I had a stab at googling around and finally found something I could use.

    Please Login or Register  to view this content.
    Are there any other major advantages (disadvantages) of using your solution over mine (other than it just looks simpler which counts for a lot!)?

    One I can guess at perhaps is that mine is not Excel 97 compatible, yours I think would be (?)

    Lookup Value in Table - solution.xlsx
    Last edited by michellepace; 07-18-2016 at 04:51 PM.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to look up a value in a ever growing table

    Depending on the type of data the formula is returning, in this case it's a time value which is a numeric value, I think the SUMIFS is the way to go.

    It's much more efficient than range concatenation.

    If the return data was text then this general array formula** is my preferred method:

    =INDEX(ReturnRange,MATCH(1,(Range1=Criteria1)*(Range2=Criteria2)*(Range3=Criteria3),0))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    This array method is still more efficient than range concatenation.

  5. #5
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Re: How to look up a value in a ever growing table

    Thanks Tony, I really like your solution (much more than mine) and have used it in my spreadsheet. Thanks very much for both the solution and the explanation.

    Best wishes,
    Michelle

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to look up a value in a ever growing table

    You're welcome. Thanks for the feedback!

+ 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. Getting the Sum of a Growing List
    By mmanning in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-07-2014, 09:11 PM
  2. Creating table with conditional formatting based on growing contents
    By Ash_ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2013, 11:45 AM
  3. Reading last row of growing table
    By agentred in forum Excel General
    Replies: 3
    Last Post: 07-09-2010, 01:22 PM
  4. [SOLVED] Growing file size
    By AK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2006, 05:55 AM
  5. [SOLVED] Selecting a growing area?
    By Terry Pinnell in forum Excel General
    Replies: 3
    Last Post: 02-26-2006, 07:20 PM
  6. XLB file size growing
    By Rob in forum Excel General
    Replies: 4
    Last Post: 12-29-2005, 12:20 PM
  7. Replies: 4
    Last Post: 04-16-2005, 12:06 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